Model API

Qwen Image 3.0

Generate one image from a text prompt.

Model id

Use this in every request
qwen-image-3-0

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-image-3-0",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "qwen-image-3-0", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for qwen-image-3-0
NameTypeDescription
promptrequiredstring
Required. The prompt to generate the image. Max 4500 characters.
resolutionstring (enum)
Required. Quality tier for the generated image.

Default: 1K

One of: 1K, 2K

ratiostring (enum)
Optional. Aspect ratio of the output. Auto follows the first input image, or gives a square when there is no input image.

Default: auto

One of: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9

ninteger
Optional. How many images to generate, up to 6. Each generated image is billed.

Default: 1

negativePromptstring
Optional. Specify what to exclude from the output.
promptExtendstring (enum)
Optional. Rewrites and expands the prompt for better detail, with slightly longer latency. Useful for short prompts.

Default: false

One of: true, false

promptExtendModestring (enum)
Optional. Direct suits most cases. Agent rewrites more heavily but works only without an input image, otherwise it falls back to direct.

Default: direct

One of: direct, agent

enableThinkingstring (enum)
Optional. Improves output quality at the cost of longer generation time. Needs Prompt Extend to be true. The price is the same either way.

Default: true

One of: true, false

seedinteger
Optional. Random seed for reproducibility (0-2147483647).

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]

Pricing

  • 1 image$0.07/ image

The exact charge for your input comes from a quote. How charges settle