VideoKling 4.0
Text to video · Image to video · Video editing
Starting price $0.2488 / second
By MiniMax
Write a scene and turn it into a video of up to 15 seconds. Other modes animate a photo or change a clip you already have.
minimax/h3-max/image-to-videoThis model has other modes with their own ids: minimax/h3-max/text-to-video, minimax/h3-max/camera-controls, minimax/h3-max/reference-to-video, minimax/h3-max/lip-sync/image-to-video, minimax/h3-max/extend-video, minimax/h3-max/3d-to-video, minimax/h3-max/relight.
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/image-to-video",
"input": {
"prompt": "The rider in the photo starts pedaling along the riverside path. The camera follows from the side at a steady distance as morning light flickers through the trees.",
"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/image-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"The rider in the photo starts pedaling along the riverside path. The camera follows from the side at a steady distance as morning light flickers through the trees.","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"| Name | Type | Description |
|---|---|---|
promptrequired | string | Text prompt for video generation |
duration | number (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. |
resolution | string (enum) | The native generation resolution, or 1080P latent refinement from a native 768P source. |
seed | integer | Random seed. A random seed is selected when omitted. |
sync_mode | boolean | Return the generated video as base64 instead of a CDN URL. |
prompt_expansion_moderequired | string | 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. |
target_audio_url | string (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. |
image_url | string (image URL) | Optional URL of the image to use as the first frame. When provided, the output canvas follows this image. If only end_image_url is provided, the canvas follows that last frame instead. If both images are omitted, the request is handled as text-to-video (16:9 by default). |
end_image_url | string (image URL) | Optional URL of the image to use as the last frame. It may be provided alone for end-only keyframe generation; in that case the output canvas follows this image. |
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://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
MiniMax H3 Max turns a written scene into a video clip of up to 15 seconds at 480P, 768P or 1080P, in six aspect ratios from 21:9 to 9:16. Before it renders, it can rewrite a short prompt into a fuller one; you choose how much effort that takes, or turn it off.
The family goes beyond text: animate a photo, direct the camera, insert something into an existing clip, extend a clip or turn a 3D scene into video. Each mode has its own page and form. You can also pin your own audio file as the soundtrack.
Watch the whole clip and listen to the soundtrack. Check the bicycle wheels, body movement, background continuity and any requested speech. Keep the original input and selected settings when comparing another mode.