Skip to Content
Image ModelsWAN 2.7 Image Pro

WAN 2.7 Image Pro

Overview

WAN 2.7 Image Pro is the high-quality variant of WAN 2.7 Image for text-to-image and image-to-image generation.

Test API KEY: key_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwithapi.online/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesThe input prompt (e.g., “a fashion editorial in studio lighting”)
image_urlsarrayConditional["https://cdn.pixwithapi.online/example.jpg"]. Provide 1-4 images for image-to-image mode. Omit for text-to-image mode.
model_idstringYes0-46
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, all prompt words will be automatically translated into English.
options.resolutionstringYesText-to-image valid values: '1K', '2K', '4K'; image-to-image valid values: '1K', '2K'. Default: '1K'.

Example Request - Text-to-Image (4K Supported)

{ "prompt": "a fashion editorial in studio lighting", "model_id": "0-46", "options": { "prompt_optimization": true, "resolution": "4K" } }

Example Request - Image-to-Image (Up to 4 Inputs)

{ "prompt": "keep identity and convert to realistic poster style", "image_urls": [ "https://cdn.pixwithapi.online/example-1.jpg", "https://cdn.pixwithapi.online/example-2.jpg", "https://cdn.pixwithapi.online/example-3.jpg", "https://cdn.pixwithapi.online/example-4.jpg" ], "model_id": "0-46", "options": { "prompt_optimization": true, "resolution": "2K" } }

Response Parameters

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess and failure messages
dataobject
data.task_idstring
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 35 } }

Constraints

  • Image-to-image mode supports up to 4 input images.
  • 4K is available only in text-to-image mode.
  • 4K is not available in image-to-image mode.
Last updated on