---
title: "FLUX 3 Max API 文档:参数、关键帧与调用示例｜APIMODELS"
description: "FLUX 3 Max 视频 API:一个模型名覆盖文生视频、首尾帧图生视频和最多 10 个定时关键帧,5-20 秒,720p 或 1080p,自带同步音轨。720p $0.221/秒、1080p $0.377/秒。cURL/Python/Node。"
canonical: https://apimodels.app/zh/docs/flux-3-max
markdown: https://apimodels.app/zh/docs/flux-3-max.md
language: zh
source: "Generated from the HTML docs page at the canonical URL; the HTML page is the source of truth. Docs index: https://apimodels.app/llms.txt"
---

# FLUX 3 Max API

FLUX 3 Max 是 FLUX 3 Video(Black Forest Labs 的视频模型家族)的后训练、低延迟优化变体,提示词遵循更强、画面更好。我们 2026-10-20 实测:720p 5 秒的文生视频,提交后 9 秒拿到文件。一个模型名 flux-3-max 覆盖三种模式:只传提示词是文生视频;传首帧(可选尾帧)是图生视频;传最多 10 个定时关键帧是关键帧生成。5-20 秒任意整秒,720p 或 1080p,默认自带同步音轨。按输出秒数计费:720p $0.221/秒、1080p $0.377/秒。

## 价格(按秒)

| 分辨率      | 每秒     | 5s     | 10s   | 20s   |
| -------- | ------ | ------ | ----- | ----- |
| 720p(默认) | $0.221 | $1.105 | $2.21 | $4.42 |
| 1080p    | $0.377 | $1.885 | $3.77 | $7.54 |

按分辨率和请求的秒数收费,5-20 秒任意整秒。仅成功扣费、失败退款。

## 认证

所有请求在 Header 携带 API Key:

```
Authorization: Bearer YOUR_API_KEY
```

## 生成视频

POST · `https://api.apimodels.app/v1/video/generations` · GET · `/v1/video/generations?task_id=`

```bash
# Text-to-video (prompt only; aspect_ratio "auto" = 16:9)
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-3-max",
    "prompt": "A street drummer plays on an upturned bucket at dusk, crowd clapping along, warm streetlights, handheld camera",
    "duration": 5,
    "resolution": "720p"
  }'

# Image-to-video: first frame (+ optional last frame); "auto" follows the first image
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-3-max",
    "prompt": "The camera pushes in slowly as steam rises from the mug",
    "first_frame_url": "https://apimodels.app/models/ltx-2.5-fast/photo-first-frame.jpg",
    "last_frame_url": "https://apimodels.app/models/ltx-2.5-pro/photo.jpg",
    "duration": 8,
    "resolution": "1080p"
  }'

# Keyframes-to-video: up to 10 images pinned to moments (time in seconds, or frame_index at 24 fps)
curl -X POST https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-3-max",
    "prompt": "A paper airplane takes off from the table, flies out of the window and glides over the coastal road",
    "keyframes": [
      { "image_url": "https://apimodels.app/models/ltx-2.5-fast/photo-first-frame.jpg", "time": 0 },
      { "image_url": "https://apimodels.app/access/ecommerce-product-image-editing/lifestyle-gpt-image-2.jpg", "time": 4 },
      { "image_url": "https://apimodels.app/models/ltx-2.5-fast/action.jpg", "frame_index": 240 }
    ],
    "duration": 10,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": false
  }'

# Response (async — a task is created):
# { "code": 200, "msg": "success", "data": { "taskId": "clxxx", "state": "pending" } }

# Poll until completed (result files are kept 30 days)
curl "https://api.apimodels.app/v1/video/generations?task_id=TASK_ID" \
  -H "Authorization: Bearer YOUR_API_KEY"
# { "code": 200, "data": { "state": "completed",
#     "resultUrls": ["https://r2.apimodels.app/videos/clxxx.mp4"] } }
```

```python
import requests, time
API_KEY = "YOUR_API_KEY"
H = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
B = "https://api.apimodels.app/v1/video/generations"

r = requests.post(B, headers=H, json={
    "model": "flux-3-max",
    "prompt": "The camera pushes in slowly as steam rises from the mug",
    "duration": 8,                 # 5-20 whole seconds (default 5)
    "resolution": "1080p",         # 720p ($0.221/s, default) | 1080p ($0.377/s)
    "first_frame_url": "https://apimodels.app/models/ltx-2.5-fast/photo-first-frame.jpg",   # image-to-video; also accepted as image / image_url
    # "last_frame_url": "https://apimodels.app/models/ltx-2.5-pro/photo.jpg",   # optional end frame
    # "keyframes": [{"image_url": "...", "time": 0}, ...], # instead of first/last frame, up to 10
    # "aspect_ratio": "9:16",      # auto (default) 21:9 2:1 16:9 4:3 1:1 3:4 9:16
    # "generate_audio": False,     # default True: synced sound is generated
    # "reasoning_level": "low",    # high (default) | low (faster)
})
task_id = r.json()["data"]["taskId"]

while True:
    data = requests.get(B, headers=H, params={"task_id": task_id}).json()["data"]
    if data["state"] == "completed":
        print(data["resultUrls"][0]); break
    if data["state"] == "failed":
        print(data.get("failMsg")); break
    time.sleep(3)
```

```javascript
const API_KEY = "YOUR_API_KEY";
const H = { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" };
const B = "https://api.apimodels.app/v1/video/generations";

const r = await fetch(B, {
  method: "POST", headers: H,
  body: JSON.stringify({
    model: "flux-3-max",
    prompt: "A paper airplane takes off from the table, flies out of the window and glides over the coastal road",
    duration: 10,                // 5-20 whole seconds (default 5)
    resolution: "720p",          // 720p ($0.221/s, default) | 1080p ($0.377/s)
    keyframes: [                 // 1-10 items; each needs time (s) or frame_index (24 fps)
      { image_url: "https://apimodels.app/models/ltx-2.5-fast/photo-first-frame.jpg", time: 0 },
      { image_url: "https://apimodels.app/access/ecommerce-product-image-editing/lifestyle-gpt-image-2.jpg", time: 4 },
      { image_url: "https://apimodels.app/models/ltx-2.5-fast/action.jpg", time: 10 },
    ],
    // aspect_ratio: "16:9",     // auto (default) 21:9 2:1 16:9 4:3 1:1 3:4 9:16
    // generate_audio: false,    // default true
    // reasoning_level: "low",   // high (default) | low (faster)
  }),
});
const { data: { taskId } } = await r.json();

while (true) {
  const { data } = await (await fetch(`${B}?task_id=${taskId}`, { headers: H })).json();
  if (data.state === "completed") { console.log(data.resultUrls[0]); break; }
  if (data.state === "failed") { console.log(data.failMsg); break; }
  await new Promise((res) => setTimeout(res, 3000));
}
```

## 三种模式,一个模型名

- 文生视频 — 只传 prompt。aspect_ratio 为 auto 时输出 16:9。
- 图生视频(首尾帧) — prompt + first_frame_url(也接受 image、image_url,或只有一项的 images),可再加 last_frame_url 指定结尾画面。aspect_ratio 为 auto 时跟随首帧。
- 关键帧生成 — prompt + keyframes:1-10 个 { image_url, frame_index } 或 { image_url, time }。frame_index 是 24fps 视频里的帧号,范围 0 到 duration × 24,不能重复;time 以秒为单位,由我们换算成帧号。关键帧不能和 first_frame_url / last_frame_url 同时传(返回 400)。

## 参数

| 字段              | 必填 | 类型      | 说明                                                                         |
| --------------- | -- | ------- | -------------------------------------------------------------------------- |
| model           | 是  | string  | flux-3-max                                                                 |
| prompt          | 是  | string  | 描述画面、动作、运镜、光线,以及想听到的声音。                                                    |
| duration        | 否  | number  | 5-20 任意整秒,默认 5。按这个秒数计费。                                                    |
| resolution      | 否  | string  | 720p($0.221/秒,默认)或 1080p($0.377/秒)。                                        |
| aspect_ratio    | 否  | string  | auto(默认)、21:9、2:1、16:9、4:3、1:1、3:4、9:16。auto 在文生视频时是 16:9,带图时跟随第一张图。       |
| first_frame_url | 否  | string  | 首帧(公网 URL)。也接受 image、image_url,或只有一项的 images 数组。                           |
| last_frame_url  | 否  | string  | 尾帧,配合 first_frame_url 使用。                                                  |
| keyframes       | 否  | array   | 1-10 个 { image_url, frame_index } 或 { image_url, time }(秒)。不能与首帧 / 尾帧同时使用。 |
| generate_audio  | 否  | boolean | 默认 true,生成与画面同步的声音;false 输出无声视频。                                           |
| reasoning_level | 否  | string  | high(默认)或 low(更快)。                                                         |
| seed            | 否  | number  | 随机种子,不传则随机。                                                                |
| callback_url    | 否  | string  | 任务完成时我们向该地址 POST 结果;不传就轮询 GET 查询。                                          |

## 说明

- 异步但很快:我们 2026-10-20 实测 720p 5 秒文生视频提交后 9 秒完成,成片 1280x704、24fps、带音轨。厂商自己的测试是 10 秒视频约 11 秒。创建返回 taskId,每 3-5 秒轮询 GET /v1/video/generations?task_id= 直到 completed,或传 callback_url。结果文件保留 30 天后自动删除,请及时下载或转存。
- 不接参考视频、参考音频,也不接关键帧之外的多张参考图:这类请求在创建时返回明确的 400,不会静默丢掉后照常扣费。
- 关键帧与首帧 / 尾帧混用的请求在创建时返回 400,不建任务、不扣费。
- 内容安全审核在上游开启;被拒的生成不扣费。

试一试:[Playground](https://apimodels.app/zh/models/flux-3-max);价格、实测速度以及与 Seedance 2.5 的对比见 [FLUX 3 Max API 教程](https://apimodels.app/zh/flux-3-max-api)。

## 常见问题

**FLUX 3 Max API 多少钱?**

apimodels.app 按输出秒数计费:720p $0.221/秒、1080p $0.377/秒,5-20 秒任意整秒 —— 720p 5 秒 $1.105,1080p 10 秒 $3.77。仅成功扣费,失败退款。

**怎么调用 FLUX 3 Max API?**

POST https://api.apimodels.app/v1/video/generations,model 填 flux-3-max,必填 prompt。可选:duration 5-20(默认 5)、resolution 720p 或 1080p(默认 720p)、aspect_ratio(auto、21:9、2:1、16:9、4:3、1:1、3:4、9:16)、generate_audio(默认 true)、reasoning_level high 或 low、seed;图生视频传 first_frame_url / last_frame_url,关键帧生成传 keyframes。轮询 GET /v1/video/generations?task_id=xxx,或传 callback_url。

**FLUX 3 Max 的关键帧怎么用?**

keyframes 传 1-10 个 { image_url, frame_index } 或 { image_url, time }。frame_index 是 24fps 视频里的帧号,范围 0 到 duration × 24,不能重复;time 以秒为单位,会换算成帧号。模型补出这些画面之间的运动。关键帧不能和 first_frame_url / last_frame_url 同时传,同时传返回 400。

**FLUX 3 Max 出片有多快?**

我们 2026-10-20 实测:720p 5 秒的文生视频提交后 9 秒拿到文件,成片 1280x704、24fps、带音轨。厂商自己的测试是 10 秒视频约 11 秒。

**FLUX 3 Max 不支持哪些输入?**

参考视频、参考音频,以及关键帧之外的多张参考图。带了这些的请求在创建时返回明确的 400,不会被静默丢掉。单张图放 first_frame_url,多张图放 keyframes。
