app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat
  name: Doubao-生图生视频一条龙
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/openai:0.0.26@c1e643ac6a7732f6333a783320b4d3026fa5e31d8e7026375b98d44418d33f26
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: allenwriter/doubao_image:0.0.1@7ac9e02470d3d25658e65a48b6e12c64a0cdd97c6f26cfba9c117ab46ed6b626
kind: app
version: 0.3.0
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - remote_url
      - local_file
      enabled: true
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: 欢迎使用图片/视频生成一条龙，现在请尽情发挥你的想象，输入一段图片描述。我将会给你图片以及这张图片的动态视频
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInLoop: false
        sourceType: start
        targetType: llm
      id: 1747822533895-source-llm-target
      selected: false
      source: '1747822533895'
      sourceHandle: source
      target: llm
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: tool
      id: llm-source-1748413634089-target
      selected: false
      source: llm
      sourceHandle: source
      target: '1748413634089'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: tool
        targetType: answer
      id: 1748413642924-source-answer-target
      selected: false
      source: '1748413642924'
      sourceHandle: source
      target: answer
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: tool
        targetType: tool
      id: 1748413634089-source-1748413642924-target
      source: '1748413634089'
      sourceHandle: source
      target: '1748413642924'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables: []
      height: 54
      id: '1747822533895'
      position:
        x: 474.7426156123979
        y: 275.03395384213417
      positionAbsolute:
        x: 474.7426156123979
        y: 275.03395384213417
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: chatgpt-4o-latest
          provider: langgenius/openai/openai
        prompt_template:
        - id: 970c7dbb-1599-42cd-b33f-2757d2322131
          role: system
          text: '你是一个文字生图专家，脑补用户输入的内容，补全更多的画面感。不用很复杂，不要写敏感内容。


            这是用户的输入内容：

            {{#sys.query#}}'
        selected: false
        title: LLM
        type: llm
        variables: []
        vision:
          enabled: false
      height: 90
      id: llm
      position:
        x: 829.8017402105347
        y: 275.03395384213417
      positionAbsolute:
        x: 829.8017402105347
        y: 275.03395384213417
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        answer: '{{#llm.text#}}


          生成的图片：

          {{#1748413634089.files#}}


          生成的视频：

          {{#1748413642924.files#}}'
        desc: ''
        selected: false
        title: 直接回复
        type: answer
        variables: []
      height: 142
      id: answer
      position:
        x: 2017.2449424519177
        y: 275.03395384213417
      positionAbsolute:
        x: 2017.2449424519177
        y: 275.03395384213417
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        is_team_authorization: true
        output_schema: null
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: The text prompt used to generate the image. Doubao will generate
              an image based on this prompt.
            ja_JP: The text prompt used to generate the image. Doubao will generate
              an image based on this prompt.
            pt_BR: The text prompt used to generate the image. Doubao will generate
              an image based on this prompt.
            zh_Hans: The text prompt used to generate the image. Doubao will generate
              an image based on this prompt.
          label:
            en_US: Prompt
            ja_JP: Prompt
            pt_BR: Prompt
            zh_Hans: Prompt
          llm_description: This prompt text will be used to generate image.
          max: null
          min: null
          name: prompt
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        - auto_generate: null
          default: 1024x1024
          form: form
          human_description:
            en_US: The size of the generated image.
            ja_JP: The size of the generated image.
            pt_BR: The size of the generated image.
            zh_Hans: The size of the generated image.
          label:
            en_US: Image Size
            ja_JP: Image Size
            pt_BR: Image Size
            zh_Hans: Image Size
          llm_description: ''
          max: null
          min: null
          name: size
          options:
          - label:
              en_US: 1024x1024 (Square)
              ja_JP: 1024x1024 (Square)
              pt_BR: 1024x1024 (Square)
              zh_Hans: 1024x1024 (Square)
            value: 1024x1024
          - label:
              en_US: 1024x1792 (Portrait)
              ja_JP: 1024x1792 (Portrait)
              pt_BR: 1024x1792 (Portrait)
              zh_Hans: 1024x1792 (Portrait)
            value: 1024x1792
          - label:
              en_US: 1792x1024 (Landscape)
              ja_JP: 1792x1024 (Landscape)
              pt_BR: 1792x1024 (Landscape)
              zh_Hans: 1792x1024 (Landscape)
            value: 1792x1024
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: select
        - auto_generate: null
          default: doubao-seedream-3-0-t2i-250415
          form: form
          human_description:
            en_US: Model version to use for image generation.
            ja_JP: Model version to use for image generation.
            pt_BR: Model version to use for image generation.
            zh_Hans: Model version to use for image generation.
          label:
            en_US: Model Version
            ja_JP: Model Version
            pt_BR: Model Version
            zh_Hans: Model Version
          llm_description: ''
          max: null
          min: null
          name: model
          options:
          - label:
              en_US: Doubao Seedream 3.0
              ja_JP: Doubao Seedream 3.0
              pt_BR: Doubao Seedream 3.0
              zh_Hans: Doubao Seedream 3.0
            value: doubao-seedream-3-0-t2i-250415
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: select
        params:
          model: ''
          prompt: ''
          size: ''
        provider_id: allenwriter/doubao_image/doubao
        provider_name: allenwriter/doubao_image/doubao
        provider_type: builtin
        selected: false
        title: Text to Image
        tool_configurations:
          model: doubao-seedream-3-0-t2i-250415
          size: 1024x1024
        tool_description: Generate images with Doubao (豆包) AI.
        tool_label: Text to Image
        tool_name: text2image
        tool_parameters:
          prompt:
            type: mixed
            value: '{{#llm.text#}}'
        type: tool
      height: 116
      id: '1748413634089'
      position:
        x: 1209.0430022162789
        y: 275.03395384213417
      positionAbsolute:
        x: 1209.0430022162789
        y: 275.03395384213417
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        is_team_authorization: true
        output_schema: null
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: The text prompt used to generate the video. Doubao will generate
              a video based on this prompt and the input image.
            ja_JP: The text prompt used to generate the video. Doubao will generate
              a video based on this prompt and the input image.
            pt_BR: The text prompt used to generate the video. Doubao will generate
              a video based on this prompt and the input image.
            zh_Hans: The text prompt used to generate the video. Doubao will generate
              a video based on this prompt and the input image.
          label:
            en_US: Prompt
            ja_JP: Prompt
            pt_BR: Prompt
            zh_Hans: Prompt
          llm_description: This prompt text will be used to guide the video generation
            from the input image.
          max: null
          min: null
          name: prompt
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: The image file to be used for video generation.
            ja_JP: The image file to be used for video generation.
            pt_BR: The image file to be used for video generation.
            zh_Hans: The image file to be used for video generation.
          label:
            en_US: Image
            ja_JP: Image
            pt_BR: Image
            zh_Hans: Image
          llm_description: Image file that will be transformed into a video.
          max: null
          min: null
          name: image
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: file
        - auto_generate: null
          default: adaptive
          form: form
          human_description:
            en_US: The aspect ratio of the generated video. Note that Doubao API currently
              only supports adaptive ratio.
            ja_JP: The aspect ratio of the generated video. Note that Doubao API currently
              only supports adaptive ratio.
            pt_BR: The aspect ratio of the generated video. Note that Doubao API currently
              only supports adaptive ratio.
            zh_Hans: The aspect ratio of the generated video. Note that Doubao API
              currently only supports adaptive ratio.
          label:
            en_US: Aspect Ratio (Reference Only)
            ja_JP: Aspect Ratio (Reference Only)
            pt_BR: Aspect Ratio (Reference Only)
            zh_Hans: Aspect Ratio (Reference Only)
          llm_description: ''
          max: null
          min: null
          name: ratio
          options:
          - label:
              en_US: Adaptive (Auto)
              ja_JP: Adaptive (Auto)
              pt_BR: Adaptive (Auto)
              zh_Hans: Adaptive (Auto)
            value: adaptive
          - label:
              en_US: 16:9 (Landscape)
              ja_JP: 16:9 (Landscape)
              pt_BR: 16:9 (Landscape)
              zh_Hans: 16:9 (Landscape)
            value: '16:9'
          - label:
              en_US: 9:16 (Portrait)
              ja_JP: 9:16 (Portrait)
              pt_BR: 9:16 (Portrait)
              zh_Hans: 9:16 (Portrait)
            value: '9:16'
          - label:
              en_US: 4:3 (Classic)
              ja_JP: 4:3 (Classic)
              pt_BR: 4:3 (Classic)
              zh_Hans: 4:3 (Classic)
            value: '4:3'
          - label:
              en_US: 1:1 (Square)
              ja_JP: 1:1 (Square)
              pt_BR: 1:1 (Square)
              zh_Hans: 1:1 (Square)
            value: '1:1'
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: select
        - auto_generate: null
          default: '5'
          form: form
          human_description:
            en_US: The duration of the generated video in seconds.
            ja_JP: The duration of the generated video in seconds.
            pt_BR: The duration of the generated video in seconds.
            zh_Hans: The duration of the generated video in seconds.
          label:
            en_US: Duration (seconds)
            ja_JP: Duration (seconds)
            pt_BR: Duration (seconds)
            zh_Hans: Duration (seconds)
          llm_description: ''
          max: null
          min: null
          name: duration
          options:
          - label:
              en_US: 5 seconds
              ja_JP: 5 seconds
              pt_BR: 5 seconds
              zh_Hans: 5 seconds
            value: '5'
          - label:
              en_US: 10 seconds
              ja_JP: 10 seconds
              pt_BR: 10 seconds
              zh_Hans: 10 seconds
            value: '10'
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: select
        params:
          duration: ''
          image: ''
          prompt: ''
          ratio: ''
        provider_id: allenwriter/doubao_image/doubao
        provider_name: allenwriter/doubao_image/doubao
        provider_type: builtin
        selected: false
        title: Image to Video
        tool_configurations:
          duration: '5'
          ratio: adaptive
        tool_description: Generate videos from images with Doubao (豆包) AI.
        tool_label: Image to Video
        tool_name: image2video
        tool_parameters:
          image:
            type: variable
            value:
            - '1748413634089'
            - files
          prompt:
            type: mixed
            value: '{{#llm.text#}}'
        type: tool
      height: 116
      id: '1748413642924'
      position:
        x: 1622.5673467263882
        y: 275.03395384213417
      positionAbsolute:
        x: 1622.5673467263882
        y: 275.03395384213417
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    viewport:
      x: -300.6171077018113
      y: 69.35748918855559
      zoom: 0.5853031417984745
