Model API

MiniMax H3 Max

H3 Max Extend Video adds a text-guided continuation to an existing video. It supports prompt expansion, adjustable duration and aspect ratio, and output resolutions from 480p to 2K, returning either the full extended video or only the new footage.

Model id

Use this in every request
minimax/h3-max/extend-video

This model has other modes with their own ids: minimax/h3-max/text-to-video, minimax/h3-max/image-to-video, minimax/h3-max/camera-controls, minimax/h3-max/insert-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/extend-video",
  "input": {
    "video_url": "https://example.com/input.mp4",
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 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/extend-video", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4","prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 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/extend-video
NameTypeDescription
video_urlrequiredstring (URL)
URL of the video to extend. Must be 1.625 s to 60 s long, up to 50 MB, aspect ratio between 0.4 and 2.5.
promptrequiredstring
What happens next. Describe the continuation, not the source.
enable_prompt_expansionboolean
Automatically enhance the prompt using the source video to help keep the continuation consistent. May increase processing time.

Default: true

durationnumber
Seconds of new footage to add. The continuation clip also includes 1.625 seconds from the source's ending and may be longer because of frame rounding.

Default: 5

resolutionstring (enum)
Output video resolution.

Default: 768P

One of: 480P, 768P, 1080P

aspect_ratiostring (enum)
Output aspect ratio. 'auto' follows the source video. Other values crop the video to fit the selected ratio.

Default: auto

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

seedinteger
Seed for the continuation. Random when omitted.
outputstring (enum)
'extended' returns the source and new footage as one video. 'continuation' returns a clip that starts with a 1.625-second repeat of the source's ending, then shows the new footage.

Default: extended

One of: extended, continuation

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

  • 1080P · per second · from$0.2536/ second
  • 2K · per second · from$0.5071/ second
  • 480P · per second · from$0.0793/ second
  • 768P · per second · from$0.1268/ second

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