Skip to content
  1.  
  2. © 2023 – 2025 OpenRouter, Inc

    Black Forest Labs: FLUX.2 Flex

    black-forest-labs/flux.2-flex

    Created Nov 25, 202567,344 context
    $14.64/M input tokens$14.64/M output tokens

    FLUX.2 [flex] excels at rendering complex text, typography, and fine details, and supports multi-reference editing in the same unified architecture.

    Pricing is as follows, per the docs: We charge $0.06 for each megapixel on both input and output side.

    Sample code and API for FLUX.2 Flex

    OpenRouter normalizes requests and responses across providers for you.

    OpenRouter supports image generation through models that have image in their output modalities. These models can create images from text prompts when you specify modalities: ["image", "text"] in your request. The generated images are returned as base64-encoded data URLs in the assistant message. Learn more about image generation.

    In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

    Using third-party SDKs

    For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.

    See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.