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

Wan 2.7 Text to Image

alibaba/wan/2.7/text-to-image

Alibaba Wan 2.7 text-to-image model with high-quality generation and selectable aspect ratio.

Base price
$0.03USD / 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.03 / run
Billing formula
0.03

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/text-to-image
Execution
async
API
Unified Run API
Endpoint
/v1/run

API README

Wan 2.7 Text to Image

Wan 2.7 Text to Image creates a finished image from a natural-language description. The model is designed to understand detailed creative direction and translate it into a resolved visual. It works directly from text without requiring an input picture.

Prompts can describe subject, environment, composition, materials, and lighting in one brief. Chinese and English direction are supported for multilingual workflows. Seed, layout, and raster-format controls complete the request.

Highlights

  • Advanced prompt understanding. The exact model page emphasizes stronger interpretation of written direction. Detailed prompts can coordinate multiple scene elements.
  • Detailed visual output. Wan 2.7 is explicitly presented as producing detailed images. Fine visual attributes can be part of the brief.
  • High-quality text-to-image generation. The model page positions Wan 2.7 as a high-quality image generator. Its role is producing a resolved raster visual from text.
  • Faster standard-tier generation. Alibaba positions the standard Wan 2.7 image model as the faster generation option, favoring quicker text-to-image iteration within the 2.7 family.

Pricing

Billing unitPrice
Base price per request$0.03

When to Use

✅ Good fit❌ Consider alternatives
Developing a visual concept from a detailed briefEditing a supplied image
Creating product, environment, or character studiesProducing video
Working with Chinese or English directionRequiring a mask-based edit
Preparing raster imagery in common layoutsDelivering SVG or layered files
Repeating a setup with a known seedRequiring pixel-identical output across updates

Prompt Guide

Write subject, action or state, environment, composition, material or style, then lighting and color.

Subject: [main subject]
Action/state: [what is happening]
Environment: [setting]
Composition: [camera and placement]
Material/style: [visual treatment]
Lighting/color: [light and palette]
{
  "prompt": "Flowing liquid metal in iridescent blue and gold forming a Mobius strip, floating in a dark void, centered studio composition, soft caustic reflections, polished 3D render",
  "aspect_ratio": "16:9"
}

Technical Specs

SpecValue
Model IDalibaba/wan/2.7/text-to-image
Required inputprompt
Prompt length1 to 10,000 characters
Prompt languagesChinese and English
Aspect ratioSeven presets; default 16:9
OutputImage URL and content type
ExecutionAsynchronous job

Related

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/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/text-to-image",
  "prompt": "Flowing liquid metal in iridescent blue and gold forming an impossible Möbius strip, floating in a void with soft caustic reflections, 3D render, octane, studio lighting",
  "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.03 / runApr 1, 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
AlibabaImage$0.07 / runApr 1, 2026

Questions

FAQ

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

Create a SandBase API key, then send requests with the model ID "alibaba/wan/2.7/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 Text to Image and the other models in the catalog; you do not need to sign up with Alibaba separately.