Wan 2.2 T2I Flash

by Alibaba Cloud

Alibaba DashScope fast text-to-image model (Wanx family). Submit+poll upstream, existing generateDashScopeImage pipeline, now reachable from the public /v1/images/generations route.

Parameters
Category
image
Available Serverless

Run queries immediately, pay only for usage

See pricing

Pricing unit not published yet

Try this modelView documentation

About this model

Alibaba DashScope fast text-to-image model (Wanx family). Submit+poll upstream, existing generateDashScopeImage pipeline, now reachable from the public /v1/images/generations route.

Capabilities

Providers

One model, several sources. DOS routes to the first that answers and falls back automatically, or you can pin a provider per request.

Provider
Alibaba Cloud

Model Details

Provider
Alibaba Cloud
Model ID
wan2.2-t2i-flash
Parameters
Category
image

API Usage

Use the DOS API to integrate Wan 2.2 T2I Flash into your applications. Our API is compatible with OpenAI's client libraries for easy migration.

Model ID

wan2.2-t2i-flash

Python

python
from dos import DOS

client = DOS()

response = client.chat.completions.create(
    model="wan2.2-t2i-flash",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ]
)

print(response.choices[0].message.content)

cURL

bash
curl https://api.dos.ai/v1/chat/completions \
  -H "Authorization: Bearer $DOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.2-t2i-flash",
    "messages": [
      {"role": "user", "content": "Hello, how are you?"}
    ]
  }'

Node.js

javascript
import DOS from 'dos-ai';

const client = new DOS();

const response = await client.chat.completions.create({
  model: "wan2.2-t2i-flash",
  messages: [
    { role: "user", content: "Hello, how are you?" }
  ]
});

console.log(response.choices[0].message.content);