Image models

FLUX.1 Kontext API

FLUX.1 Kontext is Black Forest Labs' image model family that edits pictures from text and reference images, keeping a character the same across scenes and changing one part while the rest stays. Through CoreSpeed, Claude Code, Codex, Cursor or any MCP agent runs its [pro], [max] and [dev] tiers with no Black Forest Labs account, from one credit balance.

From

60credits

per billed image · about $0.06

By Black Forest Labs · 6 ways to run it · No Black Forest Labs key

Paste this into Claude Code, Codex or Cursor

set up https://corespeed.io/SKILL.md (read it raw, e.g. with curl), then make a 3:2 picture of a chalkboard menu that reads "Harbor Coffee" with FLUX.1 Kontext [pro], and tell me the rate before you run it

What it costs,per billed unit.

  • Text to image, [pro]FLUX.1 Kontext [pro], in the catalog60 creditsper billed image · $0.06
  • Edit an image, [pro]FLUX.1 Kontext [pro], in the catalog60 creditsper billed image · $0.06
  • Edit with several images, [pro]FLUX.1 Kontext [pro], in the catalog60 creditsper billed image · $0.06
  • Edit an image, [max]FLUX.1 Kontext [max], in the catalog120 creditsper billed image · $0.12
  • Edit with several images, [max]FLUX.1 Kontext [max], in the catalog120 creditsper billed image · $0.12
  • Edit an image, [dev]FLUX.1 Kontext [dev], in the catalog37 creditsper billed megapixel · $0.037

A run is billed once, after it succeeds: the rate times the units the model reports for that run. Settings such as resolution, length, count or sound change how many units a run counts. A failed, cancelled or expired run costs nothing. Credits come from one balance: 1,000 credits are $1.

Rates come from the catalog and follow it. Every model in Image generation, with its rate

What itdoes well.

  • A character or object kept the same across new scenes.
  • Local edits that change one part of an image and leave the rest alone.
  • Step-by-step editing: add an instruction and build on the last edit.
Takes
A text prompt; to edit, one image, or several on the multi variants.
Makes
1 to 4 images per run, as JPEG or PNG.
Aspect ratio
From 21:9 to 9:21 on [pro] and [max]; [dev] matches the input image by default.
[dev]
The open-weight 12B model, run in 10 to 50 steps.

From Black Forest Labs's own page: Introducing FLUX.1 Kontext

Your agentruns it.

Set up once with the line above. Then your agent calls FLUX.1 Kontext through CoreSpeed's media tools, with no Black Forest Labs account.

  1. Find it

    Your agent searches the catalog for FLUX.1 Kontext and picks the variant that fits the job.

    media__list_models
  2. Read the rate and inputs

    It reads the rate and the inputs the model takes, before anything runs.

    media__get_model
  3. Run it

    The image comes back as a link and as a file in your Drive for 7 days. A long run finishes as a job.

    media__generate
Illustrative example · Fictional data

Everything your agents need, one line away.

Give this to your agent

set up https://corespeed.io/SKILL.md
Get started
FAQ

Questions people ask.