Guide
MiniMax H3 Image Guide: Text-to-Image, Multi-Reference Editing, Parameters and Pricing
Which model ID to use, how to set parameters, and what it costs
- Model
- minimax-h3-image
On this page
MiniMax H3 Image is MiniMax's image model. On HiAPI it has two model IDs: minimax-h3-image/text-to-image (generate from text) and minimax-h3-image/image-to-image (generate or edit with 1–16 reference images). This guide covers which ID to use, the parameters, pricing, and a few things to watch when you call it.
Which ID to use
- Text only: use
text-to-image. The only required field isprompt(up to 5,000 characters). - You have images to work from: use
image-to-imageand also passimage_urlswith 1–16 images. Put a product into a new scene, repaint a photo as an illustration or oil painting, or pass several references at once. - Both IDs cost the same per output image; image-to-image adds a fee per reference image (see Pricing).
Parameters
resolution:1K/2K/4K, default2K. For example, 2K 1:1 outputs 2048×2048, 1K 9:16 outputs 768×1360, and 4K 16:9 outputs 5472×3072.aspect_ratio:auto,1:1,5:4,4:5,4:3,3:4,3:2,2:3,16:9,9:16,21:9. Text-to-image defaults to1:1. Image-to-image defaults toauto, where the model picks a ratio from the prompt and reference images; it does not necessarily match the first reference, so set a ratio if you need a fixed frame.output_format:jpeg(default) orpng. PNG files are much larger (a 4K PNG can reach 30 MB), so stick with jpeg unless you need PNG.seed: optional, 0–2147483647. Fix it to reproduce an image.- Each request returns one image. Custom width/height, transparent backgrounds, and mask-based inpainting are not supported.
Example request
Create a task:
curl https://api.hiapi.ai/v1/tasks \
-H "Authorization: Bearer $HIAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-image/image-to-image",
"input": {
"prompt": "Place the serum bottle on a pale stone pedestal, soft side light, clean e-commerce product shot",
"image_urls": ["https://example.com/bottle.png"],
"resolution": "2K",
"aspect_ratio": "3:4"
}
}'
The response contains data.taskId. Poll GET https://api.hiapi.ai/v1/tasks/<taskId> until status is success; the image URL is at data.output[0].url. A 2K image typically takes 30–40 seconds. Result URLs expire (see expireAt), so download and store images you want to keep.
Pricing
- 1K and 2K: $0.0129 per image.
- 4K: $0.0393 per image.
- Image-to-image adds $0.0036 per reference image. Example: 2K with 3 references = 0.0129 + 3 × 0.0036 = $0.0237.
- You are only charged for successful images; failed tasks are fully refunded.
Prompt tips
- Spell out subject, setting, lighting, style, and composition, in that order.
- For image-to-image, say what to keep and what to change, e.g. "keep the face and pose, replace the background with warm grey blocks, repaint in oil brushstrokes".
- Explore compositions at 1K or 2K and render the final at 4K, which costs about 3× as much as 2K.
Related articles
View all articles →-
Guide
Ideogram V3 Character Edit for E-commerce Product Images via the hiAPI API
A developer guide to consistent subjects, clean background swaps, and a working hiAPI request
10 min read -
Guide
Using happyhorse-1.1/reference-to-video via the HiAPI API: Prompt Recipes and a Short-Form Video Workflow
A developer's guide to organizing reference images, wording identity-preserving prompts, and pacing short-form clips through HiAPI
10 min read -
Guide
Using qwen-image-2.1-pro for E-commerce Product Images: API Usage and Prompt Recipes
An end-to-end developer guide: transparent PNGs, image editing, text rendering and copy-paste prompts with curl and Python requests
10 min read