Qwen Image 3.0 API guide: Qwen Image 3.0 and 3.0 Pro
Call Qwen Image 3.0 and 3.0 Pro through the DashScope-style endpoint on DreamTo: request shape, parameters, sizes, editing with 1-3 images, and per-image prices

On this page
Qwen Image 3.0 (the Standard model) and Qwen Image 3.0 Pro (the flagship) do two jobs through one endpoint: they generate an image from a text prompt, and they edit or combine one to three reference images from a single instruction. On DreamTo the two models take the same request body and the same parameters, and they use your regular DreamTo API key. Only the model string changes.
Every sample below uses $DREAMTO_API_KEY and the base URL https://api.dreamto.ai.
The endpoint: DashScope protocol, synchronous#
The catalog lists one protocol for both models, DashScope. The request and response bodies follow the official DashScope format, so code written for that format runs after you swap the base URL and the key. If you use the DashScope SDK, set base_http_api_url to https://api.dreamto.ai/api/v1.
| Value | |
|---|---|
| Method and path | POST /api/v1/services/aigc/multimodal-generation/generation |
| Full URL | https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation |
| Auth | Authorization: Bearer $DREAMTO_API_KEY |
model | qwen-image-3.0 or qwen-image-3.0-pro |
| Mode | Synchronous: the call blocks and returns image links |
There is no task to poll: X-DashScope-Async tasks are neither needed nor supported. Larger sizes, more images per request, thinking mode and agent rewriting all make the call take longer, so set the client read timeout to at least 180 seconds. The samples below use 300.
API keys are covered on the authentication page. Each model has its own docs page: Qwen-Image 3.0 and Qwen-Image 3.0 Pro.
Your first request#
A text-to-image request has one user message whose content holds a single {"text": "..."} item. Prompts can be Chinese or English, ideally under 4,500 tokens. parameters is optional; without it every default applies.
curl -X POST "https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen-image-3.0", "input": { "messages": [ { "role": "user", "content": [ { "text": "An orange cat sitting on a sunlit wooden windowsill, a city street after the rain outside, droplets on the glass, soft natural light, photorealistic" } ] } ] } }'The same call in Python, printing the image links:
import osimport requestsURL = "https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation"HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}payload = { "model": "qwen-image-3.0", "input": { "messages": [ { "role": "user", "content": [ { "text": "An orange cat sitting on a sunlit wooden windowsill, a city street after the rain outside, droplets on the glass, soft natural light, photorealistic" } ] } ] },}result = requests.post(URL, headers=HEADERS, json=payload, timeout=300).json()if "output" not in result: raise SystemExit(result)for item in result["output"]["choices"][0]["message"]["content"]: print(item["image"])Reading the response#
Image links are in output.choices[0].message.content[].image. The files are PNG and the links are valid for 24 hours, so copy what you want to keep to your own storage. With n above 1, all images come back in the same content array. The usage object reports what was billed:
{ "request_id": "req_7c1e9a4b2d3f5a6b8c9d0e1f", "output": { "choices": [ { "finish_reason": "stop", "message": { "role": "assistant", "content": [ { "type": "image", "image": "https://..." } ] } } ], "rewrite_status": "not_use" }, "usage": { "output_width": 1024, "output_height": 1024, "input_image_count": 0, "input_image_type": "qima_input_1k", "output_image_count": 1, "output_image_type": "qima_output_1k" }}output_width and output_height are the size you actually got, which matters when you leave size out. output_image_type is the billing tier. request_id is the DreamTo request ID and matches the X-Request-Id header; include it when you report a problem.
Request parameters and their defaults#
| Field | Values |
|---|---|
input.messages | Exactly one message with role user |
content[].text | Required, exactly one: the prompt or the edit instruction |
content[].image | 1-3 images for editing: a public link or data:{MIME type};base64,{data} |
parameters.size | WIDTH*HEIGHT, 512*512 to 2048*2048 total pixels, aspect ratio 1:8 to 8:1; the model decides from the prompt if omitted |
parameters.n | 1-6, default 1, billed per image |
parameters.negative_prompt | Optional: what should not appear |
parameters.prompt_extend | true (default) or false |
parameters.prompt_extend_mode | direct (default) or agent (text-to-image only) |
parameters.enable_thinking | true (default, needs prompt_extend: true, slower) or false |
parameters.seed | 0 to 2147483647; random when omitted |
parameters.watermark | false (default) or true |
size is joined with an asterisk: 1664*928, not 1664x928. A value that is not WIDTH*HEIGHT returns 400 from the gateway, while a pixel count outside the range is rejected by the model service with 400 InvalidParameter. The same parameters with the same seed give steadier results.
Sizes and the 1K and 2K billing tiers#
Each output image is billed by its own total pixel count. Up to 2,250,000 pixels (1500*1500) is the 1K tier; anything above is the 2K tier. The response reports which one applied in usage.output_image_type, as qima_output_1k or qima_output_2k.
The sizes and billing page lists these common sizes:
| Ratio | 1K tier examples | 2K tier examples |
|---|---|---|
| 1:1 | 1024*1024, 1328*1328 | 1536*1536, 2048*2048 |
| 16:9 | 1664*928 | 2048*1152 |
| 9:16 | 928*1664 | 1152*2048 |
| 4:3 | 1472*1104 | 2048*1536 |
| 3:4 | 1104*1472 | 1536*2048 |
| 3:2 | 1584*1056 | 1872*1248 |
| 2:3 | 1056*1584 | 1248*1872 |
Before the call runs, the balance is checked against the most the request could produce: n images, in the 2K tier when size is omitted or above 2,250,000 pixels. With too little balance you get a 402 and the model is not called. After generation, the charge follows usage in the response. On Pro, where the 2K tier costs more, an explicit size inside the 1K tier keeps that check at the 1K price.
Editing and combining images#
The same endpoint does image-to-image. Put one to three {"image": "..."} items and exactly one {"text": "..."} instruction in content. The image editing page describes these edit types: changing text inside an image, adding, deleting or moving objects, changing a subject's action, style transfer, detail enhancement, and fusing elements from several images.
| Item | Requirement |
|---|---|
| Formats | JPG, JPEG, PNG, BMP, TIFF, WEBP, GIF (first frame only for animated GIF) |
| Resolution | 1-8,000 px per side; 384-2,048 px works best |
| Aspect ratio | Long side to short side at most 10:1 |
| File size | Up to 10 MB each |
Images are numbered in the order they appear in content: the first is "image 1", the second "image 2". The text item can come before or after them. When you combine images, say what each one is for:
curl -X POST "https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen-image-3.0-pro", "input": { "messages": [ { "role": "user", "content": [ { "image": "https://your-cdn.example.com/girl.png" }, { "image": "https://your-cdn.example.com/necklace.png" }, { "image": "https://your-cdn.example.com/bag.png" }, { "text": "The girl in image 1 wears the necklace from image 2 and carries the bag from image 3 on her left shoulder" } ] } ] }, "parameters": { "size": "1104*1472", "seed": 42 } }'A single-image edit can return several candidates with n. This one keeps the person and changes the outfit and background:
import osimport requestsURL = "https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation"HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}payload = { "model": "qwen-image-3.0", "input": { "messages": [ { "role": "user", "content": [ {"image": "https://your-cdn.example.com/portrait.png"}, { "text": "Keep the face and hairstyle, change the outfit to an off-white suit and the background to a modern minimalist cafe" }, ], } ] }, "parameters": {"n": 2, "prompt_extend": True},}result = requests.post(URL, headers=HEADERS, json=payload, timeout=300).json()if "output" not in result: raise SystemExit(result)for item in result["output"]["choices"][0]["message"]["content"]: print(item["image"])Each reference image is billed as an input image and counted in usage.input_image_count. The catalog notes for the two models add two habits. For Standard: name which reference defines what (the mark, the view angle, the palette). For Pro: edit in discrete steps, with a material change, a text replacement and an object swap in separate requests, passing each approved result into the next edit.
Prompt rewriting and thinking mode#
prompt_extend defaults to true: the model optimizes your prompt first and then generates, so a short description still returns a detailed image. Two more settings, described on the prompt rewriting page, change how that works.
prompt_extend_mode | What it does | Applies to |
|---|---|---|
direct (default) | Direct prompt enhancement, fits most cases | Text-to-image and editing |
agent | Agent prompt enhancement, more refined rewriting | Text-to-image only |
Thinking mode (enable_thinking, default true) strengthens the model's reasoning for better images, takes longer, and needs prompt_extend: true. Agent mode with editing is the one unsupported combination: agent on an edit returns 400.
When your prompt already describes the picture and its text precisely, turn rewriting off. The model follows the prompt literally and the request is faster; enable_thinking then has no effect. A poster with every word specified is the typical case:
{ "model": "qwen-image-3.0", "input": { "messages": [ { "role": "user", "content": [ { "text": "A minimalist coffee brand poster: off-white background, a steaming white ceramic cup in the center, the words \"MORNING BREW\" in a dark brown sans-serif font above the cup and a small line \"Freshly ground daily\" at the bottom, soft natural light, generous white space" } ] } ] }, "parameters": { "size": "1104*1472", "prompt_extend": false }}For the opposite case, a short idea you want expanded, use agent mode with thinking:
{ "model": "qwen-image-3.0", "input": { "messages": [ { "role": "user", "content": [ { "text": "A cafe in the middle of a forest" } ] } ] }, "parameters": { "prompt_extend": true, "prompt_extend_mode": "agent", "enable_thinking": true }}output.rewrite_status in the response reports the outcome: not_use when rewriting was off, success when it ran.
The docs' prompt advice: say what is in the picture, where it is and what it is doing; name the style and the light; give composition and camera terms; and put any text for the image in quotes with a position, font, color or material. What to avoid goes in negative_prompt.
Standard or Pro: positioning and price#
Both models share the endpoint, the parameters, the size range and the limit of six images per request. The catalog describes the split this way: Standard (qwen-image-3.0) balances quality, speed and cost for batch posters, web pages, UI screens and infographics; it shares Pro's long prompts and small text and leaves dense layouts and fine detail to Pro. Pro (qwen-image-3.0-pro) is the flagship, built for information density and detail: dense one-pass layouts such as newspapers, storyboards and menus.
Both are listed with 4.5k-token prompts and native text in 12 languages, legible down to about 10px.
qwen-image-3.0 | qwen-image-3.0-pro | |
|---|---|---|
| Positioning | Standard: quality, speed and cost in balance | Flagship: information density and detail |
| Catalog use cases | Category poster templates, course chapter covers, seasonal product displays, related event visuals | Bilingual exhibit boards, drinks menu layouts, process diagrams, localized campaign artwork |
| 1K output image | $0.021 / image | $0.028 / image |
| 2K output image | $0.021 / image | $0.0525 / image |
| Input image | $0.0021 / image | $0.0021 / image |
Prices are in USD as of December 2026 and include the 30% discount listed on /prices today; that page is authoritative. The docs pages show the list prices before the discount. Standard costs the same at both tiers. Pro's output price steps up above 2,250,000 pixels, so choose its size deliberately.
A worked example: a one-reference edit with n: 2 at 1328*1328 (1K tier) on Standard costs 2 x $0.021 + 1 x $0.0021 = $0.0441. Only images actually returned are charged; invalid requests and failed generations are not.
Since the request is identical, you can settle the prompt on Standard and switch model to Pro when the layout is dense. The catalog's advice for Pro is to describe the layout from scratch (physical materials, key light source and content regions before styling or palette), to put required copy on its own line or in quotation marks, and to cross-check factual text such as prices and product specifications against a separate approved source.
Both models can be tried in the browser: Qwen Image 3.0 and Qwen Image 3.0 Pro. The model pages are /qwen-image-3-0 and /qwen-image-3-0-pro, and the full catalog is at /models.
Errors: status codes and what is charged#
Errors come back in the DashScope error body, with a real HTTP status:
{ "request_id": "req_7c1e9a4b2d3f5a6b8c9d0e1f", "code": "InvalidParameter", "message": "input.messages[0].content accepts at most 3 images."}| Status | code | Cause |
|---|---|---|
| 400 | InvalidParameter | Rejected by the gateway before the model is called: not exactly one message or one text, more than 3 images, n outside 1-6, seed out of range, size not WIDTH*HEIGHT, agent mode on an edit |
| 400 | The official code, e.g. DataInspectionFailed | Rejected by the model: pixels out of range, an image that cannot be downloaded, content moderation |
| 401 | InvalidApiKey | The API key is missing or invalid |
| 402 | Arrearage | The balance does not cover the highest possible cost of the request; top up and retry |
| 429 | Throttling | Too many requests, from the model service or the rate limit of your DreamTo account or API key |
| 500 | InternalError | The service is temporarily unavailable |
None of these are charged. message is in English, so branch on the HTTP status and code. The model pages add that some DreamTo-side errors, such as a model that is not enabled, use the DreamTo envelope with an error object, so this helper reads either shape:
def image_urls(result: dict) -> list[str]: if "output" in result: return [c["image"] for c in result["output"]["choices"][0]["message"]["content"]] err = result.get("error") or result raise RuntimeError(f"{err.get('code')}: {err.get('message')} (request_id {result.get('request_id')})")The retry advice on the errors page applies here: 4xx responses other than 429 usually need a corrected request, while 429 and 5xx can be retried with exponential backoff.
How to choose an AI image API puts Qwen next to the other image models on the platform, and the product photo prompts guide covers prompt structure for commerce images.
FAQ#
How do I call the Qwen Image 3.0 API?#
Send a POST to https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation with Authorization: Bearer $DREAMTO_API_KEY, model set to qwen-image-3.0 or qwen-image-3.0-pro, and one user message containing your prompt. The call is synchronous and returns image links in output.choices[0].message.content[].image.
What is the difference between Qwen Image 3.0 and 3.0 Pro?#
They share the endpoint, parameters and size range. Standard balances quality, speed and cost; Pro is the flagship, built for dense layouts such as newspapers, storyboards and menus and for fine detail. As of December 2026 Standard is $0.021 per image at both tiers and Pro is $0.028 at 1K and $0.0525 at 2K; see /prices for current prices.
What image sizes does Qwen Image 3.0 support?#
size is WIDTH*HEIGHT with a total of 512*512 to 2048*2048 pixels and an aspect ratio from 1:8 to 8:1. Up to 2,250,000 pixels is the 1K billing tier, above that is 2K. If you omit size, the model picks one from the prompt.
Can Qwen Image 3.0 edit images?#
Yes. Send one to three images plus one text instruction in the same request. The docs list text edits, adding, deleting and moving objects, changing a subject's action, style transfer, detail enhancement and fusing several images. Editing does not support prompt_extend_mode: agent; that returns 400.
Do I need to poll for the result?#
No. Requests are synchronous and return the image links directly. Set the client read timeout to at least 180 seconds, and download the images within 24 hours, before the links expire.
Can I get more than one image per request?#
Yes. n accepts 1 to 6, default 1, and is billed per image. Only images actually returned are charged.


