MuseSpark
MuseSpark
Models & toolsVideo models

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

DocumentationValue
API invocation identifierflux-3-video
IntegrationAsync 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.

promptstringNon-nullRequired

Text prompt describing the video to generate.

Length: minimum 1.

image_urlsarray<string>Non-nullConditional

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.

video_urlstringNon-nullOptional

Single video URL used for video-conditioned generation.

video_urlsarray<string>Non-nullOptional

A single source video for continuation. This is an alternative to video_url.

Item count: maximum 1.

resolutionstringNon-nullOptional

Output resolution. Supports 720p and 1080p.

Allowed values: "720p", "1080p".

Studio preset: "720p".

durationintegerNon-nullOptional

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.

audiobooleanNon-nullOptional

Enable audio generation for the video.

Studio preset: true.

aspect_ratiostringNon-nullOptional

Output video aspect ratio.

Allowed values: "21:9", "2:1", "16:9", "4:3", "1:1", "3:4", "9:16", "auto".

batch_sizeintegerNon-nullOptional

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.

nsfw_checkbooleanNon-nullOptional

Enable NSFW content checking before generation.

safety_toleranceintegerNon-nullOptional

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.

ModeRequired inputs
Text to VideoNo reference media required
First Frameimage_urls
First and Last Framesimage_urls
Multiple Keyframesimage_urls
Video to VideoNo reference media required
  • When video_url is provided, omit video_urls.
  • When the input mode is First Frame, provide image_urls; keep image_urls, when supplied, at least 1 and at most 1 items.
  • When the input mode is Multiple Keyframes, provide image_urls; omit video_url; keep image_urls, when supplied, at least 3 and at most 10 items; omit video_urls.
  • When the input mode is First and Last Frames, provide image_urls; omit video_url; keep image_urls, when supplied, at least 2 and at most 2 items; omit video_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.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.