Video Model minimax
- 2025.01.10 This site now supports the video model
minimax - Supports
text-to-videoandimage-to-video - Billing is per generation, one video per request
Minimax API
- Generate task
- Query task status
- All requests must include
AuthorizationandContent-Typeheaders
- All requests must include
shell
'Authorization: Bearer hk-your-key'
'Content-Type: application/json''Authorization: Bearer hk-your-key'
'Content-Type: application/json'1. Generate Task
shell
curl --request POST \
--url https://api.openai-hk.com/vmodel/generate \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"model":"minimax-i2v",
"input": {
"prompt": "微笑",
"first_frame_image": "https://avatars.githubusercontent.com/u/3765401?v=4"
}
}'curl --request POST \
--url https://api.openai-hk.com/vmodel/generate \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"model":"minimax-i2v",
"input": {
"prompt": "微笑",
"first_frame_image": "https://avatars.githubusercontent.com/u/3765401?v=4"
}
}'- Request body
json
{
"model": "minimax-i2v",
"input": {
"prompt": "微笑",
"first_frame_image": "https://avatars.githubusercontent.com/u/3765401?v=4"
}
}{
"model": "minimax-i2v",
"input": {
"prompt": "微笑",
"first_frame_image": "https://avatars.githubusercontent.com/u/3765401?v=4"
}
}Request body field descriptions
Field Type Description model string Options: minimax-i2vimage-to-video,minimax-t2vtext-to-video,minimax-i2v-directorinput object Parameters for this model input.prompt string Prompt text input.first_frame_image string First frame image URL, base64 not supported input.last_frame_image string Last frame image URL, base64 not supported Response body — returns an
id
json
{
"id": "xmjmtxergdrgc0cm9sdr13fhtc"
}{
"id": "xmjmtxergdrgc0cm9sdr13fhtc"
}2. Query Task Status
shell
curl --request GET \
--url https://api.openai-hk.com/vmodel/feed/xmjmtxergdrgc0cm9sdr13fhtc \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json'curl --request GET \
--url https://api.openai-hk.com/vmodel/feed/xmjmtxergdrgc0cm9sdr13fhtc \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json'Response body
json
{
"id": "xmjmtxergdrgc0cm9sdr13fhtc",
"model": "minimax-i2v",
"input": {
"first_frame_image": "https://avatars.githubusercontent.com/u/3765401?v=4",
"prompt": "微笑"
},
"output": "https://file.aigpai.com/czjl/LxajD8twmC7POtwxdbmVIMz6mq0bAsZbKwtAFV8NTieJayBKA/tmp7tdp7rnr.output.mp4",
"status": "succeeded",
"error": null
}{
"id": "xmjmtxergdrgc0cm9sdr13fhtc",
"model": "minimax-i2v",
"input": {
"first_frame_image": "https://avatars.githubusercontent.com/u/3765401?v=4",
"prompt": "微笑"
},
"output": "https://file.aigpai.com/czjl/LxajD8twmC7POtwxdbmVIMz6mq0bAsZbKwtAFV8NTieJayBKA/tmp7tdp7rnr.output.mp4",
"status": "succeeded",
"error": null
}Field descriptions
| Field | Type | Description |
|---|---|---|
| id | string | |
| model | string | Options: minimax-i2v image-to-video, minimax-t2v text-to-video, minimax-i2v-director |
| input | object | Parameters for this model |
| output | string | Result URL |
| status | string | Status: starting processing succeeded failed |
| error | string | Error message |
OpenAi-HK