FLUX.2 [pro] API
FLUX.2 [pro] is Black Forest Labs' production image model for making and editing pictures from text and several reference images, with legible fine text and close prompt following. Through CoreSpeed, Claude Code, Codex, Cursor or any MCP agent runs it to create, edit or extend images, with no Black Forest Labs account, from one credit balance.
Rate
45credits
per billed megapixel processed · about $0.045
By Black Forest Labs · 3 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 16:9 photo of a seaside café with a chalkboard that reads "Harbor Coffee" with FLUX.2 [pro], and tell me the rate before you run itWhat it costs,per billed unit.
- Text to imageFlux 2 Pro, in the catalog45 creditsper billed megapixel processed · $0.045
- Edit with reference imagesFLUX 2 Pro Edit, in the catalog45 creditsper billed megapixel processed · $0.045
- Extend an image past its edgesFLUX 2 Pro Outpaint, in the catalog45 creditsper billed megapixel processed · $0.045
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.
- Generation and editing in one model, from text and several reference images.
- Legible fine text: typography, infographics and UI mockups.
- Close adherence to complex, multi-part prompts.
- Takes
- A text prompt; to edit, one or more reference images; to outpaint, one image.
- Makes
- One image per run, as JPEG or PNG.
- Size
- Presets, or custom sides of 256 to 2,560 pixels in steps of 16, up to 4 megapixels.
- Outpaint
- Up to 2,048 pixels added on each side, in high or fast mode.
From Black Forest Labs's own page: FLUX.2, on Black Forest Labs' site
Your agentruns it.
Set up once with the line above. Then your agent calls FLUX.2 [pro] through CoreSpeed's media tools, with no Black Forest Labs account.
Find it
Your agent searches the catalog for FLUX.2 [pro] and picks the variant that fits the job.
media__list_modelsRead the rate and inputs
It reads the rate and the inputs the model takes, before anything runs.
media__get_modelRun 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