Skip to main content

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 is https://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 the X-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
A minimal request body:

Response

The response is Alibaba Cloud’s own JSON body. Each image is a URL in output.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 size explicitly. An omitted size renders at 2048*2048 and is billed at the 2K tier.
  • Keep a size at or under 2,250,000 pixels when 1K is enough. The common 1K sizes above all qualify.
  • Leave prompt_extend on 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

  • n above 6 returns a 400 with the code invalid_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, message and request_id, for example InvalidParameter. 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.
The full error contract and the per-plan caps are on the Errors and Rate limits pages. How every partner model bills and refunds is on the Partner models overview.