Skip to content

Video Model minimax

  • 2025.01.10 This site now supports the video model minimax
  • Supports text-to-video and image-to-video
  • Billing is per generation, one video per request

Minimax API

    1. Generate task
    1. Query task status
    1. All requests must include Authorization and Content-Type headers
shell
'Authorization: Bearer hk-your-key'
'Content-Type: application/json'
'Authorization: Bearer hk-your-key'
'Content-Type: application/json'

1. Generate Task

post https://api.openai-hk.com/vmodel/generate

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

    FieldTypeDescription
    modelstringOptions: minimax-i2v image-to-video, minimax-t2v text-to-video, minimax-i2v-director
    inputobjectParameters for this model
    input.promptstringPrompt text
    input.first_frame_imagestringFirst frame image URL, base64 not supported
    input.last_frame_imagestringLast frame image URL, base64 not supported
  • Response body — returns an id

json
{
  "id": "xmjmtxergdrgc0cm9sdr13fhtc"
}
{
  "id": "xmjmtxergdrgc0cm9sdr13fhtc"
}

2. Query Task Status

get https://api.openai-hk.com/vmodel/{id}

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

FieldTypeDescription
idstring
modelstringOptions: minimax-i2v image-to-video, minimax-t2v text-to-video, minimax-i2v-director
inputobjectParameters for this model
outputstringResult URL
statusstringStatus: starting processing succeeded failed
errorstringError message