FLUX.2-klein-4B · nearai
The FLUX.2 [klein] model family are our fastest image models to date. FLUX.2 [klein] unifies generation and editing in a single compact architecture, delivering state-of-the-art quality with end-to-end inference in as low as under a second. Built for applications that require real-time image generation without sacrificing quality.
Eingabe, $/1M $0.012 / Bild
Ausgabe, $/1M $1.00
Preis, $ $0.012 / Bild
Kontext 128 000
Max. Ausgabe 1
Akzeptiert Text
Zuletzt geprüft 04.11.2026 12:00:14 UTC
Quelle Seite des Anbieters
Preisalarme
API
OpenAI-kompatible API: Die offiziellen OpenAI-SDKs funktionieren mit dieser Basis-URL. Ersetzen Sie YOUR_API_KEY durch Ihren Schlüssel vom Anbieter.
| API-Basis-URL | |
|---|---|
| Endpunkt | |
| Modell-ID | |
curl
curl https://cloud-api.near.ai/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "black-forest-labs/FLUX.2-klein-4B", "prompt": "a lighthouse at sunset", "n": 1, "size": "1024x1024"}'Python
import requests
r = requests.post(
"https://cloud-api.near.ai/v1/images/generations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "black-forest-labs/FLUX.2-klein-4B",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
},
)
print(r.json())JavaScript
const r = await fetch("https://cloud-api.near.ai/v1/images/generations", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "black-forest-labs/FLUX.2-klein-4B",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}),
});
console.log(await r.json());Anfrage (JSON)
{
"model": "black-forest-labs/FLUX.2-klein-4B",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}Antwort (JSON)
{
"created": 1760000000,
"data": [
{
"url": "https://...",
"b64_json": null
}
]
}Die Adresse stammt aus der Modellliste des Anbieters; bitte mit seiner Dokumentation abgleichen.
Source: AI Rate Card, https://airatecard.com/de/c/offer%3Anearai%7Cblack-forest-labs/FLUX.2-klein-4B, prices checked 2026-11-04; seller's page: https://near.ai/models/black-forest-labs/FLUX.2-klein-4B
Technische Details
ID: offer:nearai|black-forest-labs/FLUX.2-klein-4B