Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key created in the DreamTo console, sent as Authorization: Bearer <API Key>.

Body

application/json
model
enum<string>
required

Model name.

Available options:
qwen-image-2.1-pro
prompt
string
required

Describe the image to generate, in any language. Put any text that should appear in the image in quotes.

size
string

Output size as WIDTHxHEIGHT. Total pixels from 512×512 to 2048×2048, aspect ratio from 1:8 to 8:1; when omitted the model picks a size for the prompt. Common sizes: 1024x1024, 1536x1024, 1024x1536, 1472x1104, 1104x1472, 1664x928, 928x1664, 2048x2048.

Example:

"1024x1024"

n
integer
default:1

Number of images per request, 1 to 6, default 1. Billed per image.

Required range: 1 <= x <= 6

Response

Generated.

data
object[]
required

The generated images.

created
integer

Creation time (Unix seconds).

usage
object

Usage.