输出分辨率
根据已发布的 endpoint 规格,支持 480p, 720p。
curl -X POST https://runapi.ai/api/v1/seedance/text_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.5-flash",
"prompt": "生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。"
}'
import { SeedanceClient } from "@runapi.ai/seedance";
const client = new SeedanceClient();
const result = await client.textToVideo.run({
model: "seedance-2.5-flash",
prompt: "生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/seedance/text_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"seedance-2.5-flash","prompt":"生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/seedance/text_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-2.5-flash',
'prompt' => '生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToVideo().run({"model":"seedance-2.5-flash","prompt":"生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。"});
task.waitForResult();
require "runapi/seedance"
client = RunApi::Seedance::Client.new
result = client.text_to_video.run(
model: "seedance-2.5-flash",
prompt: "生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToVideo.Run({"model":"seedance-2.5-flash","prompt":"生成一段 10 秒的产品揭幕视频:手机从烟雾中浮现,电影级打光,环境低音。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model seedance-2.5-flash \
--endpoint text_to_video \
--wait
8 个版本可用
选择任意模型,几秒内开始生成。
暂时没有可用模型。
| 提供商 | Bytedance |
| 模型 ID | seedance-2.5-flash |
| 模态 | 视频 |
| 任务类型 | Asynchronous |
| API 端点 | /api/v1/seedance/text_to_video |
| 计费单位 | 次调用 |
| 输入参数 | aspect_ratio, callback_url, duration_seconds, enable_safety_checker, first_frame_image_url, generate_audio, last_frame_image_url, model, omni_reference_task_type, output_format, output_resolution, prompt, reference_audio_urls, reference_image_urls, reference_video_urls, return_last_frame, web_search |
| 最大时长 | -1s, 4s, 5s, 6s, 7s, 8s, 9s, 10s, 11s, 12s, 13s, 14s, 15s, 16s, 17s, 18s, 19s, 20s, 21s, 22s, 23s, 24s, 25s, 26s, 27s, 28s, 29s, 30s |
| 最大分辨率 | 480p, 720p |
| 宽高比 | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, auto |
| 输出格式 | mp4, mov |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 seedance-2.5-flash 的 API 密钥。
向 /api/v1/seedance/text_to_video 发送 POST 请求,并传入 seedance-2.5-flash 模型 ID 和参数。
轮询任务或按照回调获取已完成的 seedance-2.5-flash 结果。
根据已发布的 endpoint 规格,支持 480p, 720p。
可配置文档中列出的 15 个参数,包括 aspect_ratio, duration_seconds, enable_safety_checker, first_frame_image_url, generate_audio。
提供 1 个公开 endpoint:text_to_video。
异步任务支持回调 URL,任务完成时发送通知。
promptVideo generation prompt; required only for pure text-to-video requests.
web_searchWhether to enrich the prompt with web search.
aspect_ratioOutput aspect ratio; frame, edit, and extend requests require auto. (1:1, 4:3, 3:4, 16:9, 9:16, 21:9, auto)
callback_urlWebhook URL for asynchronous task updates.
output_formatOutput video container format. (mp4, mov)
generate_audioWhether to generate synchronized audio.
duration_secondsVideo duration in seconds; -1 selects duration automatically. (-1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30)
output_resolutionOutput video resolution. (480p, 720p)
return_last_frameWhether to return the generated video's last frame.
last_frame_image_urlPublic last-frame image URL; requires first_frame_image_url.
reference_audio_urlsPublic reference audio URLs; up to 5 audio files. Audio-only references are supported.
reference_image_urlsPublic reference image URLs; up to 10 images.
reference_video_urlsPublic reference video URLs; up to 5 videos.
enable_safety_checkerWhether RunAPI checks generated content for safety.
first_frame_image_urlPublic first-frame image URL; cannot be combined with reference inputs.
omni_reference_task_typeReference mode task type. Omit for automatic detection. edit requires a reference video, auto aspect ratio, and duration_seconds -1; extend requires a reference video and auto aspect ratio. (auto, reference, edit, extend)
从文字简报生成产品发布短视频和广告片段,将制作周期从数周缩短到数小时。
将课程脚本批量转换为动画讲解视频,无需摄像设备和拍摄团队。
直接从提示词生成社交平台短视频内容。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。