Last refreshed 2026-05-22. Next refresh: weekly.
Why use FLUX.1 Kontext [pro] on Vercel AI Gateway?
Vercel AI Gateway offers FLUX.1 Kontext [pro] with competitive pricing. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.
Compare FLUX.1 Kontext [pro] across 2 providers to find the best fit for your use caseSetup recipe
Python + curlpip install openaiexport AI_GATEWAY_API_KEY=...import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],bfl/flux-kontext-proRequest example
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-kontext-pro",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Use provider model ID "bfl/flux-kontext-pro", not the LLMReference slug "flux.1-kontext-pro".
- creator/model-name e.g. kwaipilot/kat-coder-pro-v2
- The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.
Compare FLUX.1 Kontext [pro] Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Prodia | — | — |
| Vercel AI Gateway | — | — |
Pricing
| Type | Rate |
|---|---|
| Image input | $0.04 |
Capabilities
About FLUX.1 Kontext [pro]
FLUX.1 Kontext [pro] is Black Forest Labs' context-aware image generation and editing model. Unlike standard text-to-image models, Kontext accepts both text prompts and reference images, enabling consistent character and style transfer, precise in-context editing, and multi-turn refinement. Released in May 2025 as part of the Kontext suite, available commercially via API.
FAQ
What is the context window for FLUX.1 Kontext [pro] on Vercel AI Gateway?
FLUX.1 Kontext [pro] supports a 512 token context window on Vercel AI Gateway.
What API model ID do I use for FLUX.1 Kontext [pro] on Vercel AI Gateway?
Use the model ID bfl/flux-kontext-pro when calling Vercel AI Gateway's API.
Who created FLUX.1 Kontext [pro]?
FLUX.1 Kontext [pro] was created by Black Forest Labs as part of the FLUX.1 model family.
Is FLUX.1 Kontext [pro] open source?
FLUX.1 Kontext [pro] is not open source; the seed data lists it as proprietary.