curl --request POST \
--url https://api.dreamto.ai/v2/h3_context_ir \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "雨夜霓虹街头,一只橘猫在积水中奔跑。"
}
],
"duration": 5,
"ratio": "16:9"
}
'
{
"task_id": "task_7Rk2mQ9vXc4LpT8nWb3sYh6dZf1aGe5J"
}{
"type": "error",
"error": {
"type": "bad_request_error",
"message": "invalid params, content must include a non-empty text item (prompt is required) (2013)",
"http_code": "400"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "authorized_error",
"message": "login fail: Please carry the API secret key in the 'Authorization' field of the request header (1004)",
"http_code": "401"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "insufficient_balance_error",
"message": "insufficient balance (1008)",
"http_code": "402"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "unprocessable_entity_error",
"message": "video description contains sensitive content (1026)",
"http_code": "422"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "rate limit, please retry later (1002)",
"http_code": "429"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "server_error",
"message": "internal error (1000)",
"http_code": "500"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "overloaded_error",
"message": "the service is overloaded, please retry later (1000)",
"http_code": "529"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}MiniMax H3
创建 H3 Context IR 任务
分析文本与素材,生成增强后的结构化视频提示词,不生成视频。返回的 task_id 用查询任务接口查询,成功后从 content.prompt 读取提示词。
POST
/
v2
/
h3_context_ir
curl --request POST \
--url https://api.dreamto.ai/v2/h3_context_ir \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "雨夜霓虹街头,一只橘猫在积水中奔跑。"
}
],
"duration": 5,
"ratio": "16:9"
}
'
{
"task_id": "task_7Rk2mQ9vXc4LpT8nWb3sYh6dZf1aGe5J"
}{
"type": "error",
"error": {
"type": "bad_request_error",
"message": "invalid params, content must include a non-empty text item (prompt is required) (2013)",
"http_code": "400"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "authorized_error",
"message": "login fail: Please carry the API secret key in the 'Authorization' field of the request header (1004)",
"http_code": "401"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "insufficient_balance_error",
"message": "insufficient balance (1008)",
"http_code": "402"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "unprocessable_entity_error",
"message": "video description contains sensitive content (1026)",
"http_code": "422"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "rate limit, please retry later (1002)",
"http_code": "429"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "server_error",
"message": "internal error (1000)",
"http_code": "500"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}{
"type": "error",
"error": {
"type": "overloaded_error",
"message": "the service is overloaded, please retry later (1000)",
"http_code": "529"
},
"request_id": "20261205112532258615475826d9d6AbCdEfGh"
}请求体
application/json
创建 H3 Context IR 任务的请求体。该任务只分析素材并输出增强后的结构化提示词,不生成视频。

