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": "A ginger cat runs through puddles on a neon-lit street at night."
}
],
"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
Create H3 Context IR task
Analyzes the prompt and inputs and returns an enhanced structured video prompt; no video is generated. Query the returned task_id; on success read 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": "A ginger cat runs through puddles on a neon-lit street at night."
}
],
"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"
}Authorizations
Body
application/json
Request body of an H3 Context IR task, which analyzes the inputs and returns an enhanced structured prompt instead of a video.
Aspect ratio. Required for text-to-video and cannot be adaptive; image-to-video always follows the input image (other values are ignored); multimodal reference defaults to adaptive.
Allowed values:
adaptive: Adaptive: image-to-video follows the input image, reference-to-video is decided by the model. Not available for text-to-video.21:9: 21:9 ultra-wide.16:9: 16:9 landscape.4:3: 4:3 landscape.1:1: 1:1 square.3:4: 3:4 portrait.9:16: 9:16 portrait.
Available options:
adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 
