Qwen Image 3.0
Text to image · Image editing
Starting price $0.07 / image
By Alibaba
Wan 2.5 Image turns a prompt in English or Chinese into one to four images and edits one image or combines two.
wan-25-preview/text-to-imageThis model has other modes with their own ids: wan-25-preview/image-to-image.
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": "wan-25-preview/text-to-image",
"input": {
"prompt": "A small bookshop on a rainy corner at dusk, warm light from the windows, a cat sleeping on a stack of books by the door."
}
}'
# 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": "wan-25-preview/text-to-image", "quote_id": "QUOTE_ID", "input": {"prompt":"A small bookshop on a rainy corner at dusk, warm light from the windows, a cat sleeping on a stack of books by the door."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
promptrequired | string | The prompt for image generation. Supports Chinese and English, max 2000 characters. |
negative_prompt | string | Negative prompt to describe content to avoid. Max 500 characters. |
num_images | integer | Number of images to generate. Values from 1 to 4. |
image_size | string (enum) | The size of the generated image. Can use preset names like 'square', 'landscape_16_9', etc., or specific dimensions. |
enable_prompt_expansion | boolean | Whether to enable prompt rewriting using LLM. Improves results for short prompts but increases processing time. |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Wan 2.5 Image makes one to four images per run in six preset shapes. Prompts can be in English or Chinese, up to 2000 characters, with a negative prompt of up to 500. Prompt rewriting is on by default and helps short prompts.
The edit mode changes one image from an instruction, or combines two reference images into a new one.
Check text, object counts and whether edits unintentionally changed the main subject.