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
Create with FLUX.2 Pro
image
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.033 | at the model's base resolution |
|---|---|---|
| Images per $1 | 30 | |
| 100 images | $3.30 | |
| Up to 1024px longest side | $0.033 | 1× the base rate |
| Up to 2048px longest side | $0.0825 | 2.5× the base rate |
No subscription and no minimum — OttoPort bills prepaid credits against usage. See the full rate card.
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
}'from openai import OpenAI
client = OpenAI(api_key="op-...", base_url="https://ottoport.ai/api/v1")
resp = client.images.generate(
model="flux-2-pro",
prompt="a chrome torus on a black background, studio light",
size="1024x1024",
n=1,
)
print(resp.data[0].url)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "op-...", baseURL: "https://ottoport.ai/api/v1" });
const resp = await client.images.generate({
model: "flux-2-pro",
prompt: "a chrome torus on a black background, studio light",
size: "1024x1024",
n: 1,
});
console.log(resp.data[0].url);Before you start
- 1. Create a key at /api-keys.
- 2. Top up credits — the smallest pack is $25.
- 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.
Request parameters
The body POST https://ottoport.ai/api/v1/images/generations accepts for FLUX.2 Pro.
| Field | Type | Required | Notes |
|---|---|---|---|
| model | string | Yes | Always flux-2-pro for FLUX.2 Pro. |
| prompt | string | Yes | What to generate. |
| size | string | No | e.g. 1024x1024. Resolutions above the base tier bill at a multiplier. |
| resolution | string | No | One of: 1k, 2k. Tiers above this model's base rate bill at a multiplier. |
| aspect_ratio | string | No | e.g. 16:9. Read only when size is absent. |
| n | integer | No | How many images to return. Each one bills separately. |
| image_url | string | No | A source image, for editing and reference-led generation. |
| image_urls | array | No | Several reference images at once, up to the model's limit — see its capabilities in /v1/models. Up to 8. |
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 direct | Via OttoPort | |
|---|---|---|
| Accounts and keys | A Black Forest Labs account, plus one more for every other model you add | One OttoPort account and one key for the whole catalog |
| Request shape | Black Forest Labs's own SDK and response format | OpenAI-compatible — point baseURL at OttoPort and change the model string |
| Switching models | A new integration per provider | Replace flux-2-pro with any other model ID in the catalog |
| Billing | A separate invoice and contract per provider | Prepaid credits, no subscription, one usage ledger |
| Provider outages | Your call fails | Configured backup routes are tried in order on provider failure |
Put the hero subject first.
Describe composition and lighting.
Specify format and visual style.
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.
Other image generation models on the same API
Same endpoint, same key — swapping model is a one-string change from flux-2-pro.
GPT Image 2.5 Flare API
OpenAI
$0.026 / image
GPT Image 2.5 API
OpenAI
$0.026 / image
GPT Image 2 API
OpenAI
$0.07 / image
Nano Banana 2 API
$0.088 / image
Nano Banana 2 Lite API
$0.044 / image
GPT Image 1.5 API
OpenAI
$0.044 / image
Browse the full catalog — every model with its provider and per-unit price.