Skip to main content
Pricing: $0.005/megapixel. Endpoint: POST /v1/models/black-forest-labs/flux-2-klein-4b/runs.
Compact 4-billion parameter text-to-image model from Black Forest Labs. Step-distilled to 4 inference steps for sub-second generation. Unifies text-to-image and image editing in a single architecture with Apache 2.0 licensing.

Overview

Pricing

  • Base price: $0.005/megapixel
  • Note: Per megapixel

FLUX.2 [klein] 4B API

Endpoint: POST /v1/models/black-forest-labs/flux-2-klein-4b/runs

Run the model

Python

Node.js

cURL

Request parameters

Input schema

Output schema

Callback payload

When you provide a callback_url, Runflow POSTs to it once the run reaches a terminal state.
  • Retries: 3 attempts with exponential backoff (1s, 2s). Retries on 5xx / network errors only.
  • Headers: Runflow-Request-Id is always sent. Runflow-Signature is sent if a signing secret is configured.

Additional Resources

Browse all models

Browse the catalog.

Run lifecycle

Callbacks, polling, statuses.

Callbacks

Handle async results.

Pricing

How requests bill out.