AI Rate Card

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.

Modèle de baseTous les modèles de cette baseTous les modèles du fournisseurvers le fournisseur

Entrée, $/1M $0.012 / image

Sortie, $/1M $1.00

Prix, $ $0.012 / image

Contexte 128 000

Sortie max. 1

Accepte texte

Dernière vérification 04.11.2026 12:00:14 UTC

Source page du fournisseur

Alertes de prix

Connectez-vous pour suivre le prix

API

API compatible OpenAI : les SDK officiels d'OpenAI fonctionnent avec cette URL de base. Remplacez YOUR_API_KEY par votre clé du fournisseur.

URL de base de l'API
https://cloud-api.near.ai/v1
Point de terminaison
https://cloud-api.near.ai/v1/images/generations
ID du modèle
black-forest-labs/FLUX.2-klein-4B
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());
Requête (JSON)
{
  "model": "black-forest-labs/FLUX.2-klein-4B",
  "prompt": "a lighthouse at sunset",
  "n": 1,
  "size": "1024x1024"
}
Réponse (JSON)
{
  "created": 1760000000,
  "data": [
    {
      "url": "https://...",
      "b64_json": null
    }
  ]
}

L'adresse provient de la liste de modèles du fournisseur ; vérifiez-la dans sa documentation.

Documentation API du fournisseur

Source: AI Rate Card, https://airatecard.com/fr/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

Détails techniques

ID: offer:nearai|black-forest-labs/FLUX.2-klein-4B