curl --request POST \
--url https://www.anyfast.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.7-image",
"prompt": "A cinematic flower shop with detailed windows and a wooden door",
"size": "2K",
"n": 1,
"watermark": false,
"thinking_mode": true
}
'{
"data": [
{
"url": "https://dashscope-result.example.com/generated.png",
"b64_json": "",
"revised_prompt": ""
}
],
"created": 1784274013,
"metadata": {
"output": {
"choices": [
{
"finish_reason": "stop",
"message": {
"content": [
{
"image": "https://dashscope-result.example.com/generated.png",
"type": "image"
}
],
"role": "assistant"
}
}
],
"finished": true
},
"usage": {
"image_count": 1,
"input_tokens": 25,
"output_tokens": 2,
"size": "2048*2048",
"total_tokens": 27
},
"request_id": "f30f2d2b-e0ee-9a47-ba5e-68b66360fe47"
}
}Image generation
Wan2.7 Image / Pro
Generate, edit, and create image sequences with wan2.7-image and wan2.7-image-pro.
POST
/
v1
/
images
/
generations
curl --request POST \
--url https://www.anyfast.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.7-image",
"prompt": "A cinematic flower shop with detailed windows and a wooden door",
"size": "2K",
"n": 1,
"watermark": false,
"thinking_mode": true
}
'{
"data": [
{
"url": "https://dashscope-result.example.com/generated.png",
"b64_json": "",
"revised_prompt": ""
}
],
"created": 1784274013,
"metadata": {
"output": {
"choices": [
{
"finish_reason": "stop",
"message": {
"content": [
{
"image": "https://dashscope-result.example.com/generated.png",
"type": "image"
}
],
"role": "assistant"
}
}
],
"finished": true
},
"usage": {
"image_count": 1,
"input_tokens": 25,
"output_tokens": 2,
"size": "2048*2048",
"total_tokens": 27
},
"request_id": "f30f2d2b-e0ee-9a47-ba5e-68b66360fe47"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional DashScope data inspection control forwarded by AnyFast.
Body
application/json
- Option 1
- Option 2
Flat OpenAI-compatible request or nested DashScope-compatible request.
For specific content requests, select the corresponding -nsfw model under the Direct resource group.
Available options:
wan2.7-image-pro, wan2.7-image, wan2.7-image-pro-nsfw, wan2.7-image-nsfw Text prompt.
Maximum string length:
5000Optional public image URL or Base64 data URI for single-image editing.
Example:
"2K"
Required range:
1 <= x <= 12Required range:
0 <= x <= 2147483647Available options:
url, b64_json Was this page helpful?