MiniMax H3 Text-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)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The name of the model used for the generation task. Used for MiniMax H3 text-to-video. Default:"minimax-h3/text-to-video"。 Allowed values:minimax-h3/text-to-video。 Example:minimax-h3/text-to-video。 |
prompt | string | Yes | Prompt required by the ModelFold gateway; at most 2000 characters. Video generation prompt, length is between 1 and 7000 characters. minLength: 1. maxLength: 2000. Example:A cat walking slowly on the beach at sunset, cinematic shot, waves gently lapping the shore。 |
aspect_ratio | string | Yes | Video aspect ratio. Required for text-to-video, adaptive is not supported. Allowed values:21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16。 Example:21:9。 |
duration | integer | Yes | Generated video duration, supports 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。 |
resolution | string | No | Video 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/text-to-video",
"prompt": "A cat walking slowly on the beach at sunset, cinematic shot, waves gently lapping the shore",
"aspect_ratio": "21:9",
"duration": 6,
"resolution": "2K"
}'json
{
"model": "minimax-h3/text-to-video",
"prompt": "A cat walking slowly on the beach at sunset, cinematic shot, waves gently lapping the shore",
"aspect_ratio": "21:9",
"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": {}
}