Omnigen V2 Text to Image

fal-ai/omnigen-v2
OmniGen is a unified image generation model that can generate a wide range of images from multi-modal prompts. It can be used for various tasks such as Image Editing, Personalized Image Generation, Virtual Try-On, Multi Person Generation and more!
Inference
Commercial use

Input

Additional Settings

Customize your input with more control.

Result

Idle

Waiting for your input...

Your request will cost $0.15 per per megapixel.

Logs

Readme

OmniGen V2: Advanced AI Image Generation

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.

Overview

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.

Key Features

Transform text descriptions into high-quality images with advanced capabilities:

Unified Framework

  • Text-to-image generation, image editing, and personalized generation in one model
  • No need for additional modules or preprocessing steps
  • Supports multi-modal prompts with text and image inputs

Versatile Applications

  • Image editing with natural language instructions
  • Personalized image generation using reference images
  • Virtual try-on capabilities
  • Multi-person generation
  • Subject-driven generation

Developer Experience

  • Simple REST API with comprehensive SDKs
  • Support for up to 3 input images
  • Extensive documentation and examples
Getting Started

Getting up and running with OmniGen V2 takes just a few minutes. Here's how:

  1. Install the SDK for your platform:

JavaScript/TypeScript:


Python:


  1. Configure your credentials:

JavaScript:


Python:


  1. Generate your first image:

JavaScript:


Python:


Advanced Usage

Image Editing with Reference Images


Multi-Image Generation


API Parameters

Input Parameters:

  • (required): Text description for generation or editing
  • : Array of up to 3 image URLs for editing/reference
  • : Output size (default: "square_hd")
    • Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
  • : Number of denoising steps (default: 50)
  • : Controls prompt adherence (default: 5)
  • : Controls reference image influence (default: 2)
  • : Elements to avoid in generation
  • : Sampling method (default: "euler")
  • : Number of images to generate (default: 1)
  • : Enable content filtering (default: true)
  • : Image format (default: "jpeg")
Queue-Based Processing

For asynchronous generation:


Best Practices

Maximize the quality of your generations with these proven approaches:

Write Effective Prompts

  • Use specific language for multi-image tasks (e.g., "Add the X from image 1 to Y in image 2")
  • Be descriptive about style, mood, and technical details
  • Include negative prompts to avoid unwanted elements

Optimize Parameters

  • Adjust (1-20) for prompt adherence
  • Use (1-10) to control reference image influence
  • Higher inference steps (50-100) generally improve quality

Handle Results Properly

  • Implement proper error handling for API responses
  • Use the file storage API for uploading local images
  • Monitor usage through the fal.ai dashboard
File Upload Support

Upload local images for editing or reference:


Technical Specifications

Model Architecture

  • Based on unified diffusion technology
  • Simplified architecture without additional text encoders
  • Supports arbitrarily interleaved text and image inputs

Performance

  • Fast inference times
  • Supports various output resolutions and aspect ratios
  • Automatic safety checking

Integration Options

  • Native SDKs for JavaScript and Python
  • Direct HTTP API access
  • Webhook support for async processing
Pricing and Usage
  • Cost: $0.15 per megapixel
  • Transparent, usage-based pricing
  • No subscription necessary
  • No hidden fees or minimum commitments

View detailed pricing or contact sales for enterprise solutions.

Support and Resources

We're here to help you succeed with OmniGen V2:

Documentation

Community and Support

  • Active developer community
  • Direct email support
  • Regular model updates

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.