Image models
Qwen Image
On this page
Qwen Image — fast, high-fidelity AI image generation & editing.
| modelId | qwen-text-to-image |
| 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. |
| Poll task | GET /api/v1/task/{id}?model=qwen-text-to-image | Retrieve state and result URLs. |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | textarea | required | A 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_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 | — |
| enable_safety_checker | select | optional | false, true |
| output_format | select | optional | png, jpeg |
| negative_prompt | text | optional | Enter elements to avoid in the image... |
| acceleration | select | optional | none, regular, high |
| 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-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"}}'