Wan 2.7 Image
unofficialimage
Wan 2.7 Image specifications
| Context window | — |
|---|---|
| Max output tokens | — |
| Release date | — |
| Input | Text |
| Output | Image |
Wan 2.7 Image pricing in rubles
You pay for what you use, per token and per unit. The final request cost is returned in the API response.
| Type | Price |
|---|---|
| Image | 5,4 ₽ per image |
Prices are in rubles and may change with exchange rates.
What Wan 2.7 Image can do
- Generation
Wan 2.7 Image API: connection and code examples
The service exposes a single OpenAI-compatible API. Set our base_url and the key from your dashboard.
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")
image = client.images.generate(model="alibaba/wan2.7-image-01402", prompt="Рыжий кот в скафандре")
print(image.data[0].url or image.data[0].b64_json[:64])cURL
curl https://api.neuralbridge.ru/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "alibaba/wan2.7-image-01402", "prompt": "Рыжий кот в скафандре"}'API endpoints
POST /v1/images/generationsprimary | Images — generations Generate an image from a text description. |
Supported request parameters
| Parameter | Default | Allowed values | Description |
|---|---|---|---|
size | — | — | Result size as a "width×height" string. |
width | — | — | Image width in pixels. |
height | — | — | Image height in pixels. |