Image
wan2.7-image API
Call wan2.7-image through Modelflare with the exact model ID shown on this page.
Use the exact model ID wan2.7-image. The model field must match this page exactly.
Authentication and endpoint
Section titled “Authentication and endpoint”Use a Modelflare API key with https://modelflare.dev/v1. The gateway entry point is POST /v1/images/generations.
Authorization: Bearer YOUR_MODELFLARE_API_KEYGenerate an image
Section titled “Generate an image”curl https://modelflare.dev/v1/images/generations \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan2.7-image", "prompt": "A white cat runs through a neon-lit street in the rain", "size": "1024x1024", "n": 1 }'Request notes
Section titled “Request notes”OpenAI-compatible image models use prompt, n, size, and quality; use editing only when the official page documents it.
Request parameters
Section titled “Request parameters”Wan2.7 Image uses the Images API. Use the flat OpenAI-compatible shape for simple calls; use input.messages plus parameters for multi-image, region editing, and sequential generation.
| Field | Required | Notes |
|---|---|---|
model |
Yes | wan2.7-image |
prompt |
Yes | Generation or editing instruction |
image |
No | Single image URL/Base64; use nested messages for multiple images |
size |
No | 1K / 2K; Pro text-to-image may support 4K |
n |
No | Output count; follow the official limit for sequential mode |
thinking_mode |
No | Thinking mode when no image is supplied |
watermark |
No | Whether to add a watermark |
parameters.prompt_extend |
No | Set false when this dedicated model contract requires it |
parameters.bbox_list |
No | Interactive editing region boxes |
parameters.enable_sequential |
No | Enable sequential generation |
Response and input limits
Section titled “Response and input limits”Use the flat shape for simple calls; use input.messages and parameters for multi-image, region editing, and sequential generation. Output count, size, and region boxes must follow the model’s combination limits.
Supported scope
Section titled “Supported scope”This page covers Modelflare model generation and editing calls. Search or map enrichment, voice management, and element-library management are resource APIs outside this public model-call surface and are not required request fields.
Pricing and billing
Section titled “Pricing and billing”This model uses per-call billing. See the model pricing page for the current customer price, reference list price, and complete specification.
Variants
Section titled “Variants”| Model ID | Difference |
|---|---|
wan2.7-image |
The model documented on this page. |
wan2.7-image-nsfw |
NSFW variant. Same endpoint, request contract, and billing unit; only the model ID changes. See the pricing page for price and availability. |