Flux dev API

FLUX.1 [dev] is an advanced image generation model by Black Forest Labs.

Modalities
TextText, Image
Price
$0.025per megapixel
Model type
Image generation
Released
Aug 18, 2025

Flux dev overview

Sample Flux dev 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 dev by Black Forest Labs

Explore FLUX.1 [dev] API, a cutting-edge image generation model designed for developers, featuring high-quality outputs and open weights.

Flux dev specs

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

Basic Information

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.

Language Support:

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

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.

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

Flux dev API pricing

Flux dev pricing in US dollars
UsagePriceUnit
Image generation$0.025megapixel

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 dev 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 dev$0.025
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 dev 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/dev",
  "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 dev FAQ

What inputs and outputs does Flux dev support?

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

How much does Flux dev cost?

Flux dev costs $0.025 per Megapixel on AI/ML API, billed as you go with no subscription.

How is Flux dev billed?

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

Can Flux dev take an existing image as input?

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

Who created Flux dev?

Flux dev was built by Black Forest Labs.

How do I call Flux dev on AI/ML API?

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

Is Flux dev available through a single API key?

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

What is the Flux dev model ID?

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

Start building with Flux dev

Flux dev API

flux/dev

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/dev",
  "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."
}'