Qwen Image Generator
POST /api/v1/qwen-image-generator/submit
prompt is required.
Required inputs
promptstring- Text prompt describing the image to generate (max 800 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/qwen-image-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"prompt":"An isometric sustainable neighborhood with rooftop gardens, bicycle paths, and solar panels","size":"1024*1024","imageNum":"1","promptExtend":true}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules7 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
prompt | string | Yes | Not specified | Text prompt describing the image to generate (max 800 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: 800 |
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: 3 |
negativePrompt | string | No | Not specified | Describe content that should not appear in the image. Maximum length: 500 |
size | string | No | "1024*1024" | Exact output dimensions. Values: "1024*1024", "1536*1536", "768*1152", "1024*1536", "1152*768", "1536*1024", "960*1280", "1080*1440", "1280*960", "1440*1080", "720*1280", "1080*1920", "1280*720", "1920*1080", "1344*576", "2048*872" · Default: "1024*1024" |
imageNum | string | No | "1" | Number of images to generate. Values: "1", "2", "3", "4", "5", "6" · Default: "1" |
promptExtend | boolean | No | true | Enhance and enrich the prompt automatically. Default: true |
Mode-specific fields & media limits
Text To Image rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 800 characters |
negativePrompt | Maximum characters: 500 |
size | Values: "1024*1024", "1536*1536", "768*1152", "1024*1536", "1152*768", "1536*1024", "960*1280", "1080*1440", "1280*960", "1440*1080", "720*1280", "1080*1920", "1280*720", "1920*1080", "1344*576", "2048*872"; Default: "1024*1024" |
imageNum | Values: "1", "2", "3", "4", "5", "6"; Default: "1" |
promptExtend | Default: true |
Image Edit rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 800 characters |
imageUrls | Image input; up to 3 items |
negativePrompt | Maximum characters: 500 |
size | Values: "1024*1024", "1536*1536", "768*1152", "1024*1536", "1152*768", "1536*1024", "960*1280", "1080*1440", "1280*960", "1440*1080", "720*1280", "1080*1920", "1280*720", "1920*1080", "1344*576", "2048*872" |
imageNum | Values: "1", "2", "3", "4", "5", "6"; Default: "1" |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/qwen-image-generator/query
Use the same Bearer API key. On completion, read the imageUrl result field.
curl -X POST "https://vidmage.ai/api/v1/qwen-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://..." } }