影片
seedance-2.0-fast API
透過 Modelflare 非同步視訊路由使用準確的 seedance-2.0-fast 模型 ID。
使用準確的型號 ID seedance-2.0-fast。模型欄位必須與此頁面完全相符。
身份驗證與端點
Section titled “身份驗證與端點”將 Modelflare API 金鑰與 https://modelflare.dev/v1 結合使用。網關入口點是POST /v1/videos。
Authorization: Bearer YOUR_MODELFLARE_API_KEYcurl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.0-fast", "content": [{"type": "text", "text": "A white cat runs through a neon-lit street in the rain, cinematic tracking shot"}], "resolution": "720p", "duration": 5, "generate_audio": false }'儲存任務ID。輪詢 GET /v1/videos/{task_id} 並使用 GET /v1/videos/{task_id}/content 下載。結果 URL 可能會過期,因此請立即傳輸檔案。
curl https://modelflare.dev/v1/videos/TASK_ID \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"Seedance 將 content[] 用於文字、框架和參考媒體;單獨的Seedance資產管理合約是獨立記錄的。
Seedance 使用一個非同步多模態包絡。將文字和媒體放入content[];媒體角色選擇第一幀/最後一幀或參考工作流程。
| 場 | 必填 | 註釋 |
|---|---|---|
model |
是 | seedance-2.0-fast |
content[] |
是 | text、image_url、video_url 和 audio_url;使用role來識別媒體目的 |
resolution |
否 | 480p / 720p(預設 720p) |
ratio |
否 | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / adaptive |
duration |
否 | -1 自動計時,或 4–15 秒 |
generate_audio |
否 | 產生同步對話、效果與背景音頻 |
tools |
否 | 僅在官方模型頁面支援的情況下使用web_search |
watermark |
否 | 是否添加浮水印 |
輸入與輸出限制
Section titled “輸入與輸出限制”此型號支援 480p 和 720p。使用-1自動計時或選擇4-15秒;幀速率固定為 24fps。多模式參考最多允許九張影像、三個視訊和三個音訊剪輯;音訊不能單獨使用,因此一個請求至少需要一個參考影像或視訊。在content[]中以role值標記媒體;第一幀、編輯和擴展工作流程是互相排斥的。此型號不接受 frames、camera_fixed、output_format 或 omni_reference_task_type。
記錄的工作流程範例
Section titled “記錄的工作流程範例”Seedance 2.0 系列支援文字到影片、第一幀/第一幀和最後一幀、多模式引用、編輯、擴展和文字到影片的網路搜尋。將媒體排序為文字、圖像、視頻,然後是音頻。
curl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.0-fast", "content": [ {"type": "text", "text": "@image1 performs the movement from @video1, paced to @audio1"}, {"type": "image_url", "image_url": {"url": "https://example.com/character.jpg"}, "role": "reference_image"}, {"type": "video_url", "video_url": {"url": "https://example.com/motion.mp4"}, "role": "reference_video"}, {"type": "audio_url", "audio_url": {"url": "https://example.com/music.mp3"}, "role": "reference_audio"} ], "generate_audio": true, "ratio": "16:9", "duration": 11 }'影片編輯與網頁搜索
Section titled “影片編輯與網頁搜索”curl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.0-fast", "content": [{"type": "text", "text": "Macro shot of cherry blossoms in spring"}], "generate_audio": true, "ratio": "16:9", "duration": 11, "tools": [{"type": "web_search"}] }'錯誤與失敗的任務
Section titled “錯誤與失敗的任務”無效模型參數傳回帶有請求 ID 的 4xx。非同步任務建立成功後也可能進入失敗;使用輪詢回應中的 error_code 和 error_message 作為最終任務原因。不要使用不同的 JSON 形狀重試相同的請求。
此頁面涵蓋 Modelflare 模型產生和編輯呼叫。搜尋或地圖豐富、語音管理和元素庫管理是此公共模型呼叫表面之外的資源 API,並且不是必需的請求欄位。
此模型使用基於令牌的計費。請參閱 型號定價頁面 ,以了解當前客戶價格、參考標價和完整規格。
媒體合約 · v1
官方來源: ByteDance / Volcengine
合約參數
| 意圖字段 | 控制項 | 選項 |
|---|---|---|
ratio | select | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 21:9 / adaptive |
resolution | select | 480p / 720p |
duration | select | -1 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 |
audio | switch | — |
支援的功能
allowed_values·ratio· 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptiveallowed_values·resolution· 480p, 720pallowed_values·duration· -1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15max_assets·reference_asset_ids· 15prompt_optional_with_reference·prompt
結構化請求範例
text
意圖
{
"audio": false,
"duration": -1,
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "480p"
}提供者請求
{
"content": [
{
"text": "A red paper kite over a quiet harbour at dusk.",
"type": "text"
}
],
"duration": -1,
"generate_audio": false,
"model": "seedance-2.0-fast",
"ratio": "16:9",
"resolution": "480p",
"seconds": "-1"
}reference
意圖
{
"audio": false,
"duration": -1,
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "480p"
}提供者請求
{
"content": [
{
"text": "A red paper kite over a quiet harbour at dusk.",
"type": "text"
},
{
"image_url": {
"url": "https://example.com/reference.png"
},
"role": "reference_image",
"type": "image_url"
}
],
"duration": -1,
"generate_audio": false,
"model": "seedance-2.0-fast",
"ratio": "16:9",
"resolution": "480p",
"seconds": "-1"
}