Black Forest Labs

FLUX.2 [klein] 4B

Base URL
Model ID
Per image
€0.008
Modalities
Input: Text, Image. Output: Image.
See pricing

Overview

Black Forest Labs FLUX.2 [klein] 4B is a lightweight, fast image generation model optimized for speed and efficiency. With 4 billion parameters, it delivers quick image generation while maintaining good quality. Perfect for rapid prototyping, bulk generation, and applications requiring low latency. Supports both text-to-image and image-to-image generation with excellent cost-efficiency.

Code samples

curl -X POST "https://api.melious.ai/v1/images/generations" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MELIOUS_API_KEY" \
  -d '{
    "model": "flux-2-klein-4b",
    "prompt": "A lighthouse on a rocky coast at dawn",
    "size": "1024x1024"
  }'

Capabilities

Input
Text, Image
Output
Image

Where it runs

Hosted in Renewable power 100% Power efficiency Water efficiency
All models

Start with FLUX.2 [klein] 4B

Estimate monthly cost

FLUX.2 [klein] 4B

Estimated cost per month €8.00