Model API

MiniMax H3 Max

Insert a new scene into an existing video with H3 Max. Guide the scene with a prompt, reference images, or reference videos, then return to the original footage.

Model id

Use this in every request
minimax/h3-max/insert-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/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/insert-video",
  "input": {
    "video_url": "https://example.com/input.mp4",
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "start_time": 1.625,
    "resume_time": 1
  }
}'

# 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/insert-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","start_time":1.625,"resume_time":1}}'

# 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/insert-video
NameTypeDescription
video_urlrequiredstring (URL)
Video
promptstring
Prompt
reference_image_urlsarray of image URLs
Reference Images
start_timerequirednumber
Start Time
resume_timerequirednumber
Resume Time
durationnumber
Duration

Default: 5

resolutionstring (enum)
Resolution

Default: 768p

One of: 480p, 768p

seedinteger
Seed
enable_prompt_expansionboolean
Enable Prompt Expansion

Default: true

color_matchboolean
Color Match

Default: true

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 · per second · from$0.0793/ second
  • 768p · per second · from$0.0951/ second

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