Skip to main content
API Reference for minimax/minimax-h3-image, served by Comfy Router from MiniMax. Input: Text, Image · Output: Image

Quick start

Create a key in your Comfy workspace and export it as COMFY_API_KEY. The Python and TypeScript snippets use the Comfy SDKs (pip install comfy-sdk and npm install @comfyorg/sdk); the cURL snippet is the same call over raw HTTP. Model ID: minimax/minimax-h3-image Endpoint: POST https://api.comfy.org/v2/models/minimax/minimax-h3-image
The same body, sent to POST https://api.comfy.org/v2/models/minimax/minimax-h3-image/requests. Router answers 201 with a request_id as soon as the run is admitted, and the result is collected once it is ready, from this process or another one. Queued delivery walks through status, cancellation and collection.

Schema

Input

string
Output area level when size is omitted or auto. One of 1K, 2K, 4K (default).
string
Output aspect ratio when size is omitted or auto. auto (default) or X:Y between 1:3 and 3:1, such as 16:9.
boolean
default:"false"
Turns MiniMax’s prompt enhancement off. Requires a fixed size or an X:Y aspect_ratio.
object[]
Optional reference images. When present the request runs as an image edit, exactly as on the edits route.
string
required
A public http(s) URL or a data:image/<format>;base64, URI. JPEG, PNG, WEBP, HEIC or HEIF, each side 128 to 8192 px, long side at most 4 times the short side.
string
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.
integer
default:"1"
Number of images. Input tokens are charged once per image.Range: 1 to 10
integer
Compression quality for jpeg and webp, default 95.Range: 0 to 100
string
Output image format. One of png, jpeg, jpg (default), webp.
string
required
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.
string
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.
Generated from the schema Router serves at GET /v2/models/minimax/minimax-h3-image/openapi.json, the same document it validates a call against before the request reaches the provider.

Output

integer
Format: int64
object[]
object
Present only when this image failed or was withheld.
string
string
string
The prompt MiniMax used for this image.
string
Actual image size as WIDTHxHEIGHT.
string
URL of the generated image. It expires, so download the image.
string
string
object
Token usage of the successful images. Billing is based on it.
integer
integer
object
integer
integer
integer
object
integer
integer

Examples

Input

Output

Before you ship

The SDKs create an Idempotency-Key and reuse it for automatic retries. For manual retries, reuse the original key. Router can hold the connection for up to 10 minutes. When a request fails, Router sends an X-Comfy-Error-Type response header explaining why. A 422 means Router rejected the input before calling the provider, and a 413 means the request body was larger than Router accepts. Download generated assets promptly because result URLs can expire. Any size limit named in a field description above is the provider’s own bound on that field, quoted from the provider’s specification. Router applies a separate cap to the whole request body, which base64-encoded media counts against: see request body size. This page documents one partner model called through Comfy Router. The same comfy-sdk / @comfyorg/sdk package also ships a second client, for running a whole ComfyUI workflow graph on Comfy Cloud: Comfy(api_key=...) / new Comfy({ apiKey }), with client.workflows, client.assets and client.jobs. See Comfy SDKs.

Headers

Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.

Using the Router API

Model discovery, validation errors, retries, and billing.

Limitations

What Router does not do today, and what to use instead.