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/image-to-imageThis model has other modes with their own ids: wan-25-preview/text-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/image-to-image",
"input": {
"prompt": "Change the background of the photo to a sunny beach with soft waves, and keep the person, the pose and the clothes the same.",
"image_urls": [
"https://example.com/input.png"
]
}
}'
# 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/image-to-image", "quote_id": "QUOTE_ID", "input": {"prompt":"Change the background of the photo to a sunny beach with soft waves, and keep the person, the pose and the clothes the same.","image_urls":["https://example.com/input.png"]}}'
# 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 text prompt describing how to edit the image. Max 2000 characters. |
image_urlsrequired | array of image URLs | URLs of images to edit. For single-image editing, provide 1 URL. For multi-reference generation, provide up to 2 URLs. If more than 2 URLs are provided, only the first 2 will be used. |
negative_prompt | string | Negative prompt to describe content to avoid. Max 500 characters. |
image_size | string (enum) | The size of the generated image. Width and height must be between 384 and 1440 pixels. |
num_images | integer | Number of images to generate. Values from 1 to 4. |
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.