alibaba/wan/2.7/pro
Alibaba Wan 2.7 Pro text-to-image model with enhanced quality and configurable output format.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runalibaba/wan/2.7/proInput Schema
4 parameters · 1 required · 3 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The prompt to generate an image from. · Min length: 1 · Max length: 10000 · Default: "A futuristic glass library building with organic curved walls surrounded by cherry blossom trees, blue sky with scattered clouds, architectural visualization, golden ratio composition" |
seed | integer | Optional | Random seed for reproducible results. |
aspect_ratio | string | Optional | The aspect ratio of the generated image. · Options: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21 · Default: "16:9" 21:916:94:31:13:49:169:21 |
output_format | string | Optional | The format of the generated image. · Options: jpeg, png · Default: "png" jpegpng |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "alibaba/wan/2.7/pro",
"prompt": "A futuristic glass library building with organic curved walls surrounded by cherry blossom trees, blue sky with scattered clouds, architectural visualization, golden ratio composition",
"aspect_ratio": "16:9",
"output_format": "png"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Wan 2.7 Pro Text-to-Image
Wan 2.7 Pro is the text-to-image route in the Wan 2.7 Pro family. It turns a written creative brief into a finished image URL, giving image-generation workflows a direct path from concept text to a visual asset.
The endpoint packages generation and delivery into one asynchronous job. This makes it practical to iterate on a visual brief, compare results, and carry the selected output into a broader design workflow.
Highlights
Enhanced Pro quality. The Pro route is positioned for enhanced-quality image generation, producing a more refined result than a draft-oriented text-to-image workflow.
Advanced prompt understanding. Interprets detailed written direction so the generated image can follow a richer creative brief rather than only a short subject label.
Detailed image output. Produces detailed visual results, supporting prompts in which the requested image depends on clearly resolved content rather than a loose thumbnail concept.
Native 4K text-to-image output. The Pro model supports high-resolution 4K output for text-to-image generation.
Pricing
| Billing unit | Price |
|---|---|
| Per request | $0.075 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The model's named workflow matches the source material and intended output | A different input modality or model route is required |
| A managed asynchronous result is suitable for the production pipeline | A synchronous, interactive editor is essential |
| The documented controls cover the required duration, framing, or format | The project needs controls outside this endpoint's schema |
| Creative iteration benefits from a repeatable request structure | Exact deterministic pixels, frames, geometry, or samples are mandatory |
| A finished downloadable media asset is the desired deliverable | Editable source layers or a native project file are required |
Prompt Guide
For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.
{
"aspect_ratio": "16:9",
"output_format": "png",
"prompt": "A futuristic glass library building with organic curved walls surrounded by cherry blossom trees, blue sky with scattered clouds, architectural visualization, golden ratio composition"
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | alibaba/wan/2.7/pro |
| Inputs | aspect_ratio, output_format, prompt, seed |
| Required inputs | prompt |
| Output fields | content_type, url |
| Execution | Async (submit, then poll for result) |
| Aspect Ratio | 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 9:21 |
| Output Format | jpeg / png |
Related Models
alibaba/wan/2.7/pro/edit— Compare a nearby route in the same local model family.alibaba/wan/2.7— Compare a nearby route in the same local model family.alibaba/wan/2.7/edit— Compare a nearby route in the same local model family.

