跳至內容

FLUX 3 Max Keyframes to Video

整合

模型 id blackforestlabs/flux-3-max/keyframes-to-video
# 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-max/keyframes-to-video?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.425 425 API 點數 在此頁面執行

取得 API 金鑰
Black Forest Labs 圖像轉影片 原生音訊5–20 秒最高 1080p #keyframes#image-to-video#control

根據提示詞和最多 10 張固定於幀位置的關鍵影像產生影片,並可選擇加入音訊

Black Forest Labs · 影片

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

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

建立請求

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

•必填

描述影片在關鍵影格之間動作的文字。

duration 5 s

輸出影片長度,單位為秒。

resolution 預設 720p

輸出影片的解析度。

aspect_ratio 預設 auto

生成影片的長寬比;`auto` 會配合第一張圖像,若輸入為文字提示詞,則選擇 16:9。

•必填

根據 `frame_index` 放置於輸出影片中的關鍵影格圖像;最多提供 10 張,且不可重複索引。

進階 reasoning_level · seed
reasoning_level 預設 high

推理工作量控制生成速度與 harness 用於理解提示詞的工作量之間的取捨:工作量越大,所需時間越長。

生成種子;省略時會使用隨機值。

POST /run/blackforestlabs/flux-3-max/keyframes-to-video?wait=20 報價 → $0.425
# 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-max/keyframes-to-video?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 Max Keyframes to Video

建立在時間軸上於指定位置固定關鍵幀的影片。`keyframes` 接收 1 到 10 張具有唯一 `frame_index` 值的影像,`prompt` 描述動態。`duration` 為 5 到 20 秒,`resolution` 為 720p 或 1080p,`aspect_ratio` 包括 21:9 到 9:16 或 auto。另提供 `reasoning_level`(low 或 high)和 `generate_audio`。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
描述影片在關鍵影格之間動作的文字。
keyframes必填
類型object[]
≤ 10 個項目
根據 `frame_index` 放置於輸出影片中的關鍵影格圖像;最多提供 10 張,且不可重複索引。
keyframes[].image_url必填
類型url · image
關鍵影格圖像 URL;接受 PNG、JPEG 或 WebP。
keyframes[].frame_index必填
類型integer
≥ 0
關鍵影格放置會為每個關鍵影格使用不同的影格索引,上限為 `duration * 24`;輸出以 24 fps 執行。
duration選填
類型enum
預設值5
567891011121314151617181920
輸出影片長度,單位為秒。
resolution選填
類型enum
預設值720p
720p1080p
輸出影片的解析度。
reasoning_level選填
類型enum
預設值high
lowhigh
推理工作量控制生成速度與 harness 用於理解提示詞的工作量之間的取捨:工作量越大,所需時間越長。
aspect_ratio選填
類型enum
預設值auto
auto21:92:116:94:31:13:49:16
生成影片的長寬比;`auto` 會配合第一張圖像,若輸入為文字提示詞,則選擇 16:9。
generate_audio選填
類型boolean
預設值true
控制影片是否包含生成的音訊。
seed選填
類型integer | null
生成種子;省略時會使用隨機值。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "blackforestlabs/flux-3-max/keyframes-to-video",
  "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": 425,
    "usd": "0.425",
    "charged": 425,
    "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "timings": {}
  },
  "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, width, height, fps, duration, num_frames}模型產生的影片。
seed
integer生成期間使用的種子值。
timings
object計時資料;`inference` 中省略提示詞展開、解碼與上傳所需時間,因此僅測量模型影片去噪所花的秒數。

更多模型:圖像轉影片

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