Skip to content

MiniMax H3 Image-to-Video ​

Endpoint ​

POST /videos/generations

Full URL: https://modelfold.ai/v1/videos/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe name of the model used for the generation task. Used for MiniMax H3 image-to-video. Default:"minimax-h3/image-to-video"。 Allowed values:minimax-h3/image-to-video。 Example:minimax-h3/image-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Video generation prompt, length is between 1 and 7000 characters. minLength: 1. maxLength: 2000. Example:Let the character in the scene turn around naturally and smile, camera slowly pushing forward。
durationintegerYesGenerated video duration, supporting integer values from 4 to 15 seconds. Default:6。 Allowed values:4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15。 minimum: 4. maximum: 15. Example:6。
first_frame_urlstringNoFirst frame image URL. Note: Either first_frame_url or last_frame_url must be provided. Publicly accessible HTTP(S) URL; supports JPG, JPEG, PNG, WEBP, HEIC, HEIF formats; single image size not exceeding 30 MB, image side length between 256 and 5760 pixels, aspect ratio between 0.4 and 2.5. pattern: `^(https?
last_frame_urlstringNoLast frame image URL. Note: Either first_frame_url or last_frame_url must be provided. Image restrictions are the same as first_frame_url. pattern: `^(https?
resolutionstringNoVideo resolution. Default:"2K"。 Allowed values:768P / 2K。 Example:2K。

Request Example ​

bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3/image-to-video",
  "prompt": "Let the character in the scene turn around naturally and smile, camera slowly pushing forward",
  "duration": 6,
  "resolution": "2K"
}'
json
{
  "model": "minimax-h3/image-to-video",
  "prompt": "Let the character in the scene turn around naturally and smile, camera slowly pushing forward",
  "duration": 6,
  "resolution": "2K"
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.mp4"
    }
  ],
  "usage": {}
}

ModelFold — one API for all the best AI models.