Skip to main content
MiniMax-H3-Image supports text-to-image and image editing, with output area up to 20,000,000 pixels, custom width and height, or an aspect ratio with an area level. Both endpoints are synchronous; with stream enabled, results are pushed image by image. The high-speed version MiniMax-H3-Image-Highspeed takes the same parameters and limits as MiniMax-H3-Image; set model in the request to MiniMax-H3-Image-Highspeed to use it.

Model Specifications

Output Size

There are two ways to set the output size; use only one. Setting aspect_ratio or area while size is WIDTHxHEIGHT returns 400.
Used when size is omitted or auto; aspect_ratio and area can each be set on their own. See data[].size for each image’s actual width and height.
  • aspect_ratio: default auto, decided by prompt enhancement based on the content; can also be X:Y, where X and Y are integers from 1 to 300 and the ratio is between 1:3 and 3:1 (bounds inclusive), e.g. 16:9, 3:4, 21:9
  • area: 1K, 2K, 4K (default), with target areas of 1024 × 1024, 2048 × 2048 and 4096 × 4096 pixels; the server calculates width and height from the aspect ratio, e.g. 2K with 16:9 outputs 2720 × 1536
Text-to-image with disable_prompt_enhanced: true requires size as width and height, or aspect_ratio as X:Y; otherwise 400 is returned.

Text-to-Image

Image Edit

Pass reference images via images[].image_url, which supports a public URL, mm_file://{file_id} (reference an uploaded file, obtained by calling File Upload with purpose set to image_generation_input), or a data:image/<format>;base64,<Base64> data URI. You can also upload image files directly with the OpenAI SDK images.edit (multipart/form-data; upload order is the Picture number), as shown below. Reference image limits (total request body ≤ 64 MiB; Base64-encoded data is about 4/3 of the original file size; if the request body would exceed the limit, use public URLs or mm_file://)

Prompt Enhancement

Text-to-image applies prompt enhancement by default; disable it with disable_prompt_enhanced: true, in which case width and height or a fixed aspect_ratio are required. Image edits always apply prompt enhancement. The prompt actually used for each image is returned in data[].revised_prompt. To fine-tune, edit revised_prompt, send it as the prompt of a new text-to-image request, and set disable_prompt_enhanced: true. You can also call the H3-Image-Context-IR endpoint to get the enhanced prompt on its own without generating images. This endpoint supports MiniMax-H3-Image only.

Partial Failures

The request returns 200 as long as at least one image succeeds. data has n items; items that failed or were withheld by the content safety check contain only error. The success count is in usage.generated_images:
If all images fail, an error response is returned with per-image data and usage: 422 if all failed the content safety check, 402 if all failed due to insufficient balance, otherwise 500.

Streaming Output

With stream: true, each image is pushed via SSE as soon as it is done; only response_format: "url" is supported. Events arrive in completion order; use image_index to identify each image. Prefix: image_generation for text-to-image, image_edit for image edits. See Streaming Events for fields.

MiniMax-H3-Image Text-to-Image API

Generate images from a text description with MiniMax-H3-Image.

MiniMax-H3-Image Image Edit API

Generate new images from reference images and a text description with MiniMax-H3-Image.

Streaming Events

SSE event types and fields pushed when stream is enabled.

Pricing

Detailed information on model pricing and API packages.

Rate Limits

Rate limits are restrictions that our API imposes on the number of times a user or client can access our services within a specified period of time.