Skip to main content
POST
  • Supports qwen-image-3.0 and qwen-image-3.0-pro
  • Supports text-to-image, image-to-image, and multi-reference generation
  • Accepts up to 3 reference images
  • Supports 1K and 2K output resolutions with 7 aspect ratios
  • Generates exactly 1 image per request. n must be 1
  • Runs asynchronously and returns a task ID for status queries
image_urls accepts publicly accessible image URLs only. Base64 Data URIs are not supported. Use the Upload Image API first for local files.

Supported models

Authorizations

string
required
All endpoints require Bearer Token authentication.Get an API key from the API Key Management Page and send it in the request header:

Body

string
required
Model name. The only supported values are:
  • qwen-image-3.0
  • qwen-image-3.0-pro
string
required
Text description or editing instruction. The value cannot be empty.
string
Output aspect ratio. Recommended values:1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3Explicit pixel sizes are also accepted as WIDTH*HEIGHT or WIDTHxHEIGHT. The total pixel area must be between 512*512 and 2048*2048, and the aspect ratio must be between 1:8 and 8:1.If omitted, the model chooses the output size.
string
default:"1K"
Resolution tier used when size is an aspect ratio:
  • 1K - Default
  • 2K
metadata.resolution is also accepted, but the top-level field is recommended.
integer
default:1
Number of images to generate. This is fixed at 1.
Values greater than 1 return 400 invalid_request.
string[]
Reference image URLs for image-to-image, editing, or multi-reference generation.
  • Maximum 3 images
  • URLs only; base64 Data URIs are not supported
  • Use the Upload Image API for local files
string
Your order ID, transaction ID, or other business identifier. When provided, the same image task endpoint can be queried with this ID.
object
Qwen Image advanced parameters.

Resolution and pixel mapping

When size is an aspect ratio, ToAPIs maps it to the following pixel dimensions. Both models use the same mapping.

Response

string
Unique task identifier for status queries.
string
Object type, always generation.task.
string
Model used for the request.
string
Task status: queued, in_progress, completed, or failed.
integer
Progress percentage from 0 to 100.
integer
Task creation time as a Unix timestamp.

Request examples

Submission response

200

Query the task

See Get Image Task Status for response fields and polling guidance.

Completed response

Generated image URLs expire after 24 hours. Download or copy the image before expires_at.

Billing

  • Successful output: $0.03 per request
  • Reference image input: $0.003 per image
  • There is no free reference-image allowance
  • qwen-image-3.0 and qwen-image-3.0-pro currently use the same billing rules