Skip to main content

Image model

Flux.2 Klein 4B

black-forest-labs/flux.2-klein-4b

black-forest-labs/flux.2-klein-4b is an image generation model from Black Forest Labs you can call on the OceanToken API at $0.014 per megapixel of output, then $0.001 per further megapixel; it supports image input.

At a glance

Model IDblack-forest-labs/flux.2-klein-4b
TypeImage
PublisherBlack Forest Labs
Output price$0.014 per megapixel for the first megapixel, then $0.001 per further megapixel
Endpoint/v1/images/generations, /v1/images/edits
API shapeOpenAI-compatible
In the catalog since2026-01-14

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-klein-4b", "prompt": "A lighthouse at dawn, photographic"}'

Compared with similar models

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

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

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.