跳至內容

Flux 3 Keyframes To Video Draft

整合

模型 id blackforestlabs/flux-3/keyframes-to-video/draft
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/blackforestlabs/flux-3/keyframes-to-video/draft?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "keyframes": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frame_index": 0
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此請求: $0.30 300 API 點數 在此頁面執行

取得 API 金鑰
Black Forest Labs 圖像轉影片 原生音訊唇形同步5–20 秒 #stylized#transform#lipsync

以最多十張固定於特定幀位置的關鍵幀影像為核心建立的草稿影片

Black Forest Labs · 影片

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填

草稿影片的文字描述。

duration 5 s

用於驗證關鍵影格位置的草稿長度;必須指定 5 到 20 之間的整數秒數。

aspect_ratio 預設 auto

草稿輸出的長寬比;`auto` 將選擇交由模型決定。

•必填

最多 10 張圖像的集合,每張都指定不同的 `frame_index`,以固定其在生成草稿中的位置。

進階 safety_tolerance
預設 2

影片安全容忍度使用量表,最寬鬆設定為 4,最嚴格設定為 0。

POST /run/blackforestlabs/flux-3/keyframes-to-video/draft?wait=20 報價 → $0.30
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/blackforestlabs/flux-3/keyframes-to-video/draft?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "keyframes": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frame_index": 0
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Flux 3 Keyframes To Video Draft

提供 `prompt` 和 1 到 10 個 `keyframes`,每個都具有唯一的 `frame_index`。必須明確指定 5 到 20 秒的 `duration`,以便驗證關鍵幀位置。`aspect_ratio` 可為 auto 或介於 21:9 到 9:16,`generate_audio` 可切換音效。輸出包含可供完整品質算繪使用的 `draft_cache`。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
草稿影片的文字描述。
aspect_ratio選填
類型enum
預設值auto
auto21:92:116:94:31:13:49:16
草稿輸出的長寬比;`auto` 將選擇交由模型決定。
duration選填
類型enum
預設值5
567891011121314151617181920
用於驗證關鍵影格位置的草稿長度;必須指定 5 到 20 之間的整數秒數。
generate_audio選填
類型boolean
預設值true
控制草稿影片的音訊生成。
safety_tolerance選填
類型integer
預設值2
0 – 4
影片安全容忍度使用量表,最寬鬆設定為 4,最嚴格設定為 0。
keyframes必填
類型object[]
≤ 10 個項目
最多 10 張圖像的集合,每張都指定不同的 `frame_index`,以固定其在生成草稿中的位置。
keyframes[].image_url必填
類型url · image
關鍵影格圖像 URL;接受 PNG、JPEG 或 WebP。
keyframes[].frame_index必填
類型integer
≥ 0
關鍵影格放置會為每個關鍵影格使用不同的影格索引,上限為 `duration * 24`;輸出以 24 fps 執行。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "blackforestlabs/flux-3/keyframes-to-video/draft",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "keyframes": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frame_index": 0
      }
    ]
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "draft_cache": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
video
object {url, content_type, file_name, file_size}以草稿形式產生的影片。
draft_cache
object {url, content_type, file_name, file_size} | null透過 `draft-enhance` 以完整品質渲染草稿的快取資料,儲存在持久化的加密套件中。若合作夥伴未為草稿回傳套件,則不會提供此輸出。

更多模型:圖像轉影片

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/blackforestlabs/flux-3/keyframes-to-video/draft.md. 所有模型與指南: https://doitong.com/developers/llms.txt