Overview
2.3 (MiniMax-Hailuo-2.3)Video GenerationModel, supported Text-to-Video and Image-to-Video,, can, 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 text | Description |
|---|---|
| localized example text | Text-to-Video (localized example textprompt)/ Image-to-Video (localized example textfirst_frame_image) |
| Resolution | 768P (default)/ 1080P |
| Duration | 768P supported 6 / 10 seconds;1080P onlysupported 6 seconds; default 6 seconds |
| localized example text | ,「Resolution × Duration」, and image |
Base URL: https://mm-internal-cn.leonecloud.com/minimax
when2.3 Fast (onlyImage-to-Video).
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」 |
| last frame / subject reference| Model supported,`last_frame_image`, `subject_reference` will|
---
## Quick Start
**Text-to-Video**
```bashcurl -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",
"prompt": "localized example text[Pedestal up], after[Static shot]",
"duration": 6,
"resolution": "768P"
}'
**Image-to-Video**
```bashcurl -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",
"prompt": ",,",
"first_frame_image": "https://example.com/mouse.jpg",
"duration": 6,
"resolution": "1080P"
}'
**Query Task**
```bashcurl -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**
```bashcurl -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` |
| prompt | string | Condition | Prompt, up to 2000 characters.Text-to-VideoRequired, Image-to-VideoOptional.supported`[localized example text]`,「localized example text」 |
| first_frame_image | string | No | first frame image.as Image-to-Video.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" }
}| field | Type | Description |
|---|---|---|
| task_id | string | Task ID, query.Failurewhen as characters |
| base_resp.status_code | integer | 0 as Success, 0「Error Codes」 |
| base_resp.status_msg | string | Statuslocalized example text |
2. Query Task
GET /v1/query/video_generation
Request Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
| task_id | query | Yes | Create 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" }
}| field | Type | Description |
|---|---|---|
| file.file_id | integer | file ID |
| file.bytes | integer | File size, first as0, file as |
| file.created_at | integer | when (Unix seconds) |
| file.filename | string | file |
| file.download_url | string | ,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
- Text-to-Video 768P 6 seconds:Usually 1 ~ 2 minutes
- Image-to-Video 1080P 6 seconds:Usually 2 ~ 3 minutes
- Duration, Resolution height, when### 3. Prompt Tips
- Prompt = subject+,+,+ - when`prompt_optimizer` as`false`, the system will Prompt
- when,
---## FAQ
### Q1: Text-to-VideoImage-to-Video?
**A**: Not requiredlocalized example text.localized example text`prompt` Text-to-Video;`first_frame_image` Image-to-Video.
### 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.