Flux Schnell API

flux/schnell
FLUX.1 [schnell] is a cutting-edge text-to-image model for developers.
Output
$0.003 / MP (variable)
Released
Oct 13, 2025

Overview

FLUX.1 [schnell] Description

Basic Information

  • Model Name: FLUX.1 [schnell]
  • Developer/Creator: Black Forest Labs
  • Release Date: August 2, 2024
  • Version: 1.0
  • Model Type: Text-to-Image Generation
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.

API Pricing:

  • 0.0039 per gen
Language Support:

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

Technical Details

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.

Training Data:

The model was trained on a diverse dataset sourced from various online platforms, ensuring a broad representation of visual styles and concepts. The exact size of the dataset is not specified, but it includes millions of images paired with descriptive text.

Data Source and Size:

FLUX.1 [schnell] utilizes a large-scale dataset that emphasizes diversity, which is crucial for generating a wide range of images. The model's training data is designed to cover various contexts, styles, and scenarios to improve its robustness.

Knowledge Cutoff:

The model's knowledge is current as of August 2024, which impacts its understanding of contemporary references and trends.

Diversity and Bias:

While efforts have been made to ensure a diverse training dataset, the model may still reflect existing societal biases inherent in the data. Users are encouraged to apply ethical considerations when deploying the model.

Performance Metrics:
  • Accuracy: The model's output quality is comparable to leading models like DALL-E and Midjourney, achieving high fidelity in image generation.
  • Speed: It can generate images in approximately 23 seconds, even on machines without GPUs, making it suitable for real-time applications.
  • Robustness: FLUX.1 [schnell] demonstrates strong performance across various input types, effectively handling complex prompts and generating diverse outputs.

Usage

Code Samples:

API Documentation: Link

Ethical Guidelines

FLUX.1 [schnell] incorporates ethical guidelines to prevent misuse, including:

  • Prohibiting the generation of misleading or harmful content.
  • Restrictions against creating non-consensual or exploitative imagery.
  • Guidelines to avoid generating content that could harm individuals or groups.

Licensing

License Type:

FLUX.1 [schnell] is released under the Apache 2.0 license, allowing for both commercial and non-commercial use, provided that users adhere to the ethical guidelines outlined by Black Forest Labs.

Uptime and performance

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

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

Use cases

Fast prototyping

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

Edge deployment

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

Batch image generation

Produce series of images efficiently with minimal compute.

Open-source creative tools

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

‍

How to use Flux Schnell API

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

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

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

Flux Schnell API Pricing

TypePrice
Output
$0.003 / MP (variable)

Flux Schnell vs other models

ModelInputOutputContextBest for
Flux Schnell
This page
$0.003 / 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 Schnell takes image, text as input and returns image.

Flux Schnell is priced at $0.0039 / MP (variable).

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

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

Flux Schnell was built by Black Forest Labs.

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

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

Start building with Flux Schnell

Get API Key
1000+ models, one API.