# Wan 2.5 (Preview) > Alibaba's text-to-image and image-to-image generation model from the Wan AI suite, offering high-quality visual generation capabilities ## Quick Reference - Model ID: wan-2.5-preview - Creator: Alibaba - Status: active - Family: wan - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Input Modalities: text, image - Output Modalities: image ## Model Identifiers - Primary Slug: wan-2.5-preview ## Dates ## Tags image-generation, text-to-image, image-editing ## Available Providers ### fal.ai - Config Key: fal/wan-2.5-preview - Provider Model ID: fal-ai/wan-25-preview/text-to-image - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.05}] - source_url: https://fal.ai/models/fal-ai/wan-25-preview/text-to-image - effective_at: 2025-12-29 ## Image Gallery 1 images available for this model. - Curated examples: 1 - "A wide cinematic shot of a sophisticated, high-end design studio at sunset, with warm amber light catching a sleek br..." ## Example Prompt The following prompt was used to generate an example image in our playground: A cozy indie bookstore storefront with a large gold-leaf sign on the glass that reads "THE NOVEL NOOK" in elegant serif typography. Through the window, a capybara is calmly sitting on a plush rug by the fireplace while a customer browses shelves. ## 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.5-preview", "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.5-preview', 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.5-preview", 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.5-preview" \ -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.5-preview', 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.5-preview", 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) ## About ## Overview Wan 2.5 (Preview) is a high-performance image generation model developed by Alibaba’s Wan AI team. It is designed for both text-to-image and image-to-image workflows, focusing on high-fidelity visual output and nuanced prompt adherence. This preview release represents Alibaba's latest advancement in generative modeling, aiming to compete with leading diffusion models by balancing computational efficiency with aesthetic quality. ## Strengths * **Prompt Adherence:** The model demonstrates a strong ability to follow complex, multi-part descriptive prompts, accurately placing objects and maintaining specified color palettes. * **Image-to-Image Versatility:** Beyond generating images from scratch, it excels at taking reference images and applying stylistic or structural modifications while preserving the essence of the source material. * **Compositional Detail:** It is particularly effective at rendering scenes with realistic lighting, shadows, and textures, reducing the common "plastic" look sometimes found in earlier diffusion iterations. * **Text Rendering:** Its architecture shows improved reliability in rendering legible text within generated images compared to older generation models in the same class. ## Limitations * **Sensitivity to Short Prompts:** As a preview model, it often performs best with detailed descriptions; very brief or ambiguous prompts may lead to generic or unpredictable results. * **Anatomical Accuracy:** Like many current diffusion models, it can occasionally struggle with complex human anatomy, such as intricate hand positions or high-action poses, requiring iterative prompting to resolve. * **Regional Latency:** Depending on the provider infrastructure, inference times may be slightly higher than lightweight distilled models, making it less suitable for real-time applications. ## Technical Background Wan 2.5 is part of the Wan AI suite and utilizes a diffusion-based architecture optimized for high-resolution synthesis. The model is trained on a massive dataset of high-quality image-text pairs, employing specific training techniques to enhance spatial reasoning and visual consistency. While specific architectural whitepapers for this preview release are forthcoming, it follows the transformer-based diffusion paradigm (DiT) that has become the standard for modern high-performance generative AI. ## Best For * **Creative Asset Generation:** Ideal for designers needing concept art, marketing visuals, or high-fidelity backgrounds with precise control. * **Style Transfer and Editing:** Strong for workflows where a user needs to transform an existing image into a different aesthetic or update specific elements of a composition. * **Prototyping:** Useful for developers building applications that require high-quality visual outputs for user-facing content. Wan 2.5 (Preview) is available for immediate testing through **Lumenfall’s unified API and interactive playground**, allowing you to integrate it into your production environment or experiment with its capabilities alongside other leading models. ## Frequently Asked Questions ### How much does Wan 2.5 (Preview) cost? Wan 2.5 (Preview) starts at $0.05 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use Wan 2.5 (Preview) via API? You can use Wan 2.5 (Preview) through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "wan-2.5-preview". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Wan 2.5 (Preview)? Wan 2.5 (Preview) is available through fal.ai on Lumenfall. Lumenfall automatically routes requests to the best available provider. ## Links - Model Page: https://lumenfall.ai/models/alibaba/wan-2.5-preview - About: https://lumenfall.ai/models/alibaba/wan-2.5-preview/about - Providers, Pricing & Performance: https://lumenfall.ai/models/alibaba/wan-2.5-preview/providers - API Reference: https://lumenfall.ai/models/alibaba/wan-2.5-preview/api - Benchmarks: https://lumenfall.ai/models/alibaba/wan-2.5-preview/benchmarks - Use Cases: https://lumenfall.ai/models/alibaba/wan-2.5-preview/use-cases - Gallery: https://lumenfall.ai/models/alibaba/wan-2.5-preview/gallery - Playground: https://lumenfall.ai/playground?model=wan-2.5-preview - API Documentation: https://docs.lumenfall.ai