Image models
Qwen Image 2.0
On this page
Qwen Image 2.0 — fast, high-fidelity AI image generation & editing.
| modelId | qwen2-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=qwen2-image-edit | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | — |
| image_url | image | required | Drag and drop or click to upload your image |
| image_size | select | optional | 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9 |
| output_format | select | optional | png, jpeg |
| seed | number | optional | Enter number... |
| 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":"qwen2-image-edit","input":{"prompt":"Relight this fruit bowl with dramatic side lighting, deepening the shadows and adding a dewy sheen to each grape and plum for a moody Old Master still-life look.","image_size":"16:9","output_format":"png","seed":0,"nsfw_checker":"true"}}'