MiniMax H3 Image Generator
POST /api/v1/minimax-h3-image-generator/submit
prompt is required.
Required inputs
promptstring- 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.
Edit the sample inputs for your own task before submitting.
# 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": ... }Parameters and input rules10 fields
| 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" · Default: "text-to-image" |
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 length: 1 · Maximum length: 32000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image operation mode. No additional field constraint listed. |
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: 1 · Maximum items: 16 |
size | string | No | "auto" | Output size as auto or WIDTHxHEIGHT. Default: "auto" · Minimum length: 1 · Maximum length: 32 |
n | number | No | 1 | Number of images to generate. Default: 1 · Minimum: 1 · Maximum: 10 · Whole numbers only |
outputFormat | string | No | "jpeg" | Output image format. Values: "jpeg", "png", "webp" · Default: "jpeg" |
outputCompression | number | No | 95 | JPEG or WEBP compression quality. Applies when outputFormat is jpeg or webp. Default: 95 · Minimum: 0 · Maximum: 100 · Whole numbers only |
watermark | boolean | No | false | Whether to add a visible watermark. Default: false |
disablePromptEnhanced | boolean | No | false | Disable prompt enhancement. Default: false |
Mode-specific fields & media limits
Text To Image rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 32000 characters |
size | Maximum characters: 32; Default: "auto" |
n | Range: 1 to 10; Default: 1 |
outputFormat | Values: "jpeg", "png", "webp"; Default: "jpeg" |
outputCompression | Range: 0 to 100; Default: 95; Output formats: jpeg, webp |
watermark | Default: false |
disablePromptEnhanced | Default: false |
Image Edit rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 32000 characters |
imageUrls | Image input; up to 16 items |
size | Maximum characters: 32; Default: "auto" |
n | Range: 1 to 10; Default: 1 |
outputFormat | Values: "jpeg", "png", "webp"; Default: "jpeg" |
outputCompression | Range: 0 to 100; Default: 95; Output formats: jpeg, webp |
watermark | Default: false |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/minimax-h3-image-generator/query
Use the same Bearer API key. On completion, read the imageUrl result field.
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://..." } }