← All playgrounds
Image generation playground

FLUX.2 Pro API

Black Forest Labs' FLUX.2 Pro for photoreal generation and multi-reference editing, up to 2048px.

FLUX.2 Pro is an image generation model from Black Forest Labs, available on OttoPort's OpenAI-compatible API as the model ID flux-2-pro at $0.033 / image as of 2026-10-14.

Provider

Black Forest Labs

Price

$0.033 / image

Model ID

flux-2-pro

Type

image generation model

Campaign creativeProduct visualsConcept exploration

Create with FLUX.2 Pro

image
ExampleSelect to edit
Generated result
Pricing

FLUX.2 Pro API pricing

What OttoPort bills for FLUX.2 Pro, and what that works out to per unit. Rates are read from the same catalog the gateway meters against, and were current on 2026-10-14.

Per image$0.033at the model's base resolution
Images per $130
100 images$3.30
Up to 1024px longest side$0.0331× the base rate
Up to 2048px longest side$0.08252.5× the base rate

No subscription and no minimum — OttoPort bills prepaid credits against usage. See the full rate card.

Quickstart

Call FLUX.2 Pro in three lines

Send "model": "flux-2-pro" to POST https://ottoport.ai/api/v1/images/generations with an OttoPort key. No Black Forest Labs account, no waitlist, no separate SDK.

curl https://ottoport.ai/api/v1/images/generations \
  -H "Authorization: Bearer $OTTOPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-2-pro",
    "prompt": "a chrome torus on a black background, studio light",
    "size": "1024x1024",
    "n": 1
  }'

Before you start

  1. 1. Create a key at /api-keys.
  2. 2. Top up credits — the smallest pack is $25.
  3. 3. Paste the request. It returns on the same request.

Full reference at /docs, or drive it from an agent with the MCP server and CLI.

Reference

Request parameters

The body POST https://ottoport.ai/api/v1/images/generations accepts for FLUX.2 Pro.

FieldTypeRequiredNotes
modelstringYesAlways flux-2-pro for FLUX.2 Pro.
promptstringYesWhat to generate.
sizestringNoe.g. 1024x1024. Resolutions above the base tier bill at a multiplier.
resolutionstringNoOne of: 1k, 2k. Tiers above this model's base rate bill at a multiplier.
aspect_ratiostringNoe.g. 16:9. Read only when size is absent.
nintegerNoHow many images to return. Each one bills separately.
image_urlstringNoA source image, for editing and reference-led generation.
image_urlsarrayNoSeveral reference images at once, up to the model's limit — see its capabilities in /v1/models. Up to 8.
Comparison

FLUX.2 Pro direct vs through OttoPort

FLUX.2 Pro is the same model either way — what changes is how many accounts, keys, and integrations you carry to reach it.

Black Forest Labs directVia OttoPort
Accounts and keysA Black Forest Labs account, plus one more for every other model you addOne OttoPort account and one key for the whole catalog
Request shapeBlack Forest Labs's own SDK and response formatOpenAI-compatible — point baseURL at OttoPort and change the model string
Switching modelsA new integration per providerReplace flux-2-pro with any other model ID in the catalog
BillingA separate invoice and contract per providerPrepaid credits, no subscription, one usage ledger
Provider outagesYour call failsConfigured backup routes are tried in order on provider failure
01

Put the hero subject first.

02

Describe composition and lighting.

03

Specify format and visual style.

FAQ

FLUX.2 Pro API questions

Cost, keys, and model IDs for FLUX.2 Pro on OttoPort.

How much does the FLUX.2 Pro API cost?

On OttoPort, FLUX.2 Pro costs $0.033 / image as of 2026-10-14. For scale, images per $1: 30. Billing is prepaid usage with no subscription and no minimum, and the current rate is always published at ottoport.ai/pricing.

How do I get a FLUX.2 Pro API key?

You do not need a Black Forest Labs key. Create an OttoPort account, generate a key at ottoport.ai/api-keys, and send it as "Authorization: Bearer <key>" to POST https://ottoport.ai/api/v1/images/generations with "model": "flux-2-pro". The same key reaches every other model in the catalog.

What is the model ID for FLUX.2 Pro?

The OttoPort model ID for FLUX.2 Pro is flux-2-pro. Pass it as the model field on POST https://ottoport.ai/api/v1/images/generations, or list it programmatically from GET https://ottoport.ai/api/v1/models.

Can I call FLUX.2 Pro with the OpenAI SDK?

Yes. Set the OpenAI SDK's base URL to https://ottoport.ai/api/v1, use an OttoPort API key, and pass flux-2-pro as the model. Image generation follows the OpenAI images shape, so existing code works after changing two lines.

Do I need a Black Forest Labs account to use FLUX.2 Pro?

No. OttoPort connects to Black Forest Labs on your behalf, so one OttoPort account covers FLUX.2 Pro and every other model in the catalog — no per-provider contracts, keys, or invoices.

Alternatives

Other image generation models on the same API

Same endpoint, same key — swapping model is a one-string change from flux-2-pro.

Browse the full catalog — every model with its provider and per-unit price.