Skip to content
中文
Wan · Model API

Wan 2.7 Image API

Wan2.7 Image API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.

Text to ImageImage to Image

Wan2.7 Image API documentation

Integrate Wan2.7 Image with your VezAPI key. The operations below share the same authentication and account balance.

Base URL: https://api.vezapi.com
Send Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.

Wan 2.7 Image Pro

POST/api/v1/jobs/createTask

Model IDs: wan/2-7-image-pro

ParameterTypeDescription & constraints
model
required
string

Model name for generation tasks. This endpoint currently uses `wan/2-7-image-pro`.

Values: "wan/2-7-image-pro"

Default: "wan/2-7-image-pro"

callBackUrl
optional
string

The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, use the Get Task Details endpoint to poll task status - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation

input
required
object

Input parameters for the generation task

input.prompt
required
string

Prompt for image generation or editing. This field supports both Chinese and English, with a maximum length of 5000 characters.

maxLength: 5000

input.input_urls
optional
array

(Optional) Array of input image URLs.

maxItems: 9

input.aspect_ratio
optional
string

(Optional) Output aspect ratio when no image input is provided.

Values: "1:1", "16:9", "4:3", "21:9", "3:4", "9:16", "8:1", "1:8"

input.enable_sequential
optional
boolean

Whether to enable sequential/group image mode. Default is false.

Default: false

input.n
optional
integer

Number of images to generate. Range is 1-4 when `enable_sequential=false` (default: 4); range is 1-12 when `enable_sequential=true` (default: 12).

input.resolution
optional
string

Output resolution: 1K, 2K or 4K (default 2K). 4K is available only for text-to-image (no input images) with sequential generation off.

Values: "1K", "2K", "4K"

Default: "2K"

input.thinking_mode
optional
boolean

Whether to enable thinking mode. Only available when `enable_sequential=false` and `input_urls` is empty; it is disabled in other cases.

Default: false

input.color_palette
optional
array

(Optional) Custom color theme. Only available when `enable_sequential=false`. Requires 3-10 colors, 8 recommended.

minItems: 3

maxItems: 10

input.color_palette[].hex
required
string

HEX color value.

input.color_palette[].ratio
required
string

Color proportion, format must be xx.xx%.

input.bbox_list
optional
array

(Optional) Interactive editing bounding box areas. The outer list length should match `input_urls`; maximum 2 boxes per image; single box format is `[x1, y1, x2, y2]`.

input.watermark
optional
boolean

Whether to add watermark.

Default: false

input.seed
optional
integer

Optional. Omit for a random seed.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model.

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "wan/2-7-image-pro",
  "input": {
    "prompt": "Transform the food photo by replacing the marked ingredients with sliced red chili pieces in the corresponding positions, while keeping the same bowl, composition, steam, lighting, camera angle, background, texture, and overall realism.",
    "input_urls": [
      "https://example.com/input.png"
    ],
    "n": 4,
    "enable_sequential": false,
    "resolution": "2K",
    "thinking_mode": false,
    "watermark": false,
    "seed": 0,
    "bbox_list": [
      []
    ]
  }
}'
Responses and errors

HTTP 200

Request successful.

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

HTTP 500

Server error.

ParameterTypeDescription & constraints
code
required
integer

Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled

msg
required
string

Response message, error description when failed

data
required
object

Wan 2.7 Image

POST/api/v1/jobs/createTask

Model IDs: wan/2-7-image

ParameterTypeDescription & constraints
model
required
string

Model name for generation tasks. This endpoint currently uses `wan/2-7-image`.

Values: "wan/2-7-image"

Default: "wan/2-7-image"

callBackUrl
optional
string

The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, use the Get Task Details endpoint to poll task status - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation

input
required
object

Input parameters for the generation task

input.prompt
required
string

Prompt for image generation or editing. This field supports both Chinese and English, with a maximum length of 5000 characters.

maxLength: 5000

input.input_urls
optional
array

(Optional) Array of input image URLs.

maxItems: 9

input.aspect_ratio
optional
string

(Optional) Output aspect ratio when no image input is provided.

Values: "1:1", "16:9", "4:3", "21:9", "3:4", "9:16", "8:1", "1:8"

input.enable_sequential
optional
boolean

Whether to enable sequential/group image mode. Default is false.

Default: false

input.n
optional
integer

Number of images to generate. Range is 1-4 when `enable_sequential=false` (default: 4); range is 1-12 when `enable_sequential=true` (default: 12).

input.resolution
optional
string

Output resolution: 1K or 2K (default 2K). For 4K, use wan/2-7-image-pro.

Values: "1K", "2K"

Default: "2K"

input.thinking_mode
optional
boolean

Whether to enable thinking mode. Only available when `enable_sequential=false` and `input_urls` is empty; it is disabled in other cases.

Default: false

input.color_palette
optional
array

(Optional) Custom color theme. Only available when `enable_sequential=false`. Requires 3-10 colors, 8 recommended.

minItems: 3

maxItems: 10

input.color_palette[].hex
required
string

HEX color value.

input.color_palette[].ratio
required
string

Color proportion, format must be xx.xx%.

input.bbox_list
optional
array

(Optional) Interactive editing bounding box areas. The outer list length should match `input_urls`; maximum 2 boxes per image; single box format is `[x1, y1, x2, y2]`.

input.watermark
optional
boolean

Whether to add watermark.

Default: false

input.seed
optional
integer

Optional. Omit for a random seed.

minimum: 0

maximum: 2147483647

input.nsfw_checker
optional
boolean

Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model.

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "wan/2-7-image",
  "input": {
    "prompt": "Transform the food photo by replacing the marked ingredients with sliced red chili pieces in the corresponding positions, while keeping the same bowl, composition, steam, lighting, camera angle, background, texture, and overall realism.",
    "input_urls": [
      "https://example.com/input.png"
    ],
    "n": 4,
    "enable_sequential": false,
    "resolution": "2K",
    "thinking_mode": false,
    "watermark": false,
    "seed": 0,
    "bbox_list": [
      []
    ]
  }
}'
Responses and errors

HTTP 200

Request successful.

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

HTTP 500

Server error.

ParameterTypeDescription & constraints
code
required
integer

Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled

msg
required
string

Response message, error description when failed

data
required
object

Task status and callbacks

For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.

A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.

Files, logs and billing

Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.

Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.

Open full documentation →

Wan2.7 Image API pricing

Rates below are reference estimates; final deductions equal actual discounted consumption, one for one. At the standard pack rate, 1,000 credits ≈ $10. Larger packs reduce the effective credit price.

SpecificationCreditsUnitUSD reference
wan 2.7 image pro12per image$0.12
wan 2.7 image4.8per image$0.048