Skip to content
youbot
Flux.1 Kontext cover

Flux.1 Kontext API

flux-kontext
Black Forest LabsCommercial use API verifiedImage generationAspect ratios

In-context image generation and precise editing.

by Black Forest Labs

Get Your API Key
View as Markdown

Pricing: Flux.1 Kontext costs 5.34 credits per image (≈ $0.0534).

Save up to 39%with the $1,250 top-up pack (+10% bonus) — 33% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Flux.1 Kontext API on you.bot

Black Forest Labs Flux.1 Kontext — in-context image generation and precise local editing.

Flux.1 Kontext API pricing & guide (2026)

In-context image generation and precise editing. Through you.bot you call the Flux.1 Kontext API by Black Forest Labs on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Flux.1 Kontext API costs about $0.053 per image — roughly 33% cheaper than the official Black Forest Labs price of $0.08. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Flux.1 Kontext API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Flux.1 Kontext API

In-context editing

Edit part of an image while keeping the rest consistent.

Strong prompt control

Pro and Max tiers for demanding, detailed prompts.

Aspect & format choice

Six aspect ratios with JPEG or PNG output.

Where the Flux.1 Kontext API fits in production

Every image below was generated on you.bot with the Flux.1 Kontext API itself — no stock photography.

Concept art and moodboards

Concept art and moodboards

Explore a direction in minutes before committing a shoot budget.

Product detail imagery

Product detail imagery

Keep the product, the surface and the lighting under separate control, so one selling point can be reworked without disturbing the rest of the frame.

Data-driven visuals

Data-driven visuals

Dense information comes out as a composition with a hierarchy rather than stacked labels.

Changing one thing in a finished image

Changing one thing in a finished image

Replace a single object or recolour one area while the rest of the composition stays where it was.

Catalogue runs at scale

Catalogue runs at scale

Hundreds of SKUs from one prompt template, fired in parallel on a single key.

Campaign and advertising stills

Campaign and advertising stills

Production-quality campaign frames where the set and the light are parameters, not another shoot.

How to access and deploy the Flux.1 Kontext API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Flux.1 Kontext endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Poll for your result

Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "flux-kontext",
    "input": { "prompt": "..." }
  }'

Flux.1 Kontext API on you.bot vs going direct

Featureyou.botGoing direct
Price per image$0.053$0.08
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Flux.1 Kontext API

33% cheaper

Lower rates than going direct to Black Forest Labs — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Flux.1 Kontext API

Flux.1 Kontext is billed per image at about $0.053 on you.bot — and you only pay for successful generations.

Black Forest Labs

Flux.1 Kontext API code example

POST/api/v1/generate

In-context image generation and precise editing.

Overview

Flux.1 Kontext runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.

Key features

  • Flexible aspect ratios: 16:9, 21:9, 4:3, 1:1, 3:4, 9:16

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `flux-kontext`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings

input object parameters

ParameterTypeRequiredDescription
imageUrlstringNoImage URL
promptstringYesText value · default: A cozy reading nook inside a treehouse at dusk, string lights, rain on the round window, storybook illustration.
enableTranslationbooleanNoTrue/false · default: true
aspectRatiostringYesOptions: 16:9, 21:9, 4:3, 1:1, 3:4, 9:16 · default: 1:1
outputFormatstringYesOptions: JPEG, PNG · default: JPEG

Query task status

GET/api/v1/task/{taskId}?model=flux-kontext

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "flux-kontext",
    "input": {
        "imageUrl": "https://you.bot/examples/grok-imagine-text-to-image.jpg",
        "prompt": "A cozy reading nook inside a treehouse at dusk, string lights, rain on the round window, storybook illustration.",
        "enableTranslation": true,
        "aspectRatio": "1:1",
        "outputFormat": "JPEG"
    },
    "callbackUrl": "https://your-domain.com/api/callback"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 5.34
}