Skip to content
Docs menu

Image models

Qwen Image

On this page

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

modelIdqwen-text-to-image
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.
Poll taskGET /api/v1/task/{id}?model=qwen-text-to-imageRetrieve state and result URLs.

Input parameters

FieldTypeRequiredValues / example
prompttextarearequiredA vibrant, colorful scene at a lively amusement park during the day, featuring a cheerful young girl (around 10-12 years old) with a bright smile, wearing a colorful t-shirt and shorts, standing in the foreground. She’s holding a cotton candy in one hand and pointing excitedly toward the background. Behind her, a large, eye-catching amusement park sign reads 'you.bot AI' in bold, playful neon letters with a futuristic yet whimsical design, glowing in bright colors like pink, blue, and yellow. The background includes classic amusement park elements: a Ferris wheel, roller coaster tracks looping in the sky, colorful balloons, and a bustling crowd. The atmosphere is joyful, sunny, and energetic, with vivid colors and a sense of fun.
image_sizeselectoptionalsquare, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
num_inference_stepsnumberoptional
seednumberoptionalEnter number...
guidance_scalenumberoptional
enable_safety_checkerselectoptionalfalse, true
output_formatselectoptionalpng, jpeg
negative_prompttextoptionalEnter elements to avoid in the image...
accelerationselectoptionalnone, regular, high
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-text-to-image","input":{"prompt":"A terraced rice field at dawn wrapped in fog, farmers walking the ridgeline, soft pastel light, wide landscape.","image_size":"square_hd","num_inference_steps":30,"seed":8,"guidance_scale":2.5,"enable_safety_checker":"true","output_format":"png","negative_prompt":" ","acceleration":"none","nsfw_checker":"true"}}'