{"openapi":"3.0.2","info":{"title":"minimax/minimax-h3-image-highspeed","description":"The request body Comfy Router accepts for the model \"minimax/minimax-h3-image-highspeed\", 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":"f45173149ce0"},"paths":{"/v2/models/minimax/minimax-h3-image-highspeed":{"post":{"operationId":"runRouterModel","summary":"Run minimax/minimax-h3-image-highspeed synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"The MiniMax H3-Image fields, shared by the v1 `POST /proxy/minimax/v1/images/generations` request body and the Comfy Router input schema for `minimax/minimax-h3-image` and `minimax/minimax-h3-image-highspeed`. Without `images` the request is text-to-image; with `images` it runs as an image edit.","example":{"area":"1K","prompt":"A single red maple leaf resting on a plain white background."},"properties":{"area":{"description":"Output area level when `size` is omitted or `auto`. One of `1K`, `2K`, `4K` (default).","type":"string"},"aspect_ratio":{"description":"Output aspect ratio when `size` is omitted or `auto`. `auto` (default) or `X:Y` between 1:3 and 3:1, such as `16:9`.","type":"string"},"disable_prompt_enhanced":{"default":false,"description":"Turns MiniMax's prompt enhancement off. Requires a fixed `size` or an `X:Y` `aspect_ratio`.","type":"boolean"},"images":{"description":"Optional reference images. When present the request runs as an image edit, exactly as on the edits route.","items":{"$ref":"#/components/schemas/MinimaxImageInput"},"maxItems":16,"type":"array"},"model":{"description":"Model name. `MiniMax-H3-Image` or `MiniMax-H3-Image-Highspeed`. Router callers may omit this field or send null; Router fills in the model selected by the request path.","nullable":true,"type":"string"},"n":{"default":1,"description":"Number of images. Input tokens are charged once per image.","maximum":10,"minimum":1,"type":"integer"},"output_compression":{"description":"Compression quality for `jpeg` and `webp`, default 95.","maximum":100,"minimum":0,"type":"integer"},"output_format":{"description":"Output image format. One of `png`, `jpeg`, `jpg` (default), `webp`.","type":"string"},"prompt":{"description":"Text description of the image. With `images`, the description of the edit; the reference images are image 1, image 2 and so on, in array order.","maxLength":32000,"type":"string"},"size":{"description":"Output size, `auto` (default) or `WIDTHxHEIGHT` such as `2720x1536`. A fixed size must have an area of 655,360 to 20,000,000 pixels and an aspect ratio between 1:3 and 3:1, and cannot be combined with `aspect_ratio` or `area`.","type":"string"}},"required":["prompt"],"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/MinimaxImagesResponse"}],"description":"Comfy Router output schema for MiniMax H3-Image and H3-Image Highspeed: MiniMax's `MinimaxImagesResponse` document, forwarded unchanged. The call is synchronous, so this is the body of the run response.\nEach generated image is at `data[].url`. Router does not re-host the images: the URLs are MiniMax's own links and expire, so download promptly rather than storing the link. `data[].size` is the actual `WIDTHxHEIGHT`. An image that failed or was withheld by MiniMax's content safety check carries only `error`. `usage` counts the successful images only, and the call is billed on its token counts.","example":{"created":1794300000,"data":[{"size":"1024x1024","url":"https://example.invalid/minimax/minimax-h3-image/generated.jpg"}],"output_format":"jpeg","request_id":"06a1b2c3d4e5f60718293a4b5c6d7e8f","usage":{"generated_images":1,"input_tokens":10,"input_tokens_details":{"image_tokens":0,"text_tokens":10},"output_tokens":1024,"output_tokens_details":{"image_tokens":1024},"total_tokens":1034}}}}}}}}}},"components":{"schemas":{"MinimaxImageInput":{"properties":{"image_url":{"description":"A public http(s) URL or a `data:image/\u003cformat\u003e;base64,` URI. JPEG, PNG, WEBP, HEIC or HEIF, each side 128 to 8192 px, long side at most 4 times the short side.","type":"string"}},"required":["image_url"],"type":"object"},"MinimaxImageObject":{"properties":{"error":{"description":"Present only when this image failed or was withheld.","properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"revised_prompt":{"description":"The prompt MiniMax used for this image.","type":"string"},"size":{"description":"Actual image size as `WIDTHxHEIGHT`.","type":"string"},"url":{"description":"URL of the generated image. It expires, so download the image.","type":"string"}},"type":"object"},"MinimaxImageUsage":{"description":"Token usage of the successful images. Billing is based on it.","properties":{"generated_images":{"type":"integer"},"input_tokens":{"type":"integer"},"input_tokens_details":{"properties":{"image_tokens":{"type":"integer"},"text_tokens":{"type":"integer"}},"type":"object"},"output_tokens":{"type":"integer"},"output_tokens_details":{"properties":{"image_tokens":{"type":"integer"}},"type":"object"},"total_tokens":{"type":"integer"}},"type":"object"},"MinimaxImagesResponse":{"properties":{"created":{"format":"int64","type":"integer"},"data":{"items":{"$ref":"#/components/schemas/MinimaxImageObject"},"type":"array"},"output_format":{"type":"string"},"request_id":{"type":"string"},"usage":{"$ref":"#/components/schemas/MinimaxImageUsage"}},"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-image-highspeed","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["image"]}
