Skip to main content
← MiniMax Model name: minimax/h3-max/image-to-video
Generation type: image_to_video
Endpoint: POST /api/asset_generator/

Pricing

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

Input parameters

Send these fields in input_params.
string
required
Text prompt for video generation.Minimum characters: 1. Maximum characters: 7000.
string
required
URL of the image to use as the first frame. The output aspect ratio follows this image.
string
Optional URL of the image to use as the last frame (first-to-last keyframe).
integer
default:5
The duration of the video in seconds.Allowed values: 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15.
string
default:"768P"
480P or 768P resolution (2K is not supported).Allowed values: "480P", "768P".

Response

The request returns the task with status: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.