Flux1 AIDevelopers
Flux1 AI API docs
Image generation

MiniMax H3 Image API

MiniMax H3 Image API reference: generate and edit at 1K, 2K or native 4K with up to 16 reference images, with a literal prompt mode. Pricing and code examples.

MinimaxMiniMaximage
Model id
minimax-h3-image
Price
1K 82K 84K 25credits / image
Output
1K–4K
Reference images
Up to 16
Typical time
15–30 seconds

Aspect ratios

auto1:14:33:43:22:34:55:416:99:1621:93:11:3
Try MiniMax H3 Image in the web app
POST/api/v1/generations
JSON requestAsynchronousOne image per request

Pricing depends on resolution. Select a tier in the example to see the cost. Each reference image adds 1 credit, the first one included. Check credits_refunded to confirm a refund; unresolved submissions may require review.

Jump to request examples ↓

Authorization

Authorizationstringrequired

Bearer fx1_live_… — send your API key in the request header. Requires a completed paid purchase; new generations also require enough credits.

Idempotency-Keystringoptional

Use one unique value per generation and reuse it with the same body on retries. Printable ASCII, no spaces. A different body with the same key returns 409.

Maximum length: 128 characters

Manage API keys ↗

Request body

modelstringrequired

Use this exact model ID in the top-level request body.

minimax-h3-image
promptstringrequired

Describe the image to create, or the changes to make to your reference images. Whitespace is trimmed.

Maximum length: 5,000 characters

imagesstring[]optional

Optional reference images. Use publicly accessible HTTPS URLs or data:image/* base64 URIs (up to 20,000,000 characters per entry). Omit for text-to-image.

Maximum items: 16

aspect_ratiostringoptional

Output width-to-height ratio. Auto lets the model choose.

Default: 1:1

auto1:14:33:43:22:34:55:416:99:1621:93:11:3
resolutionstringoptional

Output resolution tier; values are case-insensitive. Omit or leave empty to use the default.

Default: 2K

1K2K4K
prompt_modestringoptional

auto lets the model expand your prompt into a detailed scene first, which can add details you did not ask for. literal keeps your wording; it works for text-to-image with an explicit aspect_ratio only (no images, not auto). Same price.

Default: auto

autoliteral

Response & next step

A successful submission returns 202 and a generation id. Poll GET /api/v1/generations/{id} every 2–3 seconds until the status is succeeded or failed.

Read the result URL from output.images[0].url. Download it before expires_at (30 days after storage). On failure, inspect error and credits_refunded.

Model notes

  • minimax-h3-image is MiniMax H3 Image from MiniMax, released 2026-11-10. It runs on the standard model; the Highspeed tier is not offered.
  • Choose output size with resolution: 1K, 2K (default) or 4K (about 16 megapixels, generated natively). 1K and 2K cost the same; 4K costs more. Results are JPEG files.
  • By default (prompt_mode: "auto") the model expands your prompt into a detailed scene first. That can add details you did not ask for, such as a brand name on a product. prompt_mode: "literal" keeps your wording. It works for text-to-image with an explicit aspect_ratio only: a request that combines it with images or with aspect_ratio: "auto" is rejected with 400 invalid_request before any credits are charged. Both modes cost the same.
  • Every reference image is billed, the first one included: each adds pricing.image_credits. Repeated URLs are sent and billed once.
  • Short text such as titles and dates renders well; long body copy and small signage can come out as pseudo-text. For dense text, try Nano Banana 2.1.
  • Fields this model does not use are ignored.

MiniMax H3 Image API FAQ

How much does the MiniMax H3 Image API cost?

8 credits per image at 1K or 2K, 25 at 4K. Each reference image adds 1 credit, the first one included. Credits are taken when the submission starts and refunded automatically if the provider rejects it or the generation fails. The API spends the same balance as the web app; see Credits.

How do I get a MiniMax H3 Image API key?

Any account with a completed paid credit-pack or subscription purchase can create keys under Settings → API Keys. Send the key as Authorization: Bearer <key> and set "model": "minimax-h3-image". The same key works for every model in this API.

Is there a free MiniMax H3 Image API?

No. Free or gifted credits alone do not unlock API keys, and every request spends credits. To try the model before paying, use the MiniMax H3 Image web generator.

Can I call the MiniMax H3 Image API from Python?

Yes. It is a plain HTTPS and JSON API, so no SDK is needed. The request builder above shows this call in cURL, Node.js and Python, and the Quick start has a complete Python script that submits a generation and polls it until it finishes.

Is MiniMax H3 Image open source? Can I download the weights?

Yes. MiniMax published the weights on Hugging Face and GitHub under the MiniMax-H3-Image Community License. The license requires separate written authorization from MiniMax if your annualized revenue exceeds 1 million USD or if you offer the model as a hosted service. The transformer weights alone are about 66 GB, so the API is the quicker route if you do not run your own GPUs.

Should I use MiniMax H3 Image or Seedream 5.5?

MiniMax H3 Image generates natively up to 4K (about 16 megapixels), takes up to 16 references and can keep your prompt as written with prompt_mode: "literal"; results are JPEG files. Seedream 5.5 stops at 2K and always rewrites the prompt, but it can return a PNG with a transparent background.