APIMODELSAPIMODELS
API 文档

apimodels.app

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/秒;2026 年 11 月 7 日前特价 720p $0.085/秒、1080p $0.145/秒。

价格(按秒)

分辨率每秒5s10s20s
720p(默认)$0.221$1.105$2.21$4.42
1080p$0.377$1.885$3.77$7.54

按分辨率和请求的秒数收费,5-20 秒任意整秒。2026 年 11 月 7 日 00:00 UTC 前特价 720p $0.085/秒、1080p $0.145/秒,到点自动恢复上表价格。仅成功扣费、失败退款。

认证

所有请求在 Header 携带 API Key:

Authorization: Bearer YOUR_API_KEY

生成视频

POSThttps://api.apimodels.app/v1/video/generations·GET/v1/video/generations?task_id=
# 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 the lanterns light up one by one",
    "first_frame_url": "https://example.com/first.jpg",
    "last_frame_url": "https://example.com/last.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 flies from the desk, out of the window and over the rooftops",
    "keyframes": [
      { "image_url": "https://example.com/desk.jpg", "time": 0 },
      { "image_url": "https://example.com/window.jpg", "time": 4 },
      { "image_url": "https://example.com/rooftops.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"] } }

三种模式,一个模型名

  • 文生视频 — 只传 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是stringflux-3-max
prompt是string描述画面、动作、运镜、光线,以及想听到的声音。
duration否number5-20 任意整秒,默认 5。按这个秒数计费。
resolution否string720p($0.221/秒,默认)或 1080p($0.377/秒)。
aspect_ratio否stringauto(默认)、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否array1-10 个 { image_url, frame_index } 或 { image_url, time }(秒)。不能与首帧 / 尾帧同时使用。
generate_audio否boolean默认 true,生成与画面同步的声音;false 输出无声视频。
reasoning_level否stringhigh(默认)或 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;价格、实测速度以及与 Seedance 2.5 的对比见 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。2026 年 11 月 7 日前特价 720p $0.085/秒、1080p $0.145/秒。仅成功扣费,失败退款。

怎么调用 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。