Amux AI

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.

POSThttps://gateway.amux.ai/v1/images/generations

Authorization

header
AuthorizationstringRequired

Bearer <your Amux AI key> Amux AI API key.

Request

application/json
modelstringRequired

Platform model ID. Append :provider (e.g. minimax/minimax-h3-image:minimax) to pin a specific provider.

promptstringRequired

Text prompt (up to 32,000 characters). When disable_prompt_enhanced: true is set, upstream caps prompts at 4,096 tokens.

nintegerDefault 1

Number of images to generate (1–10, default 1). Pre-authorization scales linearly with n.

sizestring

Exact 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_ratiostring

Output 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 false

Disable 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 true

Cross-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 false

Add an AIGC watermark to generated images (native MiniMax field, default false). Equivalent to watermark; watermark takes precedence if both are sent.

watermarkbooleanDefault false

Cross-model alias for aigc_watermark (default false).

Response

200response

Image generation succeeded (batch requests with partial success also return 200, with failed items recorded in amux.notes).

400response

Invalid 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).

402response

Insufficient workspace balance to cover the pre-authorization hold.

503response

Service 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):

  1. Aspect ratio + area tier (recommended): Set aspect_ratio ("auto" or "X:Y" with integers 1–300 and ratio between 1:3 and 3:1) together with area / image_size (1K, 2K, or 4K).
  2. Exact pixels: Set size to "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 neither size nor area / image_size is provided, upstream defaults to 4K (~16.6 MP). For everyday previews or tighter cost control, explicitly pass area: "1K" or "2K".

Common aspect ratios and reference dimensions:

Aspect ratio1K (~1 MP)2K (~4 MP)4K (default, ~16.6 MP)
1:11024x10242048x20484096x4096
16:9 / 9:161344x768 / 768x13442720x1536 / 1536x27205440x3072 / 3072x5440
4:3 / 3:41152x864 / 864x11522304x1728 / 1728x23044608x3456 / 3456x4608
3:2 / 2:31248x832 / 832x12482496x1664 / 1664x24964992x3328 / 3328x4992
21:9 / 9:211568x672 / 672x15683136x1344 / 1344x31366272x2688 / 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:

CapabilityNative MiniMax fieldCross-model aliasPrecedence and notes
Area tierarea (1K / 2K / 4K)image_sizeimage_size takes precedence if both are sent
Prompt enhancementdisable_prompt_enhanced (default false)prompt_extend (default true)Inverse semantics; prompt_extend takes precedence if both are sent
AIGC watermarkaigc_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):

  1. Explicit dimensions required: You must specify an explicit pixel size or a fixed non-"auto" aspect_ratio; otherwise the gateway returns 400.
  2. Prompt token limit: When enhancement is disabled, upstream caps prompts at 4,096 tokens.

Output formats, delivery modes, and partial batch success

  • output_format: Supports jpeg (default), png, and webp (jpg is automatically normalized to jpeg).
  • response_format: Supports url (default, hosted URL that expires periodically—download promptly for permanent storage) and b64_json (base64 payload). b64_json enforces total pixel limits (n × per-image pixels): ≤ 20,000,000 pixels for PNG and ≤ 80,000,000 pixels for JPEG/WebP; exceeding the cap returns 400.
  • Partial batch success: When n > 1 and individual images fail content moderation while others succeed, upstream returns 200 with the succeeded items. The gateway preserves their original batch indices in data and amux.images and records failed items in amux.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 ÷ 1024 per generated image at 2K / 4K (e.g., ~4,080 tokens for 2K 16:9 2720x1536, ~16,320 tokens for 4K 16:9 5440x3072); 1K outputs (e.g. 1024x1024) bill at a ~4,096-token floor (comparable to 2K). Final settlement always follows the upstream usage payload.

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.

ComponentMiniMax 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
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"
      }
    ]
  }
}