Create image
Last updated November 23, 2026
Generate images synchronously with minimax/minimax-h3-image via /v1/images/generations, supporting up to 4K (20MP) resolution and built-in prompt enhancement.
Generate text-to-image outputs synchronously with minimax/minimax-h3-image. This endpoint accepts both native MiniMax parameters (area, disable_prompt_enhanced, aigc_watermark) and cross-model aliases (image_size, prompt_extend, watermark), allowing direct migration from MiniMax client code or OpenAI SDKs.
For lower latency and high-throughput interactive previews, see minimax-h3-image-highspeed. Streaming output is not supported on this model.
https://gateway.amux.ai/v1/images/generationsAuthorization
headerAuthorizationstringRequiredBearer <your Amux AI key> Amux AI API key.
Request
application/jsonmodelstringRequiredPlatform model ID. Append :provider (e.g. minimax/minimax-h3-image:minimax) to pin a specific provider.
promptstringRequiredText prompt (up to 32,000 characters). When disable_prompt_enhanced: true is set, upstream caps prompts at 4,096 tokens.
nintegerDefault 1Number of images to generate (1–10, default 1). Pre-authorization scales linearly with n.
sizestringExact pixel dimensions or "auto", formatted as "WIDTHxHEIGHT" (e.g. "2720x1536", "4096x4096").
Constraints: total area must be between 655,360 and 20,000,000 pixels and aspect ratio between 1:3 and 3:1. An explicit "WIDTHxHEIGHT" cannot be combined with aspect_ratio, area, or image_size (returns 400).
aspect_ratiostringOutput aspect ratio: "auto" or "X:Y" with integers 1–300 and ratio between 1:3 and 3:1 (common presets: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21).
Cannot be combined with an explicit pixel size. When disable_prompt_enhanced: true is set, either an explicit size or a fixed non-"auto" aspect_ratio is required.
area"1K" | "2K" | "4K"Default "4K"Resolution area tier (native MiniMax field): 1K (~1 MP), 2K (~4 MP), or 4K (default, ~16.6 MP). Used together with aspect_ratio; cannot be combined with explicit pixel size.
Equivalent to the cross-model alias image_size; if both are provided, image_size takes precedence.
image_size"1K" | "2K" | "4K"Default "4K"Cross-model alias for area (1K / 2K / 4K, default 4K). Takes precedence over area if both are supplied.
output_format"jpeg" | "jpg" | "png" | "webp"Default "jpeg"Output image format: jpeg (default), png, or webp (jpg is normalized to jpeg).
response_format"url" | "b64_json"Default "url"Output delivery format: url (default, hosted URL) or b64_json (base64 payload).
b64_json enforces total pixel limits (n × area): ≤ 20,000,000 pixels for PNG, ≤ 80,000,000 pixels for JPEG/WebP; exceeding the limit returns 400.
disable_prompt_enhancedbooleanDefault falseDisable built-in prompt enhancement (native MiniMax field, default false, meaning enhancement is enabled).
When set to true, an explicit pixel size or fixed non-"auto" aspect_ratio must be provided, otherwise 400 is returned. Inverse of cross-model alias prompt_extend; prompt_extend takes precedence if both are sent.
prompt_extendbooleanDefault trueCross-model alias for prompt enhancement (default true, equivalent to disable_prompt_enhanced: false). Setting false requires an explicit size or fixed aspect_ratio.
aigc_watermarkbooleanDefault falseAdd an AIGC watermark to generated images (native MiniMax field, default false). Equivalent to watermark; watermark takes precedence if both are sent.
watermarkbooleanDefault falseCross-model alias for aigc_watermark (default false).
Response
200responseImage generation succeeded (batch requests with partial success also return 200, with failed items recorded in amux.notes).
400responseInvalid request parameters (e.g., pixel area or aspect ratio out of bounds, size combined with aspect_ratio/area, prompt enhancement disabled without explicit dimensions, b64_json pixel limit exceeded, or stream: true).
402responseInsufficient workspace balance to cover the pre-authorization hold.
503responseService temporarily unavailable or concurrent queue full.
Dimensions and resolution tiers
Output dimensions can be specified in either of two ways, which are mutually exclusive (combining an explicit pixel string size with aspect_ratio, area, or image_size returns 400):
- Aspect ratio + area tier (recommended): Set
aspect_ratio("auto"or"X:Y"with integers 1–300 and ratio between1:3and3:1) together witharea/image_size(1K,2K, or4K). - Exact pixels: Set
sizeto"WIDTHxHEIGHT"(e.g.,"2720x1536","4096x4096"), subject to total pixel area between 655,360 and 20,000,000 and aspect ratio between 1:3 and 3:1.
Default resolution is
4K: When neithersizenorarea/image_sizeis provided, upstream defaults to4K(~16.6 MP). For everyday previews or tighter cost control, explicitly passarea: "1K"or"2K".
Common aspect ratios and reference dimensions:
| Aspect ratio | 1K (~1 MP) | 2K (~4 MP) | 4K (default, ~16.6 MP) |
|---|---|---|---|
1:1 | 1024x1024 | 2048x2048 | 4096x4096 |
16:9 / 9:16 | 1344x768 / 768x1344 | 2720x1536 / 1536x2720 | 5440x3072 / 3072x5440 |
4:3 / 3:4 | 1152x864 / 864x1152 | 2304x1728 / 1728x2304 | 4608x3456 / 3456x4608 |
3:2 / 2:3 | 1248x832 / 832x1248 | 2496x1664 / 1664x2496 | 4992x3328 / 3328x4992 |
21:9 / 9:21 | 1568x672 / 672x1568 | 3136x1344 / 1344x3136 | 6272x2688 / 2688x6272 |
Prompt enhancement and native parameter aliases
MiniMax H3 Image enables built-in prompt enhancement by default and returns the expanded prompt in data[].revised_prompt. The gateway accepts both native MiniMax field names and cross-model aliases:
| Capability | Native MiniMax field | Cross-model alias | Precedence and notes |
|---|---|---|---|
| Area tier | area (1K / 2K / 4K) | image_size | image_size takes precedence if both are sent |
| Prompt enhancement | disable_prompt_enhanced (default false) | prompt_extend (default true) | Inverse semantics; prompt_extend takes precedence if both are sent |
| AIGC watermark | aigc_watermark (default false) | watermark (default false) | watermark takes precedence if both are sent |
Two official constraints apply when disabling prompt enhancement (disable_prompt_enhanced: true or prompt_extend: false):
- Explicit dimensions required: You must specify an explicit pixel
sizeor a fixed non-"auto"aspect_ratio; otherwise the gateway returns400. - Prompt token limit: When enhancement is disabled, upstream caps prompts at 4,096 tokens.
Output formats, delivery modes, and partial batch success
output_format: Supportsjpeg(default),png, andwebp(jpgis automatically normalized tojpeg).response_format: Supportsurl(default, hosted URL that expires periodically—download promptly for permanent storage) andb64_json(base64 payload).b64_jsonenforces total pixel limits (n × per-image pixels): ≤ 20,000,000 pixels for PNG and ≤ 80,000,000 pixels for JPEG/WebP; exceeding the cap returns400.- Partial batch success: When
n > 1and individual images fail content moderation while others succeed, upstream returns200with the succeeded items. The gateway preserves their original batch indices indataandamux.imagesand records failed items inamux.notes. If all items fail, an error response is returned with no charge.
Timeout, non-idempotency, and asynchronous usage
Complex 4K generations can take up to 600 seconds and are non-idempotent upstream. If a synchronous request times out or disconnects mid-flight, the gateway does not automatically retry in order to prevent duplicate billing. For 4K, batch, or production workloads, prefer POST /v1/tasks.
Token metering
This model is billed per token rather than a flat per-image fee:
- Input text tokens: Covers the original prompt plus any expanded tokens produced by prompt enhancement.
- Output image tokens: Approximately
width × height ÷ 1024per generated image at 2K / 4K (e.g., ~4,080 tokens for 2K 16:92720x1536, ~16,320 tokens for 4K 16:95440x3072); 1K outputs (e.g.1024x1024) bill at a ~4,096-token floor (comparable to 2K). Final settlement always follows the upstreamusagepayload.
Official price reference
The table below lists MiniMax's published overseas pay-as-you-go base rates (platform.minimax.io) for rough parameter cost estimation only. These are not Amux live prices; check the model detail page and pricing page for current platform rates.
| Component | MiniMax official overseas published rate (per 1M tokens) |
|---|---|
| Input text tokens | $2.30 / 1M |
| Input image tokens (edits) | $1.50 / 1M |
| Output image tokens | $3.80 / 1M |
Errors
Error responses follow the OpenAI error schema. See Errors and retries for type values and retry semantics.
curl https://gateway.amux.ai/v1/images/generations \
-H "Authorization: Bearer $AMUX_API_KEY" \
-d '{
"model": "minimax/minimax-h3-image",
"prompt": "A cinematic wide shot of a snowy pine forest at golden hour, warm sunbeams filtering through mist",
"aspect_ratio": "16:9",
"area": "2K"
}'{
"created": 1795334400,
"size": "2720x1536",
"output_format": "jpeg",
"data": [
{
"revised_prompt": "Cinematic wide shot of a snowy pine forest at golden hour, warm sunbeams filtering through mist, ultra-detailed photography.",
"url": "https://cdn.amux.ai/gen/20261123/task_01M8H3IMG00000000000000001-0.jpg"
}
],
"usage": {
"input_tokens": 3500,
"output_tokens": 4080,
"total_tokens": 7580
},
"amux": {
"task_id": "task_01M8H3IMG00000000000000001",
"generation_id": "gen_01M8H3IMG00000000000000001",
"provider": "minimax",
"cost_nano": "23554000",
"images": [
{
"index": 0,
"url": "https://cdn.amux.ai/gen/20261123/task_01M8H3IMG00000000000000001-0.jpg"
}
]
}
}