Wan 2.7 Image API usage and code examples
Base URL, authentication, endpoints, and code examples for calling Wan 2.7 Image (model ID: wan-image-2.7) through the API.
Model details
| Model ID | wan-image-2.7 |
|---|---|
| Provider | Alibaba Cloud(Wan) |
| Type | Image |
| Status | Available |
| Processing region | Global |
| Pricing | See the model page |
Base URL and authentication
| Format | Base URL | Key header |
|---|---|---|
| OpenAI | https://token.echohub.io/v1 | Authorization: Bearer |
Create an API key in the console and put it in the ECHO_API_KEY environment variable.
Endpoints
| Method and path | What it does |
|---|---|
POST /v1/images/generations | Generate images |
Call examples
Supported parameters vary by model.
curl https://token.echohub.io/v1/images/generations \
-H "Authorization: Bearer $ECHO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-image-2.7",
"prompt": "A Shiba Inu walking on the beach at dusk"
}'