Wan Image Generator
POST /api/v1/wan-image-generator/submit
prompt is required.
Required inputs
promptstring- Text prompt describing the image to generate (max 5000 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/wan-image-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"prompt":"A whimsical floating library above a sea of clouds, intricate fantasy environment concept art","width":1024,"height":1024,"thinkingMode":true}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules6 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
prompt | string | Yes | Not specified | Text prompt describing the image to generate (max 5000 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: 5000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image edit 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. Minimum items: 1 · Maximum items: 9 |
width | number | No | 1024 | Output width in pixels. Default: 1024 · Minimum: 512 · Maximum: 4096 · Multiple of: 1 · Whole numbers only |
height | number | No | 1024 | Output height in pixels. Default: 1024 · Minimum: 512 · Maximum: 4096 · Multiple of: 1 · Whole numbers only |
thinkingMode | boolean | No | true | Enable enhanced reasoning for better prompt understanding and image quality. Default: true |
Mode-specific fields & media limits
Text To Image rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 5000 characters |
width | Range: 512 to 4096; Default: 1024 |
height | Range: 512 to 4096; Default: 1024 |
thinkingMode | Default: true |
Image Edit rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 2048 characters |
imageUrls | Image input; up to 9 items |
width | Range: 512 to 4096; Default: 1024 |
height | Range: 512 to 4096; Default: 1024 |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/wan-image-generator/query
Use the same Bearer API key. On completion, read the imageUrl result field.
curl -X POST "https://vidmage.ai/api/v1/wan-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://..." } }