MuseSpark
MuseSpark
Models & toolsVideo models

MiniMax H3 Max Spicy API guide

MiniMax H3 Max Spicy API: Generate video from text, a first frame, or paired first and last frames with MiniMax H3 Max Spicy. This item has its own resolution, duration, and watermark rules.

Model overview

Generate video from text, a first frame, or paired first and last frames with MiniMax H3 Max Spicy. This item has its own resolution, duration, and watermark rules.

API integration

DocumentationValue
API invocation identifierminimax-h3-max-spicy
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; maximum 7000.

first_frame_imagestringNon-nullConditional

Required for First Frame, First and Last Frames.

Additional requirements depend on other values. See model rules.

URL of the first-frame image.

Media types: image/*.

last_frame_imagestringNon-nullConditional

Required for First and Last Frames.

Additional requirements depend on other values. See model rules.

URL of the last-frame image.

Media types: image/*.

resolutionstringNon-nullOptional

Output video resolution: 768P.

Allowed values: "768P".

Studio preset: "768P".

durationintegerNon-nullOptional

Output duration in seconds, from 4 to 15.

Value: minimum 4; maximum 15.

Studio preset: 5.

aspect_ratiostringNon-nullOptional

Output aspect ratio. Choose one of the six listed concrete ratios.

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

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.

watermarkbooleanNon-nullOptional

Whether to add an AIGC identification watermark to the 768P output.

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 Framefirst_frame_image
First and Last Framesfirst_frame_image, last_frame_image
  • When the input mode is First and Last Frames, provide first_frame_image, last_frame_image.
  • When last_frame_image is provided, provide first_frame_image.
  • When the input mode is First Frame, provide first_frame_image; omit last_frame_image.
  • When the input mode is Text to Video, omit last_frame_image; omit first_frame_image.

Parameter meaning

  • The Max variant has its own minimum duration. Use its item-specific range instead of the standard H3 range.
  • Provide a nonempty prompt in every generation mode, including media-conditioned requests.
  • Text to Video, First Frame, First and Last Frames: For this H3 Max integration, use 768P output and a duration of 4–15 seconds. Do not assume that H3 reference-video features are available for this Max item.

Dependencies

  • Text to Video, First Frame, First and Last Frames: A non-empty text prompt is required in every mode, including first-frame and first-and-last-frame generation.
  • Text to Video, First Frame, First and Last Frames: A last frame requires a first frame. Provide at most one of each; the images constrain the beginning and end of the generated sequence.
  • Text to Video, First Frame, First and Last Frames: Text-to-video needs a concrete aspect ratio. Adaptive framing is unavailable for text-only requests; choose one of the declared aspect_ratio values.

Integration notes

Use the following field formats and values in MuseSpark requests.

  • prompt, aspect_ratio: Use the declared prompt and reference fields plus aspect_ratio, directly inside parameters.

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": "minimax-h3-max-spicy",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "768P",
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: duration · batch_size · resolution · 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": "minimax-h3-max-spicy",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "768P",
    "prompt": "A paper city under soft morning light",
    "first_frame_image": "YOUR_FIRST_FRAME_IMAGE"
  }
}'

Parameters used: duration · batch_size · resolution · prompt · first_frame_image.

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": "minimax-h3-max-spicy",
  "parameters": {
    "duration": 5,
    "batch_size": 1,
    "resolution": "768P",
    "prompt": "A paper city under soft morning light",
    "first_frame_image": "YOUR_FIRST_FRAME_IMAGE",
    "last_frame_image": "YOUR_LAST_FRAME_IMAGE"
  }
}'

Parameters used: duration · batch_size · resolution · prompt · first_frame_image · last_frame_image.

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.