MiniMax H3 Image Generator API documentation
Generate images with MiniMax H3 Image Generator in VidMage. Supports both text and image input modes.
Endpoints
| Contract item | Value |
|---|---|
| Capability | minimax-h3-image-generator |
| Submit | POST https://vidmage.ai/api/v1/minimax-h3-image-generator/submit |
| Query | POST https://vidmage.ai/api/v1/minimax-h3-image-generator/query |
| Task identifier | taskId |
| Result field | imageUrl |
Authenticate with Authorization: Bearer YOUR_API_KEY. Save the task identifier and query the same capability. Use a stable Idempotency-Key for submission retries.
Product guide: MiniMax H3 Image API
Parameters and input rules
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
mode | string | No | "text-to-image" | Explicit operation selector. Omit to infer from the supplied inputs. Values: "text-to-image", "image-edit" |
prompt | string | Yes | Not specified | Text prompt describing the image to generate (max 32000 chars). For an unspecified character or figurine, use an original non-branded character with no logos and no resemblance to existing copyrighted superheroes; preserve any character the user explicitly names. Minimum characters: 1Maximum characters: 32000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image operation mode. |
imageUrls | string[] | No | Not specified | Ordered input image URLs for image editing mode. The prompt can reference them by their one-based order. Up to 64 MB per file. Minimum items: 1Maximum items: 16 |
size | string | No | "auto" | Output size as auto or WIDTHxHEIGHT. Minimum characters: 1Maximum characters: 32 |
n | integer | No | 1 | Number of images to generate. Minimum: 1Maximum: 10 |
outputFormat | string | No | "jpeg" | Output image format. Values: "jpeg", "png", "webp" |
outputCompression | integer | No | 95 | JPEG or WEBP compression quality. Applies when outputFormat is jpeg or webp. Minimum: 0Maximum: 100 |
watermark | boolean | No | false | Whether to add a visible watermark. |
disablePromptEnhanced | boolean | No | false | Disable prompt enhancement. |
text to image
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Required; 1–32000 characters. |
aspectRatio | Not used in this mode. |
resolution | Not used in this mode. |
size | Output size as auto or WIDTHxHEIGHT. Minimum characters: 1Maximum characters: 32Default: "auto" |
n | Number of images to generate. Minimum: 1Maximum: 10Default: 1 |
outputFormat | Output image format. Values: "jpeg", "png", "webp"Default: "jpeg" |
outputCompression | JPEG or WEBP compression quality. Minimum: 0Maximum: 100Default: 95 |
watermark | Whether to add a visible watermark. Default: false |
disablePromptEnhanced | Disable prompt enhancement. Default: false |
image edit
Input media selects the mode. Use the VidMage field names and mode limits below together with the parameter table.
| Control | Mode-specific rule |
|---|---|
prompt | Required; 1–32000 characters. |
aspectRatio | Not used in this mode. |
resolution | Not used in this mode. |
imageUrls | Up to 16 files. Maximum 64 MB per file. Formats: jpg, jpeg, png, webp, heic, heif. |
| References | At least one reference input is required. |
size | Output size as auto or WIDTHxHEIGHT. Minimum characters: 1Maximum characters: 32Default: "auto" |
n | Number of images to generate. Minimum: 1Maximum: 10Default: 1 |
outputFormat | Output image format. Values: "jpeg", "png", "webp"Default: "jpeg" |
outputCompression | JPEG or WEBP compression quality. Minimum: 0Maximum: 100Default: 95 |
watermark | Whether to add a visible watermark. Default: false |
Example request
{
"prompt": "A premium product scene with consistent materials, lighting, and clean composition",
"size": "auto",
"n": 1,
"outputFormat": "jpeg",
"outputCompression": 95,
"watermark": false,
"disablePromptEnhanced": false
}# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/minimax-h3-image-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"prompt":"A premium product scene with consistent materials, lighting, and clean composition","size":"auto","n":1,"outputFormat":"jpeg","outputCompression":95,"watermark":false,"disablePromptEnhanced":false}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Task results and recovery
URL of the generated image. Read imageUrl from the completed query response. Preserve taskId while the task is running.
curl -X POST "https://vidmage.ai/api/v1/minimax-h3-image-generator/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "imageUrl": "https://..." } }Submission and task queries report the available task and usage information. A timeout is not a confirmed failure. Recover the existing task instead of resubmitting.
For face selection and error recovery, follow Task lifecycle. MCP uses the normalized taskId argument in get_task_result, including capabilities whose REST identifier is requestId.
Credits
| Component / option | Rate | Minimum |
|---|---|---|
| Base rate | 10 credits / image | — |
The base rate applies to each requested image.
n multiplies the base charge by the selected output count.
Use the Playground or the MCP credit estimator for your exact inputs. Credits and billing.
