MiniMax H3 Max API usage and code examples
Base URL, authentication, endpoints, and code examples for calling MiniMax H3 Max (model ID: minimax-h3-max) through the API.
Model details
| Model ID | minimax-h3-max |
|---|---|
| Provider | MiniMax |
| Type | Video |
| Status | Available |
| Length | 5–15 seconds |
| Resolution | 480P, 720P |
| Supported inputs | Text (prompt), First and last frames |
| File availability | Not published |
| Processing region | Global |
| Pricing | See the model page |
Base URL and authentication
| Format | Base URL | Key header |
|---|---|---|
| OpenAI | https://token.echohub.io/v1 | Authorization: Bearer |
Create an API key in the console and put it in the ECHO_API_KEY environment variable.
Endpoints
| Method and path | What it does |
|---|---|
POST /v1/videos | Submit a video generation job |
GET /v1/videos/{id} | Return progress |
GET /v1/videos/{id}/content | Return the finished video file |
Call examples
Three steps: submit, check progress, download (example: 5 seconds, 480P).
# 1. Submit the job (note the returned id)
curl https://token.echohub.io/v1/videos \
-H "Authorization: Bearer $ECHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-max",
"prompt": "A Shiba Inu walking slowly along the beach at dusk",
"seconds": 5,
"resolution": "480P"
}'
# 2. Check progress (VIDEO_ID is the id from step 1)
VIDEO_ID="task_..."
curl https://token.echohub.io/v1/videos/$VIDEO_ID \
-H "Authorization: Bearer $ECHO_API_KEY"
# 3. Download when status is completed
curl -o video.mp4 https://token.echohub.io/v1/videos/$VIDEO_ID/content \
-H "Authorization: Bearer $ECHO_API_KEY"