Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-DashScope-DataInspection
string

Optional DashScope data inspection control forwarded by AnyFast.

Body

application/json

Flat OpenAI-compatible request or nested DashScope-compatible request.

model
enum<string>
required
Available options:
wan2.7-image-pro,
wan2.7-image
prompt
string
required

Text prompt.

Maximum string length: 5000
image
string

Optional public image URL or Base64 data URI for single-image editing.

size
string
default:2K
Example:

"2K"

n
integer
default:1
Required range: 1 <= x <= 12
enable_sequential
boolean
default:false
thinking_mode
boolean
default:true
watermark
boolean
default:false
seed
integer
Required range: 0 <= x <= 2147483647
response_format
enum<string>
default:url
Available options:
url,
b64_json

Response

Images generated successfully

data
object[]
required

AnyFast-compatible generated image results.

created
integer
required

Unix creation timestamp.

metadata
object
required

Upstream Wan response and usage details.