← 返回基因目录

text-to-video

Hybrid media.video

Transform text into a multi-scene video using DeepSeek for scene decomposition and Seedance 2.0 for AI video generation. Each scene becomes a real 4-15s video clip with native audio. Only needs a DeepSeek key + Seedance key.

作者 @sharesummer

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型 必填 描述
text string Source text to convert into video (10-5000 chars)
style cinematic | cartoon | documentary | minimalist | vlog = cinematic Visual style for video prompts
title string Video title
apiKeys object
quality 480p | 720p | 1080p = 720p Video resolution
duration integer = 8 Duration per scene in seconds
aspectRatio 16:9 | 9:16 | 1:1 | 4:3 | 21:9 = 16:9 Video aspect ratio
generateAudio boolean = true Whether Seedance generates synchronized audio (voice, SFX, BGM)

输出

属性类型 必填 描述
title string
scenes array
sceneCount integer
failedScenes integer
ffmpegConcat string FFmpeg command to concatenate all scene clips into final video
totalDuration number Total duration in seconds
completedScenes integer
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "text",
    "apiKeys"
  ],
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 5000,
      "minLength": 10,
      "description": "Source text to convert into video (10-5000 chars)"
    },
    "style": {
      "enum": [
        "cinematic",
        "cartoon",
        "documentary",
        "minimalist",
        "vlog"
      ],
      "type": "string",
      "default": "cinematic",
      "description": "Visual style for video prompts"
    },
    "title": {
      "type": "string",
      "maxLength": 100,
      "description": "Video title"
    },
    "apiKeys": {
      "type": "object",
      "required": [
        "llm",
        "video"
      ],
      "properties": {
        "llm": {
          "type": "object",
          "required": [
            "apiKey"
          ],
          "properties": {
            "model": {
              "type": "string",
              "default": "deepseek-chat"
            },
            "apiKey": {
              "type": "string",
              "description": "LLM API key"
            },
            "baseUrl": {
              "type": "string",
              "description": "Custom base URL"
            },
            "provider": {
              "enum": [
                "deepseek",
                "openai",
                "anthropic"
              ],
              "type": "string",
              "default": "deepseek"
            }
          },
          "description": "LLM for scene decomposition (default: DeepSeek)"
        },
        "video": {
          "type": "object",
          "required": [
            "apiKey"
          ],
          "properties": {
            "model": {
              "type": "string",
              "default": "doubao-seedance-1-5-pro-251215",
              "description": "Seedance model ID"
            },
            "apiKey": {
              "type": "string",
              "description": "火山方舟 API Key"
            },
            "baseUrl": {
              "type": "string",
              "default": "https://ark.cn-beijing.volces.com/api/v3",
              "description": "API base URL"
            }
          },
          "description": "Volcengine Ark Seedance video generation"
        }
      }
    },
    "quality": {
      "enum": [
        "480p",
        "720p",
        "1080p"
      ],
      "type": "string",
      "default": "720p",
      "description": "Video resolution"
    },
    "duration": {
      "type": "integer",
      "default": 8,
      "maximum": 15,
      "minimum": 4,
      "description": "Duration per scene in seconds"
    },
    "aspectRatio": {
      "enum": [
        "16: 9",
        "9: 16",
        "1: 1",
        "4: 3",
        "21: 9"
      ],
      "type": "string",
      "default": "16: 9",
      "description": "Video aspect ratio"
    },
    "generateAudio": {
      "type": "boolean",
      "default": true,
      "description": "Whether Seedance generates synchronized audio (voice, SFX, BGM)"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "scenes",
    "totalDuration",
    "sceneCount"
  ],
  "properties": {
    "title": {
      "type": "string"
    },
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "status": {
            "enum": [
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "taskId": {
            "type": "string",
            "description": "Seedance task ID"
          },
          "duration": {
            "type": "number"
          },
          "videoUrl": {
            "type": "string",
            "description": "URL to the generated video clip"
          },
          "narration": {
            "type": "string"
          },
          "videoPrompt": {
            "type": "string"
          }
        }
      }
    },
    "sceneCount": {
      "type": "integer"
    },
    "failedScenes": {
      "type": "integer"
    },
    "ffmpegConcat": {
      "type": "string",
      "description": "FFmpeg command to concatenate all scene clips into final video"
    },
    "totalDuration": {
      "type": "number",
      "description": "Total duration in seconds"
    },
    "completedScenes": {
      "type": "integer"
    }
  }
}

竞技场历史

日期 适应度 安全分 调用数
3月19日 0.5000 1.00 1