MiniMax H3-Image
Text to image in ten fixed sizes, from 1024x1024 up to 16 megapixels (6272x2688), at a flat price per image by size class. Not available for use by or for people in the US, EU, UK or South Korea.
- by MiniMax
- Image
- from $0.015/image
- Text to imageHigh resolutionFast
MiniMax-H3-Image. Not available for use by or for people in the US, EU, UK or South Korea.
On this page
1.Call
OpenAI-compatible image generation; images are returned as cdn.ewest.ai URLs. Every response carries an x-request-id trace ID.
curl https://api.ewest.ai/v1/images/generations \
-H "Authorization: Bearer $EWEST_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "ewest/minimax-h3-image", "prompt": "a cozy cabin in the snow"}'
# → {"data": [{"url": "https://cdn.ewest.ai/img/…"}]}2.Authentication
Send your API key in the Authorization: Bearer header, as the examples above do (clients built for the Anthropic API can use x-api-key). Create keys under API keys. Keep the key on your server, never in browser code. More in the authentication guide.
3.Schema
What you send and what comes back, for ewest/minimax-h3-image. The output tables are read from the API's OpenAPI description.
Input
POST /v1/images/generations- The model id,
modelstringRequiredewest/minimax-h3-image. - What to draw. Up to 10,000 characters.
promptstringRequired - Image size in pixels. One of: 1024x1024, 2048x2048, 3072x5472, 3360x5024, 3552x4736, 4096x4096, 4736x3552, 5024x3360, 5472x3072, 6272x2688.
sizestringOptionaldefault2048x2048 response_formatstringOptionaldefaulturlurl(on cdn.ewest.ai, kept 7 days) orb64_json.
Output
Returns an image. POST /v1/images/generations answers 200: The images.
- Unix seconds when the images were created.
createdintegerSometimes - The generated images, in order.
dataarray of objectAlways - Link to the image, on
data[].urlstring (uri)Alwayscdn.ewest.ai, kept for 7 days. - The image bytes, base64-encoded; only with
data[].b64_jsonstring (base64)Sometimesresponse_format: b64_json. - The prompt as the model rewrote it, where it does that; otherwise null or absent.
data[].revised_promptstring or nullSometimes - Width of the image in pixels; present for models that report the size of the stored image.
data[].widthintegerSometimes - Height of the image in pixels; present together with
data[].heightintegerSometimeswidth. - Background setting reported by the model, if any.
backgroundstring or nullSometimes - File format reported by the model, if any.
output_formatstring or nullSometimes - Quality level reported by the model, if any.
qualitystring or nullSometimes - Size reported by the model, if any.
sizestring or nullSometimes - Token usage, for models that bill by tokens; zeros otherwise.
usageobjectSometimes - Input plus output tokens.
usage.total_tokensintegerSometimes - Tokens in the input.
usage.input_tokensintegerSometimes - Tokens in the output.
usage.output_tokensintegerSometimes - Breakdown of the input tokens.
usage.input_tokens_detailsobjectSometimes - Tokens from input images.
usage.input_tokens_details.image_tokensintegerSometimes - Tokens from the prompt.
usage.input_tokens_details.text_tokensintegerSometimes
Sample response
{
"created": 1793530277,
"data": [
{
"url": "https://cdn.ewest.ai/img/2026/11/01/7hq2xk9mpz.png"
}
]
}4.Details
- Sizes
- 1024×1024, 2048×2048, 3072×5472, 3360×5024, 3552×4736, 4096×4096, 4736×3552, 5024×3360, 5472×3072, 6272×2688
- Image editing
- No
- Output
- Image URL on cdn.ewest.ai (kept 7 days)
- Typical time
- about 2 s at 1024×1024, about 20 s at 4096×4096 (a 16 MP PNG is about 50 MB); a busy model asks you to retry