Skip to main content
← Wan Model name: wan2.7-image/image-to-image
Generation type: image_to_image
Endpoint: POST /api/asset_generator/

Pricing

0.5 credits per output. Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

Input parameters

Send these fields in input_params.
string
required
Describe the edit or transformation to apply to the image.Minimum characters: 1. Maximum characters: 5000.
string[]
required
Input images to edit. Supports JPEG, PNG, BMP, WEBP. 240–8000px, max 20MB each.Minimum items: 1. Maximum items: 9.
string
default:"2K"
Resolution of the generated image. Capped at 2K for image editing.Allowed values: "1K", "2K".
integer
default:1
Number of images to generate.Minimum: 1. Maximum: 4.
integer
Random seed for reproducibility.Minimum: 0. Maximum: 2147483647.

Response

The request returns the task with status: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.