ビデオモデル minimax
- 2025.01.10 本サイトはビデオモデル
minimaxに対応しました text-to-videoとimage-to-videoをサポート- 生成ごとに課金され、1リクエストにつき1つのビデオが生成されます
Minimax API
- タスク生成
- タスクステータスの照会
- すべてのリクエストには
AuthorizationとContent-Typeヘッダーを含める必要があります
- すべてのリクエストには
shell
'Authorization: Bearer hk-your-key'
'Content-Type: application/json''Authorization: Bearer hk-your-key'
'Content-Type: application/json'1. タスク生成
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"
}
}'- リクエストボディ
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"
}
}リクエストボディのフィールド説明
フィールド タイプ 説明 model string オプション: minimax-i2v画像から動画、minimax-t2vテキストから動画、minimax-i2v-directorinput object このモデルのパラメータ input.prompt string プロンプトテキスト input.first_frame_image string 最初のフレーム画像URL、base64はサポートされていません input.last_frame_image string 最後のフレーム画像URL、base64はサポートされていません レスポンスボディ —
idを返します
json
{
"id": "xmjmtxergdrgc0cm9sdr13fhtc"
}{
"id": "xmjmtxergdrgc0cm9sdr13fhtc"
}2. タスクステータスの照会
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'レスポンスボディ
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
}フィールド説明
| フィールド | タイプ | 説明 |
|---|---|---|
| id | string | |
| model | string | オプション:minimax-i2v 画像から動画、minimax-t2v テキストから動画、minimax-i2v-director |
| input | object | このモデルのパラメータ |
| output | string | 結果URL |
| status | string | ステータス:starting processing succeeded failed |
| error | string | エラーメッセージ |
OpenAi-HK