Video / MiniMax

2.3 Fast Video Generation

Overview

2.3 Fast (MiniMax-Hailuo-2.3-Fast)2.3,onlysupported Image-to-Video:,, and Capability and, can in Prompt[localized example text] localized example text.

endpointPath, Request / field MiniMax (v1 endpoint).complete,Base URL and API Key can, localized example text.

localized example textDescription
localized example textonlyImage-to-Video, first_frame_image Required
Resolution768P (default)/ 1080P
Duration768P supported 6 / 10 seconds;1080P onlysupported 6 seconds; default 6 seconds
localized example text,「Resolution × Duration」,

Base URL: https://mm-internal-cn.leonecloud.com/minimax

Text-to-Video, or height quality when2.3.

Authentication

with endpoint in Request in API Key:```
Authorization: Bearer {YOUR_API_KEY}


---

## and| localized example text| localized example text|
|----|--------|
| Task ID | `task_id` task (`task_20261119141434_buu2isxf`), characters,|
| file ID| `file_id` file, in file endpoint|
| localized example text| `download_url`,`expires_at` when, and when store|
| localized example text| localized example text`challenge`, task when, and,「Callback Notification」 |
| Text-to-Video | Model supported, If omitted`first_frame_image` will|
| last frame / subject reference| Model supported,`last_frame_image`, `subject_reference` will|

---

## Quick Start

**Image-to-Video**
```bash

curl -X POST "https://mm-internal-cn.leonecloud.com/minimax/v1/video_generation" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "MiniMax-Hailuo-2.3-Fast",
"prompt": ",,",
"first_frame_image": "https://example.com/mouse.jpg",
"duration": 6,
"resolution": "1080P"
}'


**Query Task**
```bash

curl -X GET "https://mm-internal-cn.leonecloud.com/minimax/v1/query/video_generation?task_id=task_20261119141434_buu2isxf" \
-H "Authorization: Bearer your_api_key_here"


**localized example text**
```bash

curl -X GET "https://mm-internal-cn.leonecloud.com/minimax/v1/files/retrieve?file_id=143984732575658" \
-H "Authorization: Bearer your_api_key_here"


---

## Endpoints

| Method | Path (Base URL)| localized example text|
|--------|------|------|
| POST | `/v1/video_generation` | create Video Generationtask|
| GET | `/v1/query/video_generation` | Query Task Status |
| GET | `/v1/files/retrieve` | video|

> endpoint return HTTP 200, Success and Failure`base_resp.status_code` (`0` as Success).

---

### 1. Create Task

**POST** `/v1/video_generation`

#### Request Parameters

| Parameter | Type | Required | Description |
|------|------|------|------|
| model | string | Yes | localized example text`MiniMax-Hailuo-2.3-Fast` |
| prompt | string | No | Prompt, up to 2000 characters.supported`[localized example text]`,「localized example text」 |
| first_frame_image | string | Yes | first frame image.supported http(s) or`data:image/jpeg;base64,...` localized example text|
| duration | integer | No | Duration (seconds), default `6`.`768P` supported`6` / `10`, `1080P` onlysupported`6` |
| resolution | string | No | Resolution, default `768P`.Optional `768P` / `1080P` |
| prompt_optimizer | boolean | No | Prompt, default`true`.when`false` |
| fast_pretreatment | boolean | No | localized example text`prompt_optimizer` when when, default`false` |
| callback_url | string | No | Callback URL, taskwhen,「Callback Notification」 |

first frame imageRequirements:

- Format:JPG / JPEG / PNG / WebP
- size: 20MB
- dimensions: short side greater than 300px, Aspect ratio in 2:5 ~ 5:2 localized example text#### localized example text```json
{
 "task_id": "task_20261119141434_buu2isxf",
 "base_resp": { "status_code": 0, "status_msg": "success" }
}
fieldTypeDescription
task_idstringTask ID, query.Failurewhen as characters
base_resp.status_codeinteger0 as Success, 0「Error Codes」
base_resp.status_msgstringStatuslocalized example text

2. Query Task

GET /v1/query/video_generation

Request Parameters

ParameterLocationRequiredDescription
task_idqueryYesCreate Taskreturntask_id

localized example text```json { "task_id": "task_20261119141434_buu2isxf", "status": "Success", "file_id": "143984732575658", "video_width": 1366, "video_height": 768, "base_resp": { "status_code": 0, "status_msg": "success" } }


| field | Type | Description |
|------|------|------|
| status | string | Task Status, localized example text|
| file_id | string | Successreturned when applicable, file endpoint|
| video_width / video_height | integer | Successreturned when applicable, width and height ()|

Task Status:

| status | Description |
|--------|------|
| `Preparing` | in|
| `Queueing` | queued |
| `Processing` | in|
| `Success` | Success|
| `Fail` | Failure, Failure`base_resp.status_msg` |

> taskFailure (`status=Fail`)when, Success: (1026 / 1027)`base_resp.status_code` as`0`, Failurein`status_msg`.task`status`, localized example text`status_code`.

---

### 3. localized example text**GET** `/v1/files/retrieve`

#### Request Parameters

| Parameter | Location | Required | Description |
|------|------|------|------|
| file_id | query | Yes | Query Taskreturn`file_id` |

#### localized example text```json
{
 "file": {
 "file_id": 143984732575658,
 "bytes": 0,
 "created_at": 1795068959,
 "filename": "task_20261119141434_buu2isxf_0_1795068956048915071.mp4",
 "purpose": "video_generation",
 "download_url": "https://example-oss.com/downloads/20261119/xxx.mp4?expires_at=1795328159"
 },
 "base_resp": { "status_code": 0, "status_msg": "success" }
}
fieldTypeDescription
file.file_idintegerfile ID
file.bytesintegerFile size, first as0, file as
file.created_atintegerwhen (Unix seconds)
file.filenamestringfile
file.download_urlstring,expires_at when

Callback Notification

Create Taskwhencallback_url, taskafter willPOST localized example text.Request Bodyand query,status as:```json
{
"task_id": "task_20261119141434_buu2isxf",
"status": "success",
"file_id": "143984732575658",
"video_width": 1366,
"video_height": 768,
"base_resp": { "status_code": 0, "status_msg": "success" }
}


| status | Description |
|--------|------|
| `success` | Success|
| `failed` | Failure,`base_resp.status_msg` |

Request:| localized example text| Description |
|----|------|
| `X-Funcloud-Event` | localized example text`task.completed` |
| `X-Funcloud-Signature` |,|

> and:`challenge` Request, after.after HTTP 200.

---

## localized example text`prompt` can use`[localized example text]`, supported 15:| Type | localized example text|
|------|------|
| localized example text| `[Truck left]`, `[Truck right]` |
| localized example text| `[Pan left]`, `[Pan right]` |
| localized example text| `[Push in]`, `[Pull out]` |
| localized example text| `[Pedestal up]`, `[Pedestal down]` |
| localized example text| `[Tilt up]`, `[Tilt down]` |
| localized example text| `[Zoom in]`, `[Zoom out]` |
| localized example text| `[Shake]` |
| localized example text| `[Tracking shot]` |
| localized example text| `[Static shot]` |:

-**localized example text**:localized example text`[]` when,`[Pan left,Pedestal up]`, recommendedexceeds 3 
-**localized example text**:,`"...[Push in], after...[Pull out]"`
- **localized example text**:can, 

---## Error Codes

| status_code | Description |
|-------------|------|
| 0 | Success |
| 1002 |, after|
| 1004 | Failure, API Key|
| 1008 | Insufficient balance|
| 1026 | input not|
| 1027 | not|
| 1045 | and task, etc. with task complete|
| 2013 | Parameter(task / file in ),`status_msg` |
| 2022 | Modelin or not|
| 1000 | Error, after|

---

## Best Practices

### 1. Polling Strategy

- First 30 seconds:query every 5 seconds
- 30 seconds ~ 2 minutes:query every 10 seconds
- After 2 minutes:15 seconds query 

recommended`callback_url`, Polling.

### 2. Processing Time Reference

- Image-to-Video 768P 6 seconds:Usually 40 seconds ~ 1.5 minutes
- Image-to-Video 1080P 6 seconds:Usually 1 ~ 2 minutes
- Duration, Resolution height, when### 3. Prompt Tips

- Prompt = first frame subject+,+ - when`prompt_optimizer` as`false`, the system will Prompt
- when, 

---## FAQ

### Q1: can If omitted first frame image Text-to-Video?

**A**: can.Modelonly supported Image-to-Video,`first_frame_image` Required.Text-to-Video 2.3.

### Q2: as 1080P 10 seconds?

**A**: `1080P` supported 6 seconds.10 seconds`768P`.

### Q3: can last frame or subject Reference image?

**A**: Model supported,`last_frame_image` or`subject_reference` will.

### Q4: `file.bytes` as 0?

**A**: first as`0`, file as,`download_url` can.

### Q5: validity period?

**A**: localized example text`expires_at` when (Unix seconds).in first video store.

### Q6: taskFailurewill?

**A**: will.taskFailurewhen will.

---

## Technical Support

If you have any questions, please contact our technical support team.
Updated 2026-11-19