Flux 3 Video API guide
Flux 3 Video API: Create video from text, reference images, first and last frames, keyframes, or video input with Flux 3 Video. Choose the matching input mode before setting duration, resolution, and audio options.
Model overview
Create video from text, reference images, first and last frames, keyframes, or video input with Flux 3 Video. Choose the matching input mode before setting duration, resolution, and audio options.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | flux-3-video |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Text prompt describing the video to generate.
Length: minimum 1.
Required for First Frame, First and Last Frames, Multiple Keyframes.
Additional requirements depend on other values. See model rules.
Provide 1 to 10 keyframe image URLs or Base64 images in order. One image is the first frame; two are first and last frames; with 3 to 10 images, intermediate frames are distributed between them. Preserve the array order.
Item count: maximum 10.
Single video URL used for video-conditioned generation.
A single source video for continuation. This is an alternative to video_url.
Item count: maximum 1.
Output resolution. Supports 720p and 1080p.
Allowed values: "720p", "1080p".
Studio preset: "720p".
Requested video duration in integer seconds, from 5 to 20. Video continuation may produce a shorter output than requested.
Value: minimum 5; maximum 20.
Studio preset: 5.
Enable audio generation for the video.
Studio preset: true.
Output video aspect ratio.
Allowed values: "21:9", "2:1", "16:9", "4:3", "1:1", "3:4", "9:16", "auto".
Standard quantity control field. The allowed range for this item is 1-4.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
Enable NSFW content checking before generation.
Safety tolerance level from 0 to 4.
Value: minimum 0; maximum 4.
Studio preset: 0.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Text to Video | No reference media required |
| First Frame | image_urls |
| First and Last Frames | image_urls |
| Multiple Keyframes | image_urls |
| Video to Video | No reference media required |
- When
video_urlis provided, omitvideo_urls. - When the input mode is First Frame, provide
image_urls; keepimage_urls, when supplied, at least 1 and at most 1 items. - When the input mode is Multiple Keyframes, provide
image_urls; omitvideo_url; keepimage_urls, when supplied, at least 3 and at most 10 items; omitvideo_urls. - When the input mode is First and Last Frames, provide
image_urls; omitvideo_url; keepimage_urls, when supplied, at least 2 and at most 2 items; omitvideo_urls.
Parameter meaning
- Use an integer duration. A duration string such as auto is not a request for adaptive video length.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Text to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "flux-3-video",
"parameters": {
"audio": true,
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"safety_tolerance": 0,
"prompt": "A paper city under soft morning light"
}
}'Parameters used: audio · duration · batch_size · resolution · safety_tolerance · prompt.
First Frame
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "flux-3-video",
"parameters": {
"audio": true,
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"safety_tolerance": 0,
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
]
}
}'Parameters used: audio · duration · batch_size · resolution · safety_tolerance · prompt · image_urls.
First and Last Frames
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "flux-3-video",
"parameters": {
"audio": true,
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"safety_tolerance": 0,
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png",
"https://example.com/input-2.png"
]
}
}'Parameters used: audio · duration · batch_size · resolution · safety_tolerance · prompt · image_urls.
Multiple Keyframes
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "flux-3-video",
"parameters": {
"audio": true,
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"safety_tolerance": 0,
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png",
"https://example.com/input-2.png",
"https://example.com/input-3.png"
]
}
}'Parameters used: audio · duration · batch_size · resolution · safety_tolerance · prompt · image_urls.
Video to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "flux-3-video",
"parameters": {
"audio": true,
"duration": 5,
"batch_size": 1,
"resolution": "720p",
"safety_tolerance": 0,
"prompt": "A paper city under soft morning light"
}
}'Parameters used: audio · duration · batch_size · resolution · safety_tolerance · prompt.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.