Using FLUX 3 Image Klein on Vercel AI Gateway

Implementation guide · FLUX 3 · Black Forest Labs

Serverless
Open Weights

Vercel AI Gateway exposes FLUX 3 Image Klein through model ID bfl/flux-3-image-klein. Use the setup steps, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-10-20. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Vercel AI Gateway and generate an API key.
  2. 2
    Use the Vercel AI Gateway SDK or REST API to call bfl/flux-3-image-klein — see the documentation for request format.

Code Examples

Install
pip install openai
API key
AI_GATEWAY_API_KEY
Model ID
bfl/flux-3-image-klein

creator/model-name e.g. kwaipilot/kat-coder-pro-v2

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
    model="bfl/flux-3-image-klein",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Capabilities

Multimodal

About FLUX 3 Image Klein

FLUX 3 Image Klein is Black Forest Labs' 5.6-billion-parameter open-weights image generation and editing model, released October 15, 2026 as a smaller version of FLUX 3 Image. It supports text-to-image, image editing, up to ten reference images and bounding-box layouts, with output from 768 x 768 up to 4K. The distilled model runs 16 steps (a 50-step Klein Base is published for fine-tuning and LoRA) and fits consumer GPUs down to 8GB VRAM with the INT8 build. The BFL API serves it as flux-3-image-klein from $0.008 to $0.036 per image; weights are on Hugging Face under the FLUX Kommunity License.

Model Specs

Released2026-10-15
Parameters5.6B
ArchitectureDiffusion Transformer

Provider

Vercel AI Gateway

Vercel