Skip to content
Docs menu

Image models

Qwen Image 2.0

On this page

Qwen Image 2.0 — fast, high-fidelity AI image generation & editing.

modelIdqwen2-image-edit
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationEndpointDescription
Text to imagePOST /api/v1/generateBase generation from a text prompt.
Image to imagePOST /api/v1/generateCondition on a reference image — upload it via /api/v1/files/upload and pass the URL.
Poll taskGET /api/v1/task/{id}?model=qwen2-image-editRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequired
image_urlimagerequiredDrag and drop or click to upload your image
image_sizeselectoptional1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9
output_formatselectoptionalpng, jpeg
seednumberoptionalEnter number...
nsfw_checkerselectoptionalfalse, 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"}}'