Wan 2.7 Image API

Wan 2.7 is a next-generation text-to-image model from Alibaba Cloud with enhanced visual quality and detail.
Output
$0.039 / gen

How to use Wan 2.7 Image API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to alibaba/wan-2-7-image.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/wan-2-7-image",
      "prompt": "A cat holding a sign that says hello"
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/images/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "alibaba/wan-2-7-image",
    "prompt": "A cat holding a sign that says hello"
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"alibaba/wan-2-7-image","prompt":"A cat holding a sign that says hello"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Wan 2.7 Image API Pricing

TypePrice
Input
Output
$0.039 / gen tokens

Wan 2.7 Image vs other models

ModelInputOutputContextBest for
Wan 2.7 Image
This page
$0.039 / gen
Image generation at scale
$0.325 / 1M
$78 / 1M
128K tokens
Image generation at scale
$6.5 / 1M
$10.4 / 1M tokens
Image generation at scale
$0 / 1M
$0 / 1M
Image generation at scale
$0.0195 / MP (variable)
Image generation at scale

Start building with Wan 2.7 Image

Get API Key
1000+ models, one API.