- Introduction
- Quick Start Guide
- Make a request
- Chat Models
- ChatGpt
- ChatGPT (Audio)
- ChatGPT (Chat)
- Chat completion object
- Create chat completion (streaming)
- Create chat completion (non-streaming)
- Create chat image recognition (streaming)
- Create chat image recognition (streaming) base64
- Create chat image recognition (non-streaming)
- Function calling
- N choices
- Create chat function call (only non-streaming)
- Create structured output
- ChatGPT (Completions)
- ChatGPT(Embeddings)
- Anthropic Claude
- Gemini
- Image Models
- GPT-IMAGE-1
- MJ
- Ideogram
- Kling Image
- Flux
- Recraft API
- Models use Dall-e Format
- DALL·E 3POST
- Video Models
- Kling Video
- Runway ML Video
- Luma Video
- Pika Video
- Google Veo
- Minimax - Hailuo
- Music Model - Suno
- Illustrate
- Parameter
- Task submission
- Query interface
- Python Samples
- python openai official library (using AutoGPT, langchain, etc.)
- Python uses speech to text
- Python uses text to speech
- Python uses Embeddings
- python calls DALL·E
- python simple call openai function-calling demo
- python langchain
- python llama_index
- Python uses gpt-4o to identify pictures-local pictures
- python library streaming output
- Python uses gpt-4o to identify images
- Plug-in/software usage tutorials
- Help Center
- Tutorials
Submit Video Request
POST
/hailuo/v1/video_generation
Request
Body Params application/json
model
string
required
prompt
string
required
Note: It should be less than 2000 characters.
first_frame_image
string
optional
Supported formats:
Upon passing this parameter, the model is capable of proceeding without a prompt, autonomously determining the progression of the video.
Image specifications:
prompt_optimizer
boolean
optional
For more precise control, this parameter can be set to
False, and the model will follow the instructions more strictly. At this time
It is recommended to provide finer prompts for best results.
duration
integer
optional
Enum values: 6,10
resolution
string
optional
6s : default 768P, available: 768P,1080P;
10s:default 768P, available: 768P.
Example
{
"model": "MiniMax-Hailuo-02",
"first_frame_image": "https://p2.a.kwimgs.com/bs2/upload-ylab-stunt/ai_portal/1731125871/6N0QrAnAeU/409-f054fa25c21a.png",
"prompt": "A 20-year-old girl, with an oval face, delicate features, long black hair, fair skin, and ambient light, wearing a short white skirt, sitting on a bench beside the street, smiling and shaking her hair",
"prompt_optimizer": true,
"duration": 10,
"resolution": "768P"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/hailuo/v1/video_generation' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "MiniMax-Hailuo-02",
"first_frame_image": "https://p2.a.kwimgs.com/bs2/upload-ylab-stunt/ai_portal/1731125871/6N0QrAnAeU/409-f054fa25c21a.png",
"prompt": "A 20-year-old girl, with an oval face, delicate features, long black hair, fair skin, and ambient light, wearing a short white skirt, sitting on a bench beside the street, smiling and shaking her hair",
"prompt_optimizer": true,
"duration": 10,
"resolution": "768P"
}'
Responses
🟢200OK
application/json
Body
base_resp
object
required
status_code
integer
required
status_msg
string
required
message
string
required
status
string
required
task_id
string
required
Example
{
"base_resp": {
"status_code": 0,
"status_msg": "success"
},
"message": "YEScale - Hailuo Video Task Submitted",
"status": "SUBMITTED",
"task_id": "9b1f7a8e-1527-4049-a798-ad609835e5a1"
}
Modified at 2025-06-21 15:31:05