跳到主要内容

Image model

Flux.2 Flex

black-forest-labs/flux.2-flex

black-forest-labs/flux.2-flex is an image generation model from Black Forest Labs you can call on the OceanToken API at $0.06 per megapixel of output; it supports image input.

At a glance

Model IDblack-forest-labs/flux.2-flex
TypeImage
PublisherBlack Forest Labs
Output price$0.06 per megapixel
Input price$0.06 per megapixel of input images
Endpoint/v1/images/generations, /v1/images/edits
API shapeOpenAI-compatible
In the catalog since2025-11-25

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/images/generations \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "black-forest-labs/flux.2-flex", "prompt": "A lighthouse at dawn, photographic"}'

Compared with similar models

Image models on OceanToken closest to black-forest-labs/flux.2-flex in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per megapixel)
Flux.2 FlexBlack Forest Labs$0.06
Flux.2 Max
black-forest-labs/flux.2-max
Black Forest Labs$0.07
Flux.2 Pro
black-forest-labs/flux.2-pro
Black Forest Labs$0.03
Flux.2 Klein 4B
black-forest-labs/flux.2-klein-4b
Black Forest Labs$0.014

More from Black Forest Labs

All Black Forest Labs models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.