Bfl.aiFree

Flux 2 Flex

API model name: flux-2-flex

Flux 2 Flex is Bfl.ai's image generation model, served on the Api.Airforce unified API. It is available on the free tier at no per-token cost. Access it through the OpenAI-compatible API with one key, alongside 65+ other models on Api.Airforce.

Pricing

Input / 1M tokens
Free
Output / 1M tokens
Free

Specifications

Provider
Bfl.ai
Type
image generation model

Capabilities

Streaming

Use Flux 2 Flex via the API

OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass flux-2-flex as the model.

cURL
curl https://api.airforce/v1/images/generations \
  -H "Authorization: Bearer $AIRFORCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-2-flex",
    "prompt": "a red panda coding"
  }'
Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
img = client.images.generate(model="flux-2-flex", prompt="a red panda coding")
print(img.data[0].url)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const img = await client.images.generate({ model: "flux-2-flex", prompt: "a red panda coding" });
console.log(img.data[0].url);

Live performance

Real throughput and latency across the suppliers serving this model.

Loading live metrics…

Related models