# Wan 2.7 Pro > Alibaba's Wan 2.7 Pro image generation and editing model with higher-quality outputs and support for 4K image generation ## Quick Reference - Model ID: wan-2.7-pro - Creator: Alibaba - Status: active - Family: wan - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Max Resolution: 4096x4096 - Max Output Images: 4 - Max Input Images: 9 - Input Modalities: text, image - Output Modalities: image - Supported Modes: Text to Image, Image Edit ## API Parameters The compiled parameter schema for this model is available via the API: `GET /v1/models/wan-2.7-pro?schema=true`. ### Core Parameters - `prompt` (string) — REQUIRED: Text prompt for image generation. Modes: Text to Image ### Size & Layout - `size` (string): Image dimensions as WxH pixels (e.g. "1024x1024") or aspect ratio (e.g. "16:9"). Modes: Text to Image, Image Edit - `aspect_ratio` (string): Aspect ratio of the output image (e.g. "16:9", "1:1"). Modes: Text to Image, Image Edit - `resolution` (string): Output resolution tier (e.g. "1K", "4K"). Modes: Text to Image, Image Edit ### Media Inputs - `image` (file) — REQUIRED: Input image(s) to edit. Modes: Image Edit ### Output & Format - `response_format` (string): How to return the image. Default: url. Values: url, b64_json. Modes: Text to Image, Image Edit - `output_format` (string): Output image format. Values: png, jpeg, gif, webp, avif. Modes: Text to Image, Image Edit - `output_compression` (integer): Compression level for lossy formats (JPEG, WebP, AVIF). Modes: Text to Image, Image Edit - `n` (integer): Number of images to generate. Default: 1. Modes: Text to Image, Image Edit ## Model Identifiers - Primary Slug: wan-2.7-pro - Aliases: wan2.7-image-pro ## Dates - Released: April 2026 ## Tags image-generation, text-to-image, image-editing, multi-image ## Available Providers ### Alibaba Cloud - Config Key: alibaba/wan-2.7-pro-image - Provider Model ID: wan2.7-image-pro - Pricing: $0.075/image ## Performance Metrics Provider performance over the last 30 days. ### alibaba - Median Generation Time (p50): 11444ms - 95th Percentile Generation Time (p95): 36440ms - Average Generation Time: 18991ms - Success Rate: 57.7% - Total Requests: 26 - Time to First Byte (p50): 10853ms - Time to First Byte (p95): 35708ms ## Image Gallery 4 images available for this model. Browse all at https://lumenfall.ai/models/alibaba/wan-2.7-pro/gallery ### Curated Examples - [A wide-angle cinematic shot of a luxury boutique storefront at dusk, where the name "Wan 2.7 Pro"...](https://assets.lumenfall.ai/CVRXJUYrhmU-KbWWoBhyfJ5bLaZoN_ynUBJGFtXKrBA/rs:fit:1500:1500/plain/gs://lumenfall-prod-assets/ta7l5vzai6n4tl3bkl0n2skpu4fm@jpeg) - [A medium shot of an elderly artisan in a sun-drenched Mediterranean workshop, meticulously carvin...](https://assets.lumenfall.ai/eBvnk-lx2fcKdwIgGu5spqtxBoJQmVME6LNVWvz4HzE/rs:fit:1500:1500/plain/gs://lumenfall-prod-assets/44rz35b2api1l1vd9ecy4p3ewo4z@jpeg) - [A hyper-realistic close-up of a weathered, wooden artisan’s workbench scattered with vintage watc...](https://assets.lumenfall.ai/by-MZ0l6P0TcSZ4IQJiwRLrnB7il0I8oFMGo62EQvmA/rs:fit:1500:1500/plain/gs://lumenfall-prod-assets/f488rylcfntapcxesmsko6o8x94c@jpeg) - [A beautiful hand-painted ceramic bowl sitting on a rustic wooden table, filled with fresh lemons....](https://assets.lumenfall.ai/ZW1kU9rscHXZXlktDysZbi4vSx_JgpU9d49LKmVhccw/rs:fit:1500:1500/plain/gs://lumenfall-prod-assets/5wu0rtotalv5t9fug7rmjtrbtscd@jpeg) ## Example Prompt The following prompt was used to generate an example image in our playground: A beautiful hand-painted ceramic bowl sitting on a rustic wooden table, filled with fresh lemons. The text "Zesty & Sweet" is elegantly embossed in gold script on the side of the bowl. In the soft-focus garden background, a capybara naps in the sun. ## Code Examples ### Text to Image (/v1/images/generations) #### 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-pro", "prompt": "", "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-pro', prompt: '', 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-pro", prompt="", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ### Image Edit (/v1/images/edits) #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/edits \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -F "model=wan-2.7-pro" \ -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-pro', 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-pro", 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 Pro cost? Wan 2.7 Pro starts at $0.075 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use Wan 2.7 Pro via API? You can use Wan 2.7 Pro through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "wan-2.7-pro". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Wan 2.7 Pro? Wan 2.7 Pro 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 Pro? Wan 2.7 Pro supports images up to 4096x4096 resolution. ## Links - Model Page: https://lumenfall.ai/models/alibaba/wan-2.7-pro - About: https://lumenfall.ai/models/alibaba/wan-2.7-pro/about - Providers, Pricing & Performance: https://lumenfall.ai/models/alibaba/wan-2.7-pro/providers - API Reference: https://lumenfall.ai/models/alibaba/wan-2.7-pro/api - Benchmarks: https://lumenfall.ai/models/alibaba/wan-2.7-pro/benchmarks - Use Cases: https://lumenfall.ai/models/alibaba/wan-2.7-pro/use-cases - Gallery: https://lumenfall.ai/models/alibaba/wan-2.7-pro/gallery - Playground: https://lumenfall.ai/playground?model=wan-2.7-pro - API Documentation: https://docs.lumenfall.ai