Wan 2.7 Image Pro
Wan-AI/Wan2.7-Image-Pro
Alibaba WanText → imageREST
Price$0.07 /image
EndpointPOST /v2/image/wan-2-7-image-pro/generate REST

Quick start
Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/image/wan-2-7-image-pro/generate \ -H "Authorization: Bearer $WIDELABS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A lighthouse on a rocky coast at dusk, warm lamplight, painterly style", "size": "1K", "seed": 123456, "model": "Wan-AI/Wan2.7-Image-Pro" }'
import os
import requests
resp = requests.post(
"https://api.widelabs.tr/v2/image/wan-2-7-image-pro/generate",
headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
json={
"prompt": "A lighthouse on a rocky coast at dusk, warm lamplight, painterly style",
"size": "1K",
"seed": 123456,
"model": "Wan-AI/Wan2.7-Image-Pro"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/image/wan-2-7-image-pro/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A lighthouse on a rocky coast at dusk, warm lamplight, painterly style", size: "1K", seed: 123456, model: "Wan-AI/Wan2.7-Image-Pro" }), }); console.log(await resp.json());
Parameters
| Name | Type | Description |
|---|---|---|
store_output | "provider" | "wl1d" | "wl7d" | "wl30d" default "provider" | Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,… |
prompt | string | Text prompt (Chinese or English). |
model | string default "Wan-AI/Wan2.7-Image-Pro" | Image generation model. Available: 'Wan-AI/Wan2.7-Image-Pro' (default). |
image | string | Single input image to edit — an https URL or a data URI (data:image/png;base64,...). For several, use `images` instead; if you send both, the upstream uses `images`. |
images | string[] | Multiple input images for fusion or editing, each an https URL or a data URI. Takes precedence over `image`. |
size | string | Output size: the preset `1K`, `2K` or `4K`, or exact pixels as `<width>x<height>` (e.g. `2048x2048`). Omit to let the upstream choose. Price is the same at every size — see /v2/pricing. |
n | integer default 1 | Number of images to generate: 1-4, or up to 16 together with `enable_sequential`. **Every image returned is billed**, so `n: 2` costs twice `n: 1` — and so does the per-file charge when you pass `store_output`. |
seed | integer | Random seed for reproducible output. Omit for a random one. |
watermark | boolean default false | Add the upstream's AI-generated watermark |
thinking_mode | boolean default false | Enable the model's deep-thinking mode (slower, more considered) |
enable_sequential | boolean default false | Generate a sequential group — a set of related images rather than variations. Pair with `n`, and it lifts the 4-image cap. |
webhook_url | string | HTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification. |
Related
Similar models
GoogleNew
Gemini Nano Banana 2.1
google/gemini-nano-banana-2.1
Text → image
From$0.034
per image
OpenAI
GPT Image 2
openai/gpt-image-2
Text → image
From$0.15
per image
Black Forest Labs
FLUX.2 Pro
black-forest-labs/FLUX-2-pro
Text → image
Price$0.036
per image
ByteDance
Seedream 5.0 Pro
ByteDance/doubao-seedream-5-0-pro-260628
Text → image
From$0.043
per image
Start building on Wide Labs Compute
Create an account, add credit and send your first request with the SDK you already use.