Flux Schnell overview
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
- Developer/Creator: Black Forest Labs
- 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.
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
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.003 | per 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.
| Model | Per Megapixel |
|---|---|
| $0.003 | |
| $0.014 | |
| $0.015 | |
| $0.015 | |
| $0.05 |
How to use the Flux Schnell API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport 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."
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"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."
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = 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 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."
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
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.



.webp)