輸出解析度
支援公開 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)
根據文字簡報生成產品上市短片與短影音廣告,將製作時間從數週縮短到數小時。
無需攝影機或團隊,即可大規模將課程腳本轉為動畫解說影片。
直接從 prompt 產生適合社群平台的爆紅短影音內容。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。