Overview
MiniMax Image 01 is an image generation model for text-to-image generation and single-reference image editing. It supports flat per-image pricing, up to 9 generated images per task, flexiblesize input, and preset output sizing through resolution + aspect_ratio.
| Capability | Value |
|---|---|
| Model ID | minimax-image-01 |
| Modes | text-to-image, image-to-image |
| Prompt length | 1-1500 characters |
| Reference images | Exactly 1 URL for image-to-image |
| Images per task | num_images supports 1-9 |
| Resolution tiers | 1K, 2K |
| Aspect ratios | 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:9 |
| Size input | 1024*1024, 1024x1024, 1024X1024 |
| Seed range | -1 to 2147483647 |
| Prompt optimizer | true, false |
Endpoint and authentication
Base URL:| Method | Endpoint | Purpose |
|---|---|---|
POST | /generateTask/minimax-image-01 | Submit a generation task |
GET | /statusTask/minimax-image-01?taskId={taskId} | Poll task status and retrieve results |
Copy-paste async quickstart
This minimal request submits a text-to-image task and returns ataskId.
taskId; you need it to poll for the final result.
Poll for result
Request body
Text-to-image
Image-to-image
Parameters
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.MiniMax Image 01 input parameters.
Size presets from resolution + aspect_ratio
When resolution + aspect_ratio is provided, APIXO resolves the final output size using these presets:
| Aspect ratio | 1K size | 2K size |
|---|---|---|
1:1 | 1024x1024 | 2048x2048 |
16:9 | 1280x720 | 2048x1152 |
4:3 | 1152x864 | 2048x1536 |
3:2 | 1248x832 | 2048x1368 |
2:3 | 832x1248 | 1368x2048 |
3:4 | 864x1152 | 1536x2048 |
9:16 | 720x1280 | 1152x2048 |
21:9 | 1344x576 | 2048x880 |
Response format
Submit task response
POST /generateTask/minimax-image-01 returns a task ID when the task is accepted:
API status code.
200 means the task was accepted.Human-readable status message.
Unique task identifier used with the status endpoint.
Status response fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing the generated image URLs. Present when
state is success.Machine-readable failure code. Present when
state is failed.Human-readable failure message. Present when
state is failed.Task creation timestamp in Unix milliseconds.
Task completion timestamp in Unix milliseconds. Present after completion.
Processing duration in milliseconds. Present after successful completion.
Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.Billing
MiniMax Image 01 is billed per generated image using a flat public APIXO price.| Unit | APIXO price |
|---|---|
| Per generated image | $0.0035 / image |
Latency and polling
Actual latency may vary by prompt complexity, provider route, and current queue load.| Resolution | Typical generation time | Recommended first poll | Poll interval |
|---|---|---|---|
1K | 15s-30s | 15s after task creation | 3s-5s |
2K | 20s-40s | 20s after task creation | 3s-5s |
Size rules
sizesupports*,x, andXas separators.- Explicit
sizerequires width and height to each stay within512-2048. - If a
sizedimension is not divisible by8, APIXO rounds it to the nearest valid multiple of8. - When both
sizeandresolution + aspect_ratioare provided,resolution + aspect_ratiotakes precedence. - If neither
sizenorresolution + aspect_ratiois provided, the default output size is1024*1024.
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
| Code | Meaning | What to do |
|---|---|---|
400 | Invalid request body, mode, parameter, or image URL shape | Fix the request before retrying |
401 | Missing or invalid API key | Check the Authorization header |
402 | Insufficient balance or quota | Add balance or switch account/key |
403 | Key or route cannot access the model | Check permissions and route strategy |
429 | Rate limit or concurrency limit reached | Retry with exponential backoff |
500 | Server error | Retry with backoff |
502 | Upstream provider error | Retry with backoff |
504 | Upstream timeout | Retry or use callback mode for long-running jobs |
Task failure codes
| Fail code | Meaning | What to do |
|---|---|---|
INVALID_PARAMETER | A model parameter is unsupported, out of range, or malformed | Check mode, size, resolution, aspect_ratio, and image_urls |
INVALID_IMAGE_URL | The reference image URL could not be fetched or decoded | Use a public, direct image URL |
INSUFFICIENT_BALANCE | The account does not have enough balance for the task | Add balance before retrying |
UPSTREAM_ERROR | Provider-side failure | Retry with backoff or try another route |
TIMEOUT | Generation did not finish in time | Retry, reduce input complexity, or use callback mode |