Wan Image API
The Wan Image API is a single integration for both text-to-image creation and image editing. It supports Chinese and English prompts, task-based processing, and configurable output sizes, so teams can move from ideation to production assets without swapping tools. Capabilities, limits, and pricing can vary by model and region, so treat the dashboard and API responses as the source of truth.
A peaceful lake reflecting the beautiful sunset
No sample available
Click Generate to see preview
History
Max 20 items0 running · 0 completed
Wan Image API for scalable text-to-image and editing
Generate fresh visuals from prompts or refine existing images with the Wan Image API. Use it for campaign creatives, product imagery, and fast iteration pipelines where consistent output size, prompt control, and reliable task handling matter.

What can you build with the Wan Image API?
Localized marketing creatives
Create banners, posters, and social ads using the Wan Image API, then localize quickly with Chinese or English prompts. Because the same prompt structure works across markets, teams can keep brand tone consistent while testing multiple layouts and messages for different regions.

Product and catalog visuals
Use the Wan Image API to generate product scenes from scratch or refine existing shots with edits. It is a practical choice for catalog teams that need consistent framing, controllable sizes, and a steady flow of alternatives for merchandising reviews.

Creative iteration pipelines
Power iterative workflows with the Wan Image API by running task-based jobs and generating multiple candidate images per request. Teams can compare options quickly, reuse prompts across projects, and scale production without rebuilding the integration for every campaign.

Why teams choose the Wan Image API
The Wan Image API balances creative flexibility with production control, so teams can build consistent assets at speed without changing tools between text-to-image and editing modes.
Unified integration
One API surface for creation and editing keeps pipelines simple.
Prompt control
Chinese and English prompts keep instructions clear and repeatable.
Production readiness
Task-based jobs and size controls fit real delivery workflows.
How to integrate the Wan Image API
A straightforward flow from prompt to production assets.
Choose mode and inputs
Pick text-to-image or image editing, then supply a prompt and optional reference images depending on the task.
Submit a task
Send the request and receive a task id. Task-based processing is used for Wan Image API generation jobs.
Retrieve results
Poll the task status, then download image URLs and store them in your asset pipeline.
Core capabilities of the Wan Image API
Documented controls that help teams ship consistent creative
Chinese and English prompt support
The Wan Image API accepts prompts in Chinese and English, making it practical for global teams. A clear, structured prompt improves consistency across campaigns and helps teams reuse prompt templates without rewriting everything for each region.
Negative prompt guidance
For supported models, the Wan Image API allows negative prompts to remove unwanted artifacts or styles. Documented limits allow up to 2000 characters for prompts and 500 characters for negative prompts, which helps keep instructions readable and controlled.
Multi-image fusion
The Wan Image API image-editing mode supports multi-image input for fusion tasks. This helps teams combine product shots and backgrounds while keeping the main subject consistent across variations.
Input image requirements
For image editing, supported formats include JPEG, JPG, PNG, BMP, and WEBP. Input images should be between 384 and 5000 pixels on each side and no larger than 10 MB, which helps maintain quality without excessive latency.
Output size and aspect ratio
You can set output size with a width x height parameter. For Wan 2.5 image editing, total pixels are documented between 768x768 and 1280x1280, with aspect ratios between 1:4 and 4:1. If size is omitted, the default is 1280x1280.
Async task workflow
Wan Image API generation runs as tasks. You submit a request, receive a task id, and poll for completion. Task ids are documented as valid for 24 hours, so production systems should retrieve and store results promptly.
Frequently Asked Questions
Everything you need to know about the product and billing.
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/images/generationsGenerate Image
Create an image generation task using text prompts. Supports text-to-image generation mode.
Asynchronous processing mode, use the returned task ID to .
Generated image links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: wan2.5-text-to-imageImage generation model name.
wan2.5-text-to-imagepromptstringRequiredPrompt describing the image to be generated.
Notes
- Limited to 2000 tokens
A cat playing in the grasssizestringOptionalSize of the generated image (pixel format only).
Notes
- Pixel range: 768x768 to 1440x1440
- Aspect ratio range: [1/4, 4]
1280x1280nintegerOptionalDefault: 1Number of images to generate.
| Value | Description |
|---|---|
| 1-4 | Batch generation supported |
Notes
- Pre-charged based on n value, actual charge based on generated count
1prompt_extendbooleanOptionalDefault: trueWhether to enable intelligent prompt rewriting.
Notes
- When enabled, a large language model will optimize the prompt
- Effective for prompts that lack detail or are too simple
truecallback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered on completion, failure, or cancellation
- Sent after billing confirmation
- HTTPS only, no internal IPs
- Max length: 2048 chars
- Timeout: 10s, Max 3 retries
https://your-domain.com/webhooks/image-task-completed