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
minimax/h3-max/insert-videoThis 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
| Name | Type | Description |
|---|---|---|
video_urlrequired | string (URL) | Video |
prompt | string | Prompt |
reference_image_urls | array of image URLs | Reference Images |
start_timerequired | number | Start Time |
resume_timerequired | number | Resume Time |
duration | number | Duration |
resolution | string (enum) | Resolution |
seed | integer | Seed |
enable_prompt_expansion | boolean | Enable Prompt Expansion |
color_match | boolean | Color Match |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"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