{"openapi":"3.0.2","info":{"title":"minimax/minimax-h3","description":"The request body Comfy Router accepts for the model \"minimax/minimax-h3\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"c0e2e941ffff"},"paths":{"/v2/models/minimax/minimax-h3":{"post":{"operationId":"runRouterModel","summary":"Run minimax/minimax-h3 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"The MiniMax V2 (Hailuo 03) video-generation fields, shared by the v1 `POST /proxy/minimax/v2/video_generation` request body and the Comfy Router input schema for `minimax/minimax-h3`.\n`required` here is the ROUTER-SAFE floor: `model` is absent from it because Router writes the path's model into the body after routervalidate.Guard has already validated the caller's bytes. The v1 wrapper `MinimaxV2VideoGenerationRequest` re-adds it -- see the note there for why that route can demand what this one must not.","example":{"content":[{"text":"A single red maple leaf resting on a plain white background.","type":"text"}],"duration":5,"ratio":"16:9","resolution":"768P"},"properties":{"aigc_watermark":{"description":"Whether to add an AIGC watermark to the output. Defaults to false.","type":"boolean"},"callback_url":{"description":"Optional. URL to receive task state changes after challenge verification.","type":"string"},"content":{"description":"Content items driving the generation. Must contain one non-empty text item; optionally add first_frame/last_frame images or reference_* media.","items":{"$ref":"#/components/schemas/MinimaxV2ContentItem"},"type":"array"},"duration":{"description":"Video length in seconds. Comfy Router accepts 4 to 15 and refuses anything outside it before the provider is called. MiniMax's own documentation for this model states 5 to 15; the ComfyUI MiniMax H3 nodes offer 4 to 15 and a 4-second generation has been observed to succeed, so 4 is accepted here.","maximum":15,"minimum":4,"type":"integer"},"model":{"description":"ID of model. Options: MiniMax-H3. Router callers may omit this field or send null; Router injects the model selected by the request path before provider dispatch.","nullable":true,"type":"string"},"ratio":{"description":"Aspect ratio. Options: adaptive (default), 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Required and must not be adaptive for text-to-video; ignored (treated as adaptive) for first-frame or last-frame generation.","type":"string"},"resolution":{"description":"Video resolution. Options: 2K, 768P. The value is matched case-insensitively and canonicalised before dispatch, so `2k` and `768p` are accepted and sent as `2K` and `768P`.","enum":["2K","2k","768P","768p"],"type":"string"},"seed":{"description":"Random seed in [-1, 2^32 - 1]; omitted or -1 is random.","format":"int64","type":"integer"}},"required":["content","resolution","duration"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/MinimaxV2TaskResultResponse"}],"description":"Comfy Router output schema for the MiniMax v2 (Hailuo 03) models: the terminal `MinimaxV2TaskResultResponse` poll document. The operation is submit-and-poll and Router polls on the caller's behalf, so the body a caller receives is the finished task (`task.status: succeeded`) rather than the `{task_id}` handle the underlying submit returns.\nThe generated video is at `task.content.url`, and `task.content` is only present on a succeeded task. Every other field is MiniMax's own, forwarded unchanged, but that URL is not: the proxy re-hosts the MP4 and answers a Comfy-signed URL valid for 12 hours (falling back to MiniMax's own, shorter-lived link if the re-host fails). Either way it expires, and Router publishes no task-query route to refresh it with, so download promptly rather than storing the link. A failed task carries `task.error` (code and message) instead of `task.content`, and `task.status` also takes the terminal values `failed`, `cancelled` and `expired`.","example":{"task":{"content":{"url":"https://example.invalid/minimax/minimax-h3/generated.mp4"},"duration":6,"id":"3f7a1b28-5c0d-4e91-8a6f-1b2c3d4e5f60","model":"MiniMax-H3","ratio":"16:9","resolution":"768P","status":"succeeded","usage":{"output_seconds":6,"total_seconds":6}}}}}}}}}}},"components":{"schemas":{"MinimaxV2ContentItem":{"description":"A single content item in a Minimax V2 video generation request.","properties":{"audio_url":{"description":"Audio source. Required for audio_url items.","properties":{"url":{"description":"A publicly reachable URL, an mm_file://{file_id} reference, or a data URI.","type":"string"}},"type":"object"},"image_url":{"description":"Image source. Required for image_url items.","properties":{"url":{"description":"A publicly reachable URL, an mm_file://{file_id} reference, or a data URI.","type":"string"}},"type":"object"},"role":{"description":"Role of a media item. Options: first_frame, last_frame, reference_image, reference_video, reference_audio, base_video. Keyframe roles and reference_* roles are mutually exclusive within a request; base_video marks the source video of a video regeneration request.","type":"string"},"text":{"description":"The prompt text. Exactly one non-empty text item is required per request.","type":"string"},"type":{"description":"Content item type. Options: text, image_url, video_url, audio_url.","type":"string"},"video_url":{"description":"Video source. Required for video_url items.","properties":{"url":{"description":"A publicly reachable URL, an mm_file://{file_id} reference, or a data URI.","type":"string"}},"type":"object"}},"required":["type"],"type":"object"},"MinimaxV2TaskResult":{"description":"A Minimax V2 video generation task.","properties":{"content":{"description":"Generated output; present when status is succeeded.","properties":{"prompt":{"description":"The enhanced video prompt produced by a succeeded h3_context_ir task.","type":"string"},"url":{"description":"Time-limited URL of the generated MP4. Query again for a refreshed URL.","type":"string"}},"type":"object"},"duration":{"description":"The duration of the generated video in seconds.","type":"number"},"error":{"additionalProperties":true,"description":"Error details when status is failed; carries code and message.","type":"object"},"id":{"description":"The task ID.","type":"string"},"model":{"description":"The model used for the task.","type":"string"},"ratio":{"description":"The actual aspect ratio of the generated video.","type":"string"},"resolution":{"description":"The resolution of the generated video.","type":"string"},"status":{"description":"Task status. Options: queued, running, succeeded, failed, cancelled, expired.","type":"string"},"task_type":{"description":"The type of the task.","type":"string"},"usage":{"description":"Usage recorded for the task.","properties":{"completion_tokens":{"type":"integer"},"input_image_count":{"type":"integer"},"input_seconds":{"type":"number"},"output_seconds":{"type":"number"},"prompt_tokens":{"type":"integer"},"total_seconds":{"type":"number"},"total_tokens":{"type":"integer"}},"type":"object"}},"type":"object"},"MinimaxV2TaskResultResponse":{"description":"Response from querying a Minimax V2 video generation task status.","properties":{"task":{"$ref":"#/components/schemas/MinimaxV2TaskResult"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"minimax/minimax-h3","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["video","audio"]}
