# Recraft V4 > Recraft's latest text-to-image generation model with high-quality output, supporting various aspect ratios and custom color palettes ## Quick Reference - Model ID: recraft-v4 - Creator: Recraft AI - Status: active - Family: recraft - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Max Resolution: 1536x1536 - Input Modalities: text - Output Modalities: image ## Model Identifiers - Primary Slug: recraft-v4 ## Dates ## Tags image-generation, text-to-image ## Available Providers ### Replicate - Config Key: replicate/recraft-v4 - Provider Model ID: recraft-ai/recraft-v4 - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.04}] - source_url: https://replicate.com/recraft-ai/recraft-v4 - effective_at: 2026-03-10 ### fal.ai - Config Key: fal/recraft-v4 - Provider Model ID: fal-ai/recraft/v4/text-to-image - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.04}] - source_url: https://fal.ai/models/fal-ai/recraft/v4/text-to-image - effective_at: 2026-03-10 ## Performance Metrics Provider performance over the last 30 days. ### replicate - Median Generation Time (p50): 13767ms - 95th Percentile Generation Time (p95): 15725ms - Average Generation Time: 14161ms - Success Rate: 100.0% - Total Requests: 167 - Time to First Byte (p50): 13767ms - Time to First Byte (p95): 15725ms ## Image Gallery 4 images available for this model. - Curated examples: 4 - "A wide, cinematic shot of a sophisticated, high-end design studio at sunset. In the center of the frame, a sleek, min..." - "A hyper-realistic studio portrait of a young woman with intricate botanical patterns painted on her face in gold leaf..." - "A hyper-realistic close-up of a weathered, vintage leather traveler's backpack resting on a mossy stone in a foggy Sc..." - "A nostalgic polaroid of a cozy attic reading nook. A large chalkboard features the quote "STAY CURIOUS" in elegant cu..." ## Example Prompt The following prompt was used to generate an example image in our playground: A nostalgic polaroid of a cozy attic reading nook. A large chalkboard features the quote "STAY CURIOUS" in elegant cursive chalk lettering. A tiny capybara is curled up asleep on a patterned rug in the soft sunlight of the background. ## 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": "recraft-v4", "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: 'recraft-v4', 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="recraft-v4", prompt="A serene mountain landscape at sunset", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## About ## Overview Recraft V4 is a text-to-image foundation model developed by Recraft AI that focuses on high-fidelity graphic design and vector-like precision. It distinguishes itself from general-purpose artistic generators by prioritizing spatial control, text rendering accuracy, and the ability to strictly adhere to user-defined brand assets like specific color palettes. ## Strengths * **Text Rendering Accuracy:** The model demonstrates high reliability when generating long strings of text and complex typography within an image, reducing the common "gibberish" artifacts found in many diffusion models. * **Brand Color Adherence:** Users can specify exact hex codes or custom color palettes, and the model enforces these constraints across the entire composition rather than just using them as stylistic suggestions. * **Anatomical and Proportional Correctness:** It shows significant improvement in human anatomy, specifically in the depiction of hands and limbs, which are often failure points for generative models. * **Aspect Ratio Flexibility:** The model supports a wide range of non-standard aspect ratios, making it suitable for professional layouts such as banners, social media posts, and print media. ## Limitations * **Photorealistic Nuance:** While capable of realism, it may lack the specific atmospheric lighting and "film grain" textures found in models specialized exclusively for high-end photography. * **Inference Latency:** Due to the complexity of its design-oriented outputs, generation times may be slightly slower compared to "turbo" or highly distilled latent consistency models. * **Stylistic Bias:** The model is heavily optimized for clean, professional design aesthetics, which may require more intensive prompting to achieve gritty or abstract "analog" art styles. ## Technical Background Recraft V4 is built on a transformer-based architecture optimized for high-resolution image synthesis. Unlike models trained solely on aesthetic internet scrapes, Recraft’s training pipeline emphasizes structural understanding and graphic design principles, allowing the model to treat design elements as discrete, manageable components. ## Best For Recraft V4 is ideal for professional workflows including logo design, detailed vector-style illustrations, and marketing collateral where brand consistency is non-negotiable. Its ability to handle precise text makes it a strong candidate for UI/UX mockups and infographics. This model is available for testing and deployment through Lumenfall’s unified API and playground, allowing developers to integrate high-quality design generation into their applications with a single integration point. ## Frequently Asked Questions ### How much does Recraft V4 cost? Recraft V4 starts at $0.04 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use Recraft V4 via API? You can use Recraft V4 through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "recraft-v4". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Recraft V4? Recraft V4 is available through Replicate and fal.ai on Lumenfall. Lumenfall automatically routes requests to the best available provider. ### What is the maximum resolution for Recraft V4? Recraft V4 supports images up to 1536x1536 resolution. ## Links - Model Page: https://lumenfall.ai/models/recraft-ai/recraft-v4 - About: https://lumenfall.ai/models/recraft-ai/recraft-v4/about - Providers, Pricing & Performance: https://lumenfall.ai/models/recraft-ai/recraft-v4/providers - API Reference: https://lumenfall.ai/models/recraft-ai/recraft-v4/api - Benchmarks: https://lumenfall.ai/models/recraft-ai/recraft-v4/benchmarks - Use Cases: https://lumenfall.ai/models/recraft-ai/recraft-v4/use-cases - Gallery: https://lumenfall.ai/models/recraft-ai/recraft-v4/gallery - Playground: https://lumenfall.ai/playground?model=recraft-v4 - API Documentation: https://docs.lumenfall.ai