# Wan 2.7 > Alibaba's Wan 2.7 image generation and editing model for text-to-image, reference-guided generation, and instruction-based image edits ## Quick Reference - Model ID: wan-2.7 - Creator: Alibaba - Status: active - Family: wan - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Max Resolution: 2048x2048 - Max Output Images: 4 - Max Input Images: 9 - Input Modalities: text, image - Output Modalities: image ## Model Identifiers - Primary Slug: wan-2.7 - Aliases: wan2.7-image ## Dates - Released: April 2026 ## Tags image-generation, text-to-image, image-editing, multi-image ## Available Providers ### Alibaba Cloud - Config Key: alibaba/wan-2.7-image - Provider Model ID: wan2.7-image - Pricing: $0.030/image ## Image Gallery 4 images available for this model. - Curated examples: 4 - "A wide cinematic shot of a high-end, minimalist boutique storefront at dusk. The shop is built from dark wood and sea..." - "A meticulous close-up of an elderly artisan's hands carving intricate floral patterns into a block of dark walnut woo..." - "A meticulously detailed close-up of an elderly artisan's hands carving an intricate floral pattern into a piece of da..." - "A sun-drenched artisan bakery storefront with an elegant gold-leaf sign on the window that reads "FLOUR & BLOOM" in f..." ## Example Prompt The following prompt was used to generate an example image in our playground: A sun-drenched artisan bakery storefront with an elegant gold-leaf sign on the window that reads "FLOUR & BLOOM" in flowing luxury calligraphy. A small, calm capybara sits quietly on the sidewalk next to a basket of baguettes. 1:1, cinematic. ## Code Examples ### Text to Image (Generation) #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/generations \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan-2.7", "prompt": "A serene mountain landscape at sunset", "size": "1024x1024" }' # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.generate({ model: 'wan-2.7', prompt: 'A serene mountain landscape at sunset', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.generate( model="wan-2.7", prompt="A serene mountain landscape at sunset", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ### Image Editing #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=wan-2.7" \ -F "image=@source.png" \ -F "prompt=Add a starry night sky to this image" \ -F "size=1024x1024" # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; import fs from 'fs'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.edit({ model: 'wan-2.7', image: fs.createReadStream('source.png'), prompt: 'Add a starry night sky to this image', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.edit( model="wan-2.7", image=open("source.png", "rb"), prompt="Add a starry night sky to this image", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## Frequently Asked Questions ### How much does Wan 2.7 cost? Wan 2.7 starts at $0.03 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use Wan 2.7 via API? You can use Wan 2.7 through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "wan-2.7". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Wan 2.7? Wan 2.7 is available through Alibaba Cloud on Lumenfall. Lumenfall automatically routes requests to the best available provider. ### What is the maximum resolution for Wan 2.7? Wan 2.7 supports images up to 2048x2048 resolution. ## Links - Model Page: https://lumenfall.ai/models/alibaba/wan-2.7 - About: https://lumenfall.ai/models/alibaba/wan-2.7/about - Providers, Pricing & Performance: https://lumenfall.ai/models/alibaba/wan-2.7/providers - API Reference: https://lumenfall.ai/models/alibaba/wan-2.7/api - Benchmarks: https://lumenfall.ai/models/alibaba/wan-2.7/benchmarks - Use Cases: https://lumenfall.ai/models/alibaba/wan-2.7/use-cases - Gallery: https://lumenfall.ai/models/alibaba/wan-2.7/gallery - Playground: https://lumenfall.ai/playground?model=wan-2.7 - API Documentation: https://docs.lumenfall.ai