Flux Schnell API

FLUX.1 [schnell] is a cutting-edge text-to-image model for developers.

Modalities
TextText, Image
Price
$0.003per Megapixel
Model type
Image generation
Released
Oct 13, 2025

Flux Schnell overview

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

Explore FLUX.1 [schnell] API, a revolutionary fast AI model for high-quality image generation from text.

Flux Schnell specs

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

Basic Information

Overview:

FLUX.1 [schnell] is a state-of-the-art text-to-image generation model designed to create high-quality images from textual descriptions. With a robust architecture of 12 billion parameters, it leverages advanced techniques to produce images that rival those generated by leading closed-source models.

Key Features:

  • Generates high-quality images in just 1 to 4 steps.
  • Utilizes latent adversarial diffusion distillation for enhanced output quality.
  • Capable of competitive prompt following, matching the performance of proprietary alternatives.
  • Open-source under the Apache 2.0 license, facilitating personal, scientific, and commercial use.

Intended Use:

FLUX.1 [schnell] is ideal for applications in graphic design, digital art, and rapid prototyping where high-quality image generation is required. It is suitable for both individual creators and commercial developers looking to integrate advanced image synthesis capabilities into their projects.

Language Support:

The model primarily supports English but can handle text prompts in multiple languages, depending on the complexity of the input.

Architecture:

FLUX.1 [schnell] employs a hybrid architecture combining multimodal and parallel diffusion transformer blocks. This innovative structure allows for effective flow matching and enhances the model's ability to generate detailed images that align closely with user prompts.

Use cases

Generate high-quality visuals quickly for previews and concept iteration.

Thanks to its light weight and speed, ideal for on-device or serverless inference.

Produce series of images efficiently with minimal compute.

Build integrations in ComfyUI, JS/TS workflows, or Diffusers pipelines.

Flux Schnell API pricing

Flux Schnell pricing in US dollars
UsagePriceUnit
Image generation$0.003per 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 Schnell 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 Schnell$0.003
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 Schnell 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/schnell",
  "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 Schnell FAQ

What inputs and outputs does Flux Schnell support?

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

How much does Flux Schnell cost?

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

How is Flux Schnell billed?

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

Can Flux Schnell take an existing image as input?

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

Who created Flux Schnell?

Flux Schnell was built by Black Forest Labs.

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

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

Is Flux Schnell available through a single API key?

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

What is the Flux Schnell model ID?

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

Start building with Flux Schnell

Flux Schnell API

flux/schnell

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