Skip to content
Docs menu

Image models

Qwen Image Edit

On this page

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

modelIdqwen-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=qwen-image-editRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextrequiredmake the soda can a dark green and brown gradient
image_urlimagerequiredDrag and drop or click to upload your file
accelerationselectoptionalnone, regular, high
image_sizeselectoptionalsquare, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
num_inference_stepsnumberoptional
seednumberoptionalEnter number...
guidance_scalenumberoptional
sync_modeselectoptionalfalse, true
num_imagesselectoptional1, 2, 3, 4
enable_safety_checkerselectoptionalfalse, true
output_formatselectoptionaljpeg, png
negative_prompttextoptionalEnter negative prompt
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":"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"}}'