Skip to main content
Make sure you add your s3 details for the minimax_h3 server, so you can receive the video generated in your bucket. Videos generated without s3 details being added will be deleted after 24 hours.
MiniMax H3 serves two image-to-video capabilities from this single endpoint, and nothing else in the payload tells them apart — a single init_image is a valid request to either — so model_id is required here: A request without a valid model_id is rejected with:
json

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
Animates between two frames. Both are sent in init_image as a list of exactly two images — the first frame, then the last frame. One image is not enough, and a third would be silently dropped, so anything other than two is refused.

Body

json

Body Attributes

string
required
Your API Key used for request authorization.
string
default:"h3-minimax-start-end-frame"
required
Must be h3-minimax-start-end-frame for this mode.
string
required
Text prompt with a description of the motion you want between the two frames.
array
required
A list of exactly two images — the first frame, then the last frame. Each entry is a link to a valid PNG, JPEG or other image format file, or a base64 string.
number
Width of the generated frame. Must be a multiple of 32 and at most 1536. Must be sent together with height.
number
Height of the generated frame. Must be a multiple of 32 and at most 1536. Must be sent together with width.
number
Length of the generated video in seconds. Minimum is 5, maximum is 15.
number
The number of frames in the generated video. Minimum is 120, maximum is 345.
number
Number of denoising steps. Minimum is 1, maximum is 50.
number
Seed is used to reproduce results. The same seed will give you the same video again. Pass null for a random number.
boolean
default:"false"
Queue response instantly before processing finishes instead of waiting a minimum amount of time. default: false, options: true or false.
boolean
default:"false"
If true, stores the video in temporary storage which is cleaned every 24 hours. default: false, options: true or false.
boolean
default:"false"
Set to true when the images in init_image are sent as base64 strings instead of URLs. default: false, options: true or false.
string
Set a URL to get a POST API call once the video generation is complete.
string
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.