Model API

MiniMax H3 Max

H3 Max is a post-trained variant of MiniMax H3, tuned for stronger prompt adherence and better aesthetics while co-optimized with our custom inference stack for higher throughput with no compromises on output quality

Model id

Use this in every request
minimax/h3-max/text-to-video

This model has other modes with their own ids: minimax/h3-max/image-to-video, minimax/h3-max/camera-controls, minimax/h3-max/insert-video, minimax/h3-max/extend-video, minimax/h3-max/3d-to-video.

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3-max/text-to-video",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "prompt_expansion_mode": "balanced"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "minimax/h3-max/text-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","prompt_expansion_mode":"balanced"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for minimax/h3-max/text-to-video
NameTypeDescription
promptrequiredstring
Text prompt for video generation
durationnumber (enum)
Video length in seconds. The output can run up to about 0.7 s longer than requested. Use at least 2 s with target_audio_url.

Default: 5

One of: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

resolutionstring (enum)
The native generation resolution, or 1080P latent refinement from a native 768P source.

Default: 768P

One of: 480P, 768P, 1080P

seedinteger
Random seed. A random seed is selected when omitted.
sync_modeboolean
Return the generated video as base64 instead of a CDN URL.

Default: false

prompt_expansion_moderequiredstring (enum)
How much effort to spend rewriting the prompt before generation. 'disabled' skips prompt expansion. 'balanced' returns in about a second. 'quality' spends up to ~30s on a richer prompt.

Default: balanced

One of: disabled, fast, balanced, quality

target_audio_urlstring (URL)
Optional URL of an audio clip at least 2 seconds long (maximum 15 MB) to pin to the generated soundtrack. Longer clips are trimmed to the generated video's length, keeping the beginning. The original audio replaces the output soundtrack, padded with silence if shorter than the video, without changing playback speed. Exceptionally high sample rates may be resampled to 96 kHz. Accepts an HTTP(S) URL or a base64 data URI.
aspect_ratiostring (enum)
The aspect ratio of the generated video.

Default: 16:9

One of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Pricing

  • 480P$0.08/ second
  • 768P$0.13/ second
  • 1080P$0.26/ second

The exact charge for your input comes from a quote. How charges settle