Skip to content
Open CastalyConsole

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.

Use a Modelflare API key with https://modelflare.dev/v1. The gateway entry point is POST /v1/images/generations.

HTTP
Authorization: Bearer YOUR_MODELFLARE_API_KEY
Terminal windowbash
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
}'

OpenAI-compatible image models use prompt, n, size, and quality; use editing only when the official page documents it.

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

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.

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.

This model uses per-call billing. See the model pricing page for the current customer price, reference list price, and complete specification.

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.