API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Wan 2.7 Pro Text to Image

alibaba/wan/2.7/pro/text-to-image

Alibaba Wan 2.7 Pro text-to-image model with enhanced quality and selectable aspect ratio.

Base price
$0.07USD / run
Execution
async
Model type
image
Input fields
2
Production route

Try the model

Playground

Open playground
Input
The prompt to generate an image from.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, 9:21.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Specifications

Pricing

Base price
$0.07 / run
Billing formula
0.075

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Alibaba
Model ID
alibaba/wan/2.7/pro/text-to-image
Execution
async
API
Unified Run API
Endpoint
/v1/run

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 unitPrice
Per request$0.075

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable 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",
  "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

SpecValue
Model IDalibaba/wan/2.7/pro/text-to-image
Inputsaspect_ratio, output_format, prompt, seed
Required inputsprompt
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)
Aspect Ratio21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 9:21
Output Formatjpeg / png

Related Models

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
alibaba/wan/2.7/pro/text-to-image
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "alibaba/wan/2.7/pro/text-to-image",
  "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"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
AlibabaImage$0.07 / runApr 1, 2026
AlibabaImage$0.04 / runJul 21, 2026
AlibabaImage$0.04 / runJul 21, 2026
AlibabaImage$0.04 / runJul 21, 2026
AlibabaImage$0.07 / runApr 1, 2026
AlibabaImage$0.03 / runApr 1, 2026

Questions

FAQ

How do I call Wan 2.7 Pro Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/wan/2.7/pro/text-to-image" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Wan 2.7 Pro Text to Image and the other models in the catalog; you do not need to sign up with Alibaba separately.