Flux 2 LoRA API

FLUX 2 with LoRA support for custom style and subject fine-tuning in text-to-image generation.

Modalities
TextImage
Price
$0.021per Megapixel
Model type
Image generation
Released
Nov 26, 2025

Flux 2 LoRA overview

Sample Flux 2 LoRA image generated through AI/ML API: A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lette

Flux 2 LoRA by Black Forest Labs

Its ability to combine the speed with the precision of LoRA fine-tuning sets it apart as a leading model in AI-powered image generation technology.

Flux 2 LoRA specs

Model ID
flux-2/lora
Developer
Black Forest Labs
Input
Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

Flux 2 LoRA is an advanced image generation system built on the FLUX.2 model architecture, designed to deliver high-quality visuals while enabling deep customization through Low-Rank Adaptation (LoRA). Rather than retraining an entire foundation model, Flux 2 LoRA allows creators and developers to apply lightweight LoRA adapters that modify style, character identity, or visual domain with minimal computational overhead.

This approach makes Flux 2 LoRA ideal for workflows that require visual consistency, personalization, and scalability, from creative production to commercial image pipelines. The platform includes two distinct but complementary variants: Flux 2 LoRA for image generation and Flux 2 LoRA Edit for image transformation and editing.

Image Generation Capabilities

Flux 2 LoRA API delivers detailed, high-resolution images with strong prompt adherence and visual coherence. It supports single or multiple reference images, allowing the model to preserve identity, structure, and composition across generations. This makes it particularly effective for character design, branded visuals, and thematic art collections.

What Is Flux 2 LoRA Edit?

Flux 2 LoRA Edit API is a dedicated image-to-image editing model built on the same Flux 2 foundation. Instead of generating images from scratch, this variant takes an existing image as input and applies controlled transformations guided by LoRA adapters and text instructions. It allows users to restyle, enhance, or modify images while maintaining the underlying structure, subject identity, and spatial layout. This makes it suitable for professional editing workflows where precision and consistency are essential.

Text-to-Image Generation

Flux 2 LoRA excels at generating visuals from natural language prompts, with LoRA adapters enabling refined control over stylistic and domain-specific output.

Style & Character Customization

LoRA adapters allow users to embed custom styles or characters into the generation pipeline, producing consistent visuals over multiple runs.

Multi-Image Reference Support

Upload one or more reference images to guide generation with precise identity, pose, and lighting preservation.

Why Choose Flux 2 LoRA?

Flux 2 LoRA stands out for its ability to combine high-end image quality with modular customization. The LoRA-based design dramatically reduces the cost and complexity of personalization, making advanced visual control accessible without deep infrastructure requirements.

The availability of both generation and editing variants allows teams to maintain consistent visual identity across the entire creative pipeline. Whether producing original artwork or refining existing assets, Flux 2 LoRA offers a scalable and future-proof solution.

Use cases

  • Brand-consistent marketing and product image generation.
  • Specialized content creation for entertainment, e-commerce, and media.
  • Rapid prototyping of visual concepts with custom fine-tuning.
  • Photorealistic imagery generation for advertising and design.
  • Multi-image compositional art and style transfers.
  • UI/UX prototyping requiring precise text and infographic rendering.

Flux 2 LoRA API pricing

Flux 2 LoRA pricing in US dollars
UsagePriceUnit
Image generation$0.021per Megapixel

The final price depends on request parameters such as resolution or duration.

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Flux 2 LoRA vs other image models: prices

AI/ML API rates for 5 models, per Megapixel.

AI/ML API prices in USD per Megapixel
ModelPer Megapixel
Flux 2 LoRA$0.021
FLUX.2 Klein 4B$0.014
FLUX.2 Klein 9B$0.015
FLUX.2 Klein 9B Preview$0.015
FLUX.2 Flex$0.05

How to use the Flux 2 LoRA API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "flux-2/lora",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'

Related articles

All posts

Flux 2 LoRA FAQ

What inputs and outputs does Flux 2 LoRA support?

Flux 2 LoRA takes image, text as input and returns image.

How much does Flux 2 LoRA cost?

Flux 2 LoRA costs $0.021 per Megapixel on AI/ML API, billed as you go with no subscription.

How is Flux 2 LoRA billed?

Flux 2 LoRA is billed per generation, a fixed charge per output rather than by prompt length.

Can Flux 2 LoRA take an existing image as input?

Yes, Flux 2 LoRA accepts image input as well as a text prompt.

Who created Flux 2 LoRA?

Flux 2 LoRA was built by Black Forest Labs.

How do I call Flux 2 LoRA on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with flux-2/lora as the model id.

Is Flux 2 LoRA available through a single API key?

Yes. Flux 2 LoRA is served through AI/ML API, so the same key and endpoint format used for other models applies.

What does LoRA support mean for this model?

Flux 2 LoRA adds LoRA support for custom style and subject fine-tuning in text-to-image generation.

What is the Flux 2 LoRA model ID?

Use flux-2/lora as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with Flux 2 LoRA

Flux 2 LoRA API

flux-2/lora

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "flux-2/lora",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'