Flux 2 LoRA API

flux-2/lora
Flux 2 LoRA provides a robust, efficient, and customizable text-to-image solution particularly suited for production workflows.
Output
$0.0273 / MP (variable)
Released
Nov 26, 2025

Overview

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.

API Pricing

  • $0.0273 per Megapixel

Code Sample

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.

API Pricing

  • $0.0273 per Megapixel (1 MP input + N MP output).

Code Sample

Core Capabilities

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.

‍

How to use Flux 2 LoRA API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to flux-2/lora.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "flux-2/lora",
      "prompt": "A cat holding a sign that says hello"
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/images/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "flux-2/lora",
    "prompt": "A cat holding a sign that says hello"
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-2/lora","prompt":"A cat holding a sign that says hello"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Flux 2 LoRA API Pricing

TypePrice
Input
Output
$0.0273 / MP (variable)

Flux 2 LoRA vs other models

ModelInputOutputContextBest for
Flux 2 LoRA
This page
$0.0273 / MP (variable)
Image generation at scale
$0.325 / 1M tokens
$78 / 1M tokens
128K tokens
Image generation at scale
$6.5 / 1M tokens
$39 / 1M tokens
Image generation at scale
$0.325 / gen
Image generation at scale
$0.0195 / MP (variable)
Image generation at scale

Frequently asked questions

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

Flux 2 LoRA is priced at $0.0273 / MP (variable).

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

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

Flux 2 LoRA was built by Black Forest Labs.

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

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

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

Start building with Flux 2 LoRA

Get API Key
1000+ models, one API.