Now offering crypto payments →

Model APIs · Image generation

FLUX.1 Kontext Pro API

Run FLUX.1 Kontext Pro by Black Forest Labs through one OpenAI-compatible endpoint. Pay per use against your GPU.ai balance — no instance to rent, no deployment to manage.

Available now
Pricing

FLUX.1 Kontext Pro API pricing

Live catalog rates, billed per use against your GPU.ai balance. No subscriptions, no minimums.

TierRate
Serverless
Per output megapixel: $0.040

Rates are read hourly from the live model catalog and metered per request.

Quick start

Call FLUX.1 Kontext Pro in one request

Any OpenAI SDK works — set the base URL to https://api.gpu.ai/v1 and use your GPU.ai API key.

curl
curl https://api.gpu.ai/v1/images/generations \
  -H "Authorization: Bearer $GPUAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpuai/flux.1-kontext-pro",
    "prompt": "A watercolor painting of a data center at sunrise"
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.gpu.ai/v1",
    api_key="YOUR_GPUAI_API_KEY",
)

image = client.images.generate(
    model="gpuai/flux.1-kontext-pro",
    prompt="A watercolor painting of a data center at sunrise",
)
print(image.data[0].url)
Details

FLUX.1 Kontext Pro on GPU.ai

Model idgpuai/flux.1-kontext-pro
ModalityImage generation
AuthorBlack Forest Labs
Context window
Streaming
Aliases
FAQ

FLUX.1 Kontext Pro API questions

How much does the FLUX.1 Kontext Pro API cost?

FLUX.1 Kontext Pro on GPU.ai currently costs $0.040 (per output megapixel). There are no subscriptions or minimums — usage is billed against your GPU.ai balance as you go.

Is the FLUX.1 Kontext Pro API OpenAI-compatible?

Yes. Point any OpenAI SDK at https://api.gpu.ai/v1 with a GPU.ai API key and request model "gpuai/flux.1-kontext-pro" — no proprietary client needed.

How does billing work?

Generation models bill per output (per image, or per second of video) at the listed rate, metered per request against your GPU.ai balance.