Qwen Image
Qwen Image 3.0 is Alibaba Cloud’s image model. It generates an image from a text prompt, and it edits up to three images that you send with the prompt. The call is synchronous: one POST returns the image in the response, so there is nothing to poll. The request and response shapes mirror Alibaba Cloud’s own API.Best for
- Generating and editing on one endpoint, with one model ID.
- Edits that combine up to three input images.
- Batches. One request returns up to six images.
Models
Each model uses one ID for both tasks. The items in the message select the task. A text item alone generates an image. Image items before the text item edit those images.
Qwen Image 3.0 Pro is the higher grade of Qwen Image 3.0, with the same request shape and the same limits. It costs more per image. Use Qwen Image 3.0 while you iterate, and Qwen Image 3.0 Pro for the final image.
Endpoints
The base URL ishttps://api.nunchux.ai.
There is no poll route. The image is in the response.
Wan and HappyHorse use the same
/v1/alibaba route family, with an asynchronous video route.
Request
Send your API key in theX-API-Key header. See Authentication. Set Content-Type: application/json.
string
required
The model ID from the table above:
qwen-image-3.0 or qwen-image-3.0-pro.object
required
The prompt and the input images.
object
The generation controls.
Common sizes
Response
The response is Alibaba Cloud’s own JSON body. Each image is a URL inoutput.choices[].message.content[].
object
required
The result.
object
What the request produced:
output_width, output_height, output_image_count, output_image_type (the size tier), and input_image_count. Nunchux bills from these values.string
required
Alibaba Cloud’s identifier for the request.
Example
Generate
Edit
Put the input images before the prompt. Replace the example URL with an image that the provider can fetch.Tips
- Set
sizeexplicitly. An omitted size renders at2048*2048and is billed at the2Ktier. - Keep a size at or under 2,250,000 pixels when
1Kis enough. The common1Ksizes above all qualify. - Leave
prompt_extendon for short prompts. Turn it off when the prompt is already detailed, or when you need the exact words rendered. - On an edit, put the images first and the prompt last. When you send several images, say which element comes from which image.
- Download each image on receipt. The URL expires after 24 hours.
Errors and limits
nabove 6 returns a 400 with the codeinvalid_request. So does a request with more than 3 input images. A refused request is not charged.- An error from Alibaba Cloud returns Alibaba Cloud’s own body, with
code,messageandrequest_id, for exampleInvalidParameter. The charge is refunded in full. - Qwen Image is priced per output image at the rate of its size tier, plus a small fee per input image. The rates are on the pricing page. Nunchux deducts the credits when it sends the request. When Alibaba Cloud returns fewer images than you asked for, Nunchux refunds the difference. See Credits and pricing.
- A Qwen Image call counts toward your requests per minute. It does not take a simultaneous-job slot. See Rate limits.