Customize your input with more control.
Customize your input with more control.
Hint: Drag and drop files from your computer, images from web pages, paste from clipboard (Ctrl/Cmd+V), or provide a URL.
Customize your input with more control.
Your request will cost $0.15 per megapixel.
Transform your creative vision into stunning images with OmniGen V2, a unified image generation model that handles multiple tasks within a single framework, from text-to-image generation to complex image editing.
OmniGen V2 delivers exceptional image generation capabilities through an intuitive API. Whether you're building a creative application, generating marketing assets, or exploring AI art, OmniGen V2 provides a unified approach that eliminates the need for additional modules like ControlNet or IP-Adapter.
Transform text descriptions into high-quality images with advanced capabilities:
Unified Framework
Versatile Applications
Developer Experience
Getting up and running with OmniGen V2 takes just a few minutes. Here's how:
JavaScript/TypeScript:
bashnpm install --save @fal-ai/client
Python:
bashpip install fal-client
JavaScript:
javascriptimport { fal } from "@fal-ai/client"; fal.config({ credentials: "YOUR_FAL_KEY" });
Python:
pythonimport fal_client import os os.environ["FAL_KEY"] = "YOUR_FAL_KEY"
JavaScript:
javascriptconst result = await fal.subscribe("fal-ai/omnigen-v2", { input: { prompt: "A serene mountain landscape at sunset, photorealistic style" } });
Python:
pythonresult = fal_client.subscribe("fal-ai/omnigen-v2", { "prompt": "A serene mountain landscape at sunset, photorealistic style" })
Image Editing with Reference Images
javascriptconst result = await fal.subscribe("fal-ai/omnigen-v2", { input: { prompt: "Make the dress blue", input_image_urls: ["https://your-image-url.jpg"] } });
Multi-Image Generation
javascriptconst result = await fal.subscribe("fal-ai/omnigen-v2", { input: { prompt: "Add the bird from image 1 to the desk in image 2", input_image_urls: [ "https://bird-image.jpg", "https://desk-image.jpg" ] } });
Input Parameters:
prompt (required): Text description for generation or editinginput_image_urls: Array of up to 3 image URLs for editing/referenceimage_size: Output size (default: "square_hd")
num_inference_steps: Number of denoising steps (default: 50)text_guidance_scale: Controls prompt adherence (default: 5)image_guidance_scale: Controls reference image influence (default: 2)negative_prompt: Elements to avoid in generationscheduler: Sampling method (default: "euler")num_images: Number of images to generate (default: 1)enable_safety_checker: Enable content filtering (default: true)output_format: Image format (default: "jpeg")For asynchronous generation:
javascript// Submit request const { request_id } = await fal.queue.submit("fal-ai/omnigen-v2", { input: { prompt: "Your prompt here" }, webhookUrl: "https://optional.webhook.url/for/results" }); // Check status const status = await fal.queue.status("fal-ai/omnigen-v2", { requestId: request_id, logs: true }); // Get result const result = await fal.queue.result("fal-ai/omnigen-v2", { requestId: request_id });
Maximize the quality of your generations with these proven approaches:
Write Effective Prompts
Optimize Parameters
text_guidance_scale (1-20) for prompt adherenceimage_guidance_scale (1-10) to control reference image influenceHandle Results Properly
Upload local images for editing or reference:
javascriptimport { fal } from "@fal-ai/client"; const file = new File([imageData], "image.jpg", { type: "image/jpeg" }); const url = await fal.storage.upload(file); const result = await fal.subscribe("fal-ai/omnigen-v2", { input: { prompt: "Edit this image", input_image_urls: [url] } });
Model Architecture
Performance
Integration Options
View detailed pricing or contact sales for enterprise solutions.
We're here to help you succeed with OmniGen V2:
Documentation
Community and Support
Get started with OmniGen V2 today and experience the power of unified image generation. Create your API key at fal.ai to begin generating amazing images with our API.