輸出解析度
根據已發布的 endpoint schema,支援 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 schema,支援 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)
由文字 brief 生成產品發佈短片同短版廣告,將製作時間由幾星期縮短到幾個鐘。
無需攝影機或團隊,都可以大規模將課程腳本轉成動畫解說影片。
直接由 prompt 為社交平台製作易爆紅的短內容。
傳入 quickstart 顯示嘅 model ID。
每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。
可以——variant 只係一個旗標。只要更改 model 參數就可以切換。
在可用 streaming 的情況下,RunAPI 會端到端串流。
可以在公開 GitHub repo 開 issue,或者電郵支援團隊。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。