Skip to content

MiniMax H3 Image and H3 Image Highspeed

minimax/minimax-h3-image and minimax/minimax-h3-image-highspeed are MiniMax's image models. Both generate images from text and create new images from reference images. Generation runs on /v1/images/generations, editing on /v1/images/edits. Highspeed takes the same parameters and limits and responds faster; changing the model id is enough.

Prices are per 1M tokens. Thanks to LLMTR's agreement with MiniMax, the LLMTR price is 10% below MiniMax's list price (H3 Image 2.30 / 1.50 / 3.80, Highspeed 2.30 / 3.00 / 7.60).

No margin is added to model prices; the platform margin applies only when you top up credits.

Model Text input Image input Image output
minimax/minimax-h3-image 2.07 1.35 3.42
minimax/minimax-h3-image-highspeed 2.07 2.70 6.84

Text input covers your prompt and the detailed prompt the model writes from it. Image input is the references you send when editing. The exact amount is computed from the usage field of the response and counts delivered images only.

Approximate amounts per image with a short prompt:

Task H3 Image H3 Image Highspeed
Text-to-image, 1K or 2K $0.020 $0.035
Edit with one reference, 1K $0.024 $0.042
Text-to-image, 4K $0.063 $0.119

A 1K image costs the same as a 2K image. If you send neither size nor area, the image is generated at 4K; set the size explicitly for a lower price.

MiniMax's time-limited campaign: until 17 November 2026, 19:00 (TRT), a request whose delivered image has at least 16,600,000 pixels (4K) is billed in full at half of MiniMax's list price; the agreement discount is not added on top. During that period a 4K image costs about $0.035 on H3 Image and about $0.066 on Highspeed.

Before the request starts, the highest likely amount is held from your balance and then settled at the real amount. If you work with a low balance, set the size explicitly with size or area.

Terminal window
curl "$LLMTR_BASE_URL/v1/images/generations" \
-H "Authorization: Bearer llmtr-your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/minimax-h3-image",
"prompt": "A red ceramic mug on a wooden table in morning light, product photo",
"aspect_ratio": "16:9",
"area": "2K"
}'

The image address is in data[0].url, its actual size in data[0].size, and the prompt the model used in data[0].revised_prompt. The address is not permanent; download the image and store it yourself. Send response_format: "b64_json" to receive base64.

Choose the size in one of two ways, not both:

  • size: WIDTHxHEIGHT, for example 2720x1536. The total must be between 655,360 and 20,000,000 pixels and the ratio between 1:3 and 3:1; the size is never rounded. With this form, aspect_ratio, area and resolution cannot be sent.
  • aspect_ratio and area: aspect_ratio is auto or X:Y (whole numbers from 1 to 300, between 1:3 and 3:1); area is 1K, 2K or 4K. If not set, aspect_ratio is auto and area is 4K. The resolution field (1K, 2K) is accepted with the same meaning as area.

Some sizes selected with area:

Ratio 2K 4K
1:1 2048x2048 4096x4096
4:3 2368x1760 4736x3552
16:9 2720x1536 5472x3072
3:1 3552x1184 7104x2368
Field Values Note
n 1-6 Number of images in one request. Defaults to 1.
output_format png, jpeg, jpg, webp Defaults to jpeg.
output_compression 0-100 Only with jpeg and webp. Defaults to 95.
response_format url, b64_json Defaults to url. With b64_json the total output area cannot exceed 20,000,000 pixels for png or 80,000,000 for jpeg and webp; a size chosen with area counts as its target (4K = 4096x4096).
disable_prompt_enhanced true, false Text-to-image only. When true, size or an X:Y aspect_ratio is required.

The prompt can be up to 32,000 characters. stream: true, mask and background: "transparent" are refused: these models do not support streaming, masked edits or transparent backgrounds. quality, moderation, style, user, seed, partial_images, input_fidelity and background (opaque, auto) are ignored and listed in llmtr_dropped_parameters in the response.

The model expands your prompt before generating and returns the text it used in each image's revised_prompt field. That text is billed as input. For text-to-image you can turn the expansion off by sending disable_prompt_enhanced: true; only about the first 4,096 tokens of your prompt are then read. To fine-tune a result, edit the revised_prompt text and send it in a new request with disable_prompt_enhanced: true. Editing always expands the prompt.

/v1/images/edits takes a JSON body. Send up to 16 images in the images array, or one image in the image field. Each item can be an https:// address, a base64 data URL or an { "image_url": "..." } object. A data URL must be PNG, JPEG or WebP; send HEIC and HEIF images by https:// address. Each image edge must be between 128 and 8192 pixels, and the long edge at most 4 times the short one. The request body is limited to 24 MB in total; use https:// addresses for large images. In the prompt you can refer to the images in the order you sent them as "image 1", "image 2".

import base64
import os
import requests
with open("product.png", "rb") as f:
image = "data:image/png;base64," + base64.b64encode(f.read()).decode()
response = requests.post(
"https://llmtr.com/v1/images/edits",
headers={"Authorization": f"Bearer {os.environ['LLMTR_API_KEY']}"},
json={
"model": "minimax/minimax-h3-image",
"prompt": "Replace the background of image 1 with a plain light blue wall; keep everything else unchanged",
"images": [{"image_url": image}],
"size": "2048x2048",
},
timeout=900,
)
response.raise_for_status()
body = response.json()
if "error" in body:
raise RuntimeError(body["error"]["message"])
image_url = body["data"][0]["url"]
with open("result.jpg", "wb") as f:
f.write(requests.get(image_url, timeout=120).content)

The OpenAI SDK's images.edit method sends a multipart form; this endpoint does not accept it. Send JSON as above. A file_id from /v1/files cannot be used with these models.

Fewer images than requested can come back: images that fail the content check are left out of the response and are not billed. If every image fails, the request returns 400 content_filter.

4K and multi-image requests can take minutes. If a request passes 15 seconds, the 200 status is sent right away and blank lines flow until the answer arrives; JSON parsers skip them, so there is nothing to configure. An error after that point comes in the body as an error field, so check for error in the answer as well. Do not retry the same request automatically on a timeout: every retry generates new images and is billed again.

Status Meaning What to do
400 invalid_request Invalid size, ratio, n or field combination Fix the field named in the message; this request is not billed
400 unsupported_input Unsupported image type, file_id, mask or transparent background Send a PNG, JPEG or WebP data URL, or an https:// address
400 unsupported_operation stream: true was sent Remove the field
400 content_filter Every image failed the content check Change the prompt or the images; do not resend the same request
402 insufficient_credits The balance does not cover this request Top up credits, or lower the size and n
503 model_unavailable The model cannot serve requests right now Try again later

Other requests the provider refuses return 4xx; check the fields and the image limits and correct them.