Image models
Qwen Image Edit
On this page
Qwen Image Edit — fast, high-fidelity AI image generation & editing.
| modelId | qwen-image-edit |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | Endpoint | Description |
|---|---|---|
| Text to image | POST /api/v1/generate | Base generation from a text prompt. |
| Image to image | POST /api/v1/generate | Condition on a reference image — upload it via /api/v1/files/upload and pass the URL. |
| Poll task | GET /api/v1/task/{id}?model=qwen-image-edit | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | text | required | make the soda can a dark green and brown gradient |
| image_url | image | required | Drag and drop or click to upload your file |
| acceleration | select | optional | none, regular, high |
| image_size | select | optional | square, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9 |
| num_inference_steps | number | optional | — |
| seed | number | optional | Enter number... |
| guidance_scale | number | optional | — |
| sync_mode | select | optional | false, true |
| num_images | select | optional | 1, 2, 3, 4 |
| enable_safety_checker | select | optional | false, true |
| output_format | select | optional | jpeg, png |
| negative_prompt | text | optional | Enter negative prompt |
| nsfw_checker | select | optional | false, true |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"qwen-image-edit","input":{"prompt":"Enhance into a rich cinematic color grade with soft golden rim light, refined detail, and natural depth.","acceleration":"none","image_size":"landscape_4_3","num_inference_steps":25,"seed":8,"guidance_scale":4,"sync_mode":"false","num_images":"1","enable_safety_checker":"true","output_format":"png","negative_prompt":"blurry, ugly","nsfw_checker":"true"}}'