Skip to main content
qwen-image-3.0-pro is the flagship of Alibaba Cloud’s Qwen image generation and editing 3.0 series, with comprehensively upgraded generation and editing: stronger text rendering, more realistic textures, more accurate semantic adherence and built-in smart prompt rewriting. The same model generates images from text (text-to-image) and creates new images from 1–3 reference images plus an instruction (image-to-image / editing): editing text in images, adding, deleting and moving objects, changing a subject’s action, transferring styles, enhancing details and fusing several images. It outputs PNG images of 512*512 to 2048*2048 total pixels, up to 6 per request, from Chinese or English prompts. Requests are synchronous and return the image links directly, with no polling.

Setup

The request and response bodies follow the official DashScope protocol, so existing code runs after replacing the base URL and API key; with the DashScope SDK, set base_http_api_url to https://api.dreamto.ai/api/v1.

Endpoints

Parameters

Pricing

Billed per image at the official Alibaba Cloud international (Singapore) prices; the prices in the console are authoritative: Cost of a request = output images × the price of their tier + input images × the input price; the tier is usage.output_image_type in the response. Before the call the balance is checked for the most the request can produce (n images, in the 2K tier when size is omitted or above 2,250,000 pixels); with an insufficient balance it returns 402 and the model is not called. Only images actually returned are charged; invalid requests and failed generations are not charged.

Quick start

$DREAMTO_API_KEY is your API Key.

Guides

Notes

  • model is the official name; this endpoint accepts qwen-image-3.0-pro or qwen-image-3.0.
  • Calls are synchronous only: the request blocks until the images are ready, taking longer for larger sizes, more images and thinking mode or agent rewriting, so set the client read timeout to at least 180 seconds; X-DashScope-Async tasks are neither needed nor supported.
  • Malformed requests (messages not exactly one, text not exactly one, more than 3 images, n outside 1–6, seed out of range, size not WIDTH*HEIGHT, agent mode for editing and so on) return 400 InvalidParameter with an English message before the model is called, and are not charged.
  • Errors from the model (pixels out of range, an image that cannot be downloaded, content moderation DataInspectionFailed and so on) keep the official HTTP status, code and message; rate limiting returns 429 Throttling and service failures 500 InternalError. None of these are charged.
  • Authentication failures (401), insufficient balance (402) and other DreamTo-side errors (account rate limits, a model that is not enabled and so on) use the DreamTo error envelope (an error object); see the error examples.
  • request_id in successful and error responses is the DreamTo request ID, the same as the X-Request-Id header; include it when reporting issues.
  • The returned image links are stored by Alibaba Cloud and valid for 24 hours; download and keep the images promptly.