# FLUX.2 [pro] API pricing for AI agents

Source: https://corespeed.io/models/flux-2-pro

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.

## What it costs, per billed unit

Read from the CoreSpeed catalog for this answer. Rates are in credits, and 1,000 credits are $1.

| Variant | Name in the catalog | Rate | In dollars |
| --- | --- | --- | --- |
| Text to image | Flux 2 Pro | 45 credits per billed megapixel processed | $0.045 |
| Edit with reference images | FLUX 2 Pro Edit | 45 credits per billed megapixel processed | $0.045 |
| Extend an image past its edges | FLUX 2 Pro Outpaint | 45 credits per 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.

Every model in Image generation, with its rate: https://corespeed.io/catalog/image-generation

## What it does 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.

## Facts

- 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](https://bfl.ai/models/flux-2)

## How your agent runs it

Paste this line into Claude Code, Codex or Cursor:

```text
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 it
```

It starts with the setup line, so it works on a machine without CoreSpeed: the agent fetches https://corespeed.io/SKILL.md, adds the MCP server and signs you in. Then it runs FLUX.2 [pro] through the media tools:

1. `media__list_models`: search the catalog for FLUX.2 [pro] and pick the variant that fits.
2. `media__get_model`: read the rate and the inputs the model takes, before anything runs.
3. `media__generate`: run it. The file comes back as a link and lands in your Drive for 7 days.

## Questions

### Can my agent widen a photo for a banner?

Yes. The outpaint variant adds up to 2,048 pixels on any side and draws what fits the scene. Fast mode is quicker; high mode is the default.

### Do I need a Black Forest Labs account or API key to use FLUX.2 [pro]?

No. CoreSpeed runs FLUX.2 [pro] for your agent. You sign in to CoreSpeed once, and each run comes out of your one credit balance.

### Am I charged if a generation fails?

No. A generation is billed once, after it succeeds. Failed, cancelled and expired generations are never charged. How media billing works: https://corespeed.io/docs/media

### Do I have to switch agents?

No. CoreSpeed adds tools to the agent you already use: Claude Code, Codex, Cursor, or another MCP client. Each one signs in once.

All model prices: https://corespeed.io/models (Markdown: https://corespeed.io/models.md)

## Related pages

- [Image generation for AI agents](https://corespeed.io/integrations/image-generation): Give your agent hundreds of image models with no API keys. It reads each model's rate first, and only a finished image is charged.
- [FLUX.1 Kontext API pricing for AI agents](https://corespeed.io/models/flux-1-kontext): FLUX.1 Kontext API pricing on CoreSpeed: the live rate of each [pro], [max] and [dev] variant, and how your agent runs it with no Black Forest Labs account.
- [Seedream 5.0 API pricing for AI agents](https://corespeed.io/models/seedream-5-0): Seedream 5.0 API pricing on CoreSpeed: the live rate of each tier, and how your agent runs it with no ByteDance account.

## Sources

- FLUX.2, on Black Forest Labs' site: https://bfl.ai/models/flux-2
- Media docs: https://corespeed.io/docs/media
- FLUX.2: Frontier Visual Intelligence: https://bfl.ai/blog/flux-2

Reviewed 2026-11-24.

## Links

- Product overview: https://corespeed.io/ (Markdown: https://corespeed.io/index.md)
- Documentation: https://corespeed.io/docs
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
