FLUX 3 Max API
FLUX 3 Max is a post-trained, latency-optimized variant of FLUX 3 Video, the video model family from Black Forest Labs, with stronger prompt adherence and better visual quality. In our test on 2026-10-20 a 5-second 720p text-to-video clip was ready 9 seconds after submission through the API. One model id, flux-3-max, covers three modes: a prompt alone is text-to-video; a first frame (plus an optional last frame) is image-to-video; up to 10 timed keyframes is keyframes-to-video. Any whole length from 5 to 20 seconds, 720p or 1080p, with synced audio generated by default. Billed per output second: 720p at $0.221/s and 1080p at $0.377/s.
Pricing (per second)
| Resolution | Per second | 5s | 10s | 20s |
|---|---|---|---|---|
| 720p (default) | $0.221 | $1.105 | $2.21 | $4.42 |
| 1080p | $0.377 | $1.885 | $3.77 | $7.54 |
Billed by resolution for the seconds you request, any whole number from 5 to 20. Charged only on success, refunded on failure.
Autenticación
All requests carry the API key in the header:
Authorization: Bearer YOUR_API_KEYGenerate a video
https://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 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"] } }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)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));
}Three modes, one model id
- Text-to-video — prompt only. With aspect_ratio auto the output is 16:9.
- Image-to-video (first / last frame) — prompt + first_frame_url (image, image_url or a single-item images array are accepted too), optionally with last_frame_url for the closing frame. With aspect_ratio auto the output follows the first frame.
- Keyframes-to-video — prompt + keyframes: 1-10 items of { image_url, frame_index } or { image_url, time }. frame_index is the frame number in a 24 fps video, from 0 to duration × 24, and must be unique; time is in seconds and we convert it to a frame index. Keyframes cannot be combined with first_frame_url / last_frame_url (400).
Parámetros
| Field | Required | Type | Description |
|---|---|---|---|
| model | Yes | string | flux-3-max |
| prompt | Yes | string | Describe subject, action, camera motion, lighting, and the sound you want. |
| duration | No | number | Any whole second from 5 to 20, default 5. Billed for this many seconds. |
| resolution | No | string | 720p ($0.221/s, default) or 1080p ($0.377/s). |
| aspect_ratio | No | string | auto (default), 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. auto is 16:9 for text-to-video and follows the first image otherwise. |
| first_frame_url | No | string | First frame (public URL). image, image_url or a single-item images array are accepted too. |
| last_frame_url | No | string | Last frame, used together with first_frame_url. |
| keyframes | No | array | 1-10 items of { image_url, frame_index } or { image_url, time } (seconds). Cannot be combined with first / last frame. |
| generate_audio | No | boolean | Default true: synced sound is generated. false returns a silent video. |
| reasoning_level | No | string | high (default) or low (faster). |
| seed | No | number | Random seed; random when omitted. |
| callback_url | No | string | We POST the result to this URL on completion; omit it and poll the GET endpoint instead. |
Notas
- Async but fast: in our test on 2026-10-20 a 5-second 720p text-to-video clip completed 8 seconds after submission (about 4 seconds of inference) as a 1280x704, 24 fps file with audio. The vendor benchmarks a 10-second video at about 11 seconds. Create returns a taskId; poll GET /v1/video/generations?task_id= every 3-5 seconds until completed, or pass callback_url. Result files are deleted after 30 days, so download or re-host promptly.
- No reference video, no reference audio, and no more than one reference image outside keyframes: such requests get a clear 400 at create time, never dropped silently and billed anyway.
- A request that mixes keyframes with a first or last frame gets a 400 at create time: no task, no charge.
- Content safety checks run upstream; rejected generations are not charged.
Try it in the Playground. Pricing, speed tests and a comparison with Seedance 2.5 are in the FLUX 3 Max API guide.
Preguntas frecuentes
How much does the FLUX 3 Max API cost?
Per second of output on apimodels.app: 720p $0.221/s and 1080p $0.377/s, any whole length from 5 to 20 seconds, so a 5-second 720p clip is $1.105 and a 10-second 1080p clip $3.77. Only successful generations are charged; failures are refunded.
How do I call the FLUX 3 Max API?
POST https://api.apimodels.app/v1/video/generations with model flux-3-max and a prompt. Optional: duration 5-20 (default 5), resolution 720p or 1080p (default 720p), aspect_ratio (auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16), generate_audio (default true), reasoning_level high or low, seed; first_frame_url and last_frame_url for image-to-video, or keyframes for keyframes-to-video. Poll GET /v1/video/generations?task_id=xxx or pass callback_url.
How do keyframes work in FLUX 3 Max?
Pass keyframes as 1-10 items of { image_url, frame_index } or { image_url, time }. frame_index is the frame number in a 24 fps video, from 0 to duration × 24, and must be unique; time is in seconds and is converted to a frame index. The model generates the motion between the pinned images. Keyframes cannot be combined with first_frame_url or last_frame_url; sending both returns a 400.
How fast is FLUX 3 Max?
In our test on 2026-10-20, a 5-second 720p text-to-video clip was ready 9 seconds after submission through the API, at 1280x704 and 24 fps with audio. The vendor's own benchmark puts a 10-second video at about 11 seconds.
What inputs does FLUX 3 Max not accept?
Reference videos, reference audio, and more than one reference image outside keyframes. Requests carrying them get a clear 400 at create time instead of being silently dropped. Put a single image in first_frame_url and several images in keyframes.