Flux dev API

flux/dev
FLUX.1 [dev] is an advanced image generation model by Black Forest Labs.
Output
$0.025 / MP (variable)
Released
Aug 18, 2025

Overview

FLUX.1 [dev] Description

Basic Information

  • Model Name: FLUX.1 [dev]
  • Developer/Creator: Black Forest Labs
  • Release Date: August 1, 2024
  • Version: 1.0
  • Model Type: Image Generation (Text-to-Image)
Overview:

FLUX.1 [dev] is a state-of-the-art image generation model that utilizes a 12 billion parameter rectified flow transformer architecture. It is designed to generate high-quality images from textual descriptions, making it a powerful tool for developers and creatives.

Key Features:
  • High-Quality Output: Produces images with exceptional detail and realism.
  • Prompt Adherence: Effectively follows complex prompts, maintaining contextual integrity.
  • Open Weights: Provides open access to model weights, encouraging research and experimentation.
  • Guidance Distillation: Utilizes advanced training techniques for improved efficiency.
  • Versatile Applications: Suitable for personal, scientific, and commercial use under specific licensing.
  • FLUX models can generate images in various sizes and resolutions, from 0.1 megapixel up to 2 megapixels.
Intended Use:

FLUX.1 [dev] is ideal for developers and artists looking to create unique visual content from text prompts. It can be used in various applications, including graphic design, advertising, content creation, and research.

API Pricing:

  • $0.0325 per gen
Language Support:

The model primarily supports English but can handle prompts in multiple languages to varying degrees.

Technical Details

Architecture:

FLUX.1 [dev] employs a rectified flow transformer architecture, which integrates multimodal and parallel diffusion transformer blocks. This design allows for efficient processing and generation of images from text.

Training Data:

The model was trained on a diverse dataset obtained from various sources, including public image repositories and curated collections, ensuring a broad representation of visual styles and contexts.

Data Source and Size:

The training dataset encompasses millions of images, allowing the model to learn from a wide range of scenarios and styles, enhancing its ability to generate diverse outputs.

Knowledge Cutoff:

The model's knowledge is current as of August 2024, reflecting the latest advancements in AI and image generation.

Diversity and Bias:

While efforts were made to include diverse data, the model may still reflect existing societal biases present in the training data. Continuous evaluation and updates are necessary to mitigate these biases.

Performance Metrics:

Key performance metrics for FLUX.1 [dev] include:

  • Accuracy: High accuracy in generating images that closely match the provided prompts.
  • Speed: Efficient inference times, making it suitable for real-time applications.
  • Robustness: Demonstrates strong performance across various input types and complexities.
Comparison to Other Models:
__wf_reserved_decorative

Usage

Code Samples/SDK:

Image to image

API Documentation: Link

Ethical Guidelines

The development of FLUX.1 [dev] was conducted with ethical considerations in mind. The model is not intended for generating harmful or misleading content, and users are expected to adhere to responsible usage guidelines.

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 100%
  • Availability (24h): 100%
  • Error rate (24h): 0%
  • End-to-end latency (24h median): 10.4s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Research & experimentation: Ideal for academic or personal creative prototyping
  • ComfyUI workflows: Local inference, image editing, and tweaking pipelines
  • Prompt engineering: Excellent fidelity for testing creative prompts
  • Diffusers integration: Plug into Python pipelines for fine-grained control

‍

How to use Flux dev API

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

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "flux/dev",
      "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/dev",
    "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/dev","prompt":"A cat holding a sign that says hello"}'

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

Flux dev API Pricing

TypePrice
Output
$0.025 / MP (variable)

Flux dev vs other models

ModelInputOutputContextBest for
Flux dev
This page
$0.025 / MP (variable)
Image generation at scale
$0.25 / 1M tokens
$60 / 1M tokens
128K tokens
Image generation at scale
$5 / 1M tokens
$30 / 1M tokens
Image generation at scale
$0.25 / gen
Image generation at scale
$0.015 / MP (variable)
Image generation at scale

Frequently asked questions

Flux dev takes image, text as input and returns image.

Flux dev is priced at $0.0325 / MP (variable).

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

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

Flux dev was built by Black Forest Labs.

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

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

Start building with Flux dev

Get API Key
1000+ models, one API.