Skip to main content
Model id flux-2-klein-4b · Black Forest Labs · image · 2 modes: text-to-image, image-to-image.
This page reflects the current catalog. Inputs, allowed values, limits and prices can change as the model evolves; the field names and their meaning do not. For the exact schema at any time, your agent calls get_model with the mode.

Text To Image

Mode text-to-image. Text to image.

Input

Pricing

0.4355 credits per megapixel. Fixed price: charged as estimated. For the exact price of a request, use estimate_generation.

Example

The arguments of generate_media:

Image To Image

Mode image-to-image. Edit up to 4 reference images, as the prompt says.

Input

References: up to 4: 4 images. Assets, URLs and elements are accepted.

Pricing

0.4839 credits per megapixel. Fixed price: charged as estimated. For the exact price of a request, use estimate_generation.

Example

The arguments of generate_media: