$5 free credits when you sign up Claim now
Marlin 2b now available Test it!
MiniMax H3 now available! Test it!
Browse all Models
Browse all
Browse all
Browse all

Text-to-Image

FLUX.2 Klein API (4B), free to try

FLUX.2 Klein 4B generates or edits an image in 4 steps. The examples below were made on deAPI, with the price per size and the request that reproduces them.

  • $0.0037 per 1024 × 1024 image
  • Text-to-image and edits with up to 3 reference images
  • Apache 2.0 license (4B model)

No credit card · Free credits valid for 90 days · Then top up and pay as you go, no subscription

FLUX.2 Klein 4B Text-to-Image
Portrait of an elderly fisherman generated with FLUX.2 Klein on deAPI

PromptClose-up portrait of an elderly fisherman with a weathered face and a grey knitted cap, overcast harbor light, 85mm photo, natural skin texture

1024 × 1024 · 4 steps · seed 20261020 Cost on deAPI: $0.0037 (price as of October 2026)

FLUX.2 Klein examples

Made on deAPI with the model you call through the API. Tips on writing prompts are in our FLUX.2 Klein article.

Coffee mug on a walnut table generated with FLUX.2 Klein
Product shot Matte ceramic mug, morning window light, steam. 1024 × 1024, $0.0037.
Isometric bookshop in the rain generated with FLUX.2 Klein
Illustration Isometric bookshop at night in the rain, a cat on the step. 1024 × 1024, $0.0037.

FLUX.2 Klein API pricing

You pay per image, by size. Edits on /images/edits have their own price: get a quote from POST /api/v2/images/edits/price.

512 × 512 $0.0019 ≈ 2,679
1024 × 1024 $0.0037 ≈ 1,361

What the free account includes

  • $5 of credits, no credit card
  • Up to 100 images and 15 edits a day until your first top-up
  • Credits valid for 90 days from sign-up
Get $5 credits

Prices from the deAPI price API, October 2026, in USD, 4 steps.

FLUX.2 Klein vs Z-Image-Turbo vs FLUX.1 Schnell

Modes Text-to-image, image edits Text-to-image Text-to-image
Reference images Up to 3 No No
Negative prompt Not supported Accepted, little effect Accepted
Size 256–1536 px 128–2048 px 256–2048 px
Steps Fixed at 4 1–50 (default 8) 1–10 (default 4)
Price $0.0037 at 1024² $0.0063 at 768² $0.0019 at 768²

Limits from GET /api/v2/models, prices from the price API, October 2026.

FLUX.2 Klein API example

Text-to-image is one JSON request. Replace YOUR_API_KEY with a key from your dashboard.

Model ID
Flux_2_Klein_4B_BF16
Endpoints
POST /api/v2/images/generations, POST /api/v2/images/edits
Size
256–1536 px per side, step 16
Steps
4
Free account limits
100 images and 15 edits per day
curl -X POST 'https://api.deapi.ai/api/v2/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "Close-up portrait of an elderly fisherman with a weathered face and a grey knitted cap, overcast harbor light, 85mm photo",
    "width": 1024,
    "height": 1024,
    "steps": 4,
    "seed": 20261020
  }'
import time, requests

API = "https://api.deapi.ai/api/v2"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"}

job = requests.post(f"{API}/images/generations", headers=HEADERS, json={
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "Isometric 3D illustration of a tiny bookshop at night in the rain",
    "width": 1024, "height": 1024, "steps": 4, "seed": 20261020,
}).json()["data"]

while True:
    status = requests.get(f"{API}/jobs/{job['request_id']}", headers=HEADERS).json()["data"]
    if status["status"] in ("done", "error"):
        break
    time.sleep(2)

print(status.get("result_url"))

What is FLUX.2 Klein?

FLUX.2 Klein is the small, fast member of Black Forest Labs' FLUX.2 image model family. The 4B version is released under Apache 2.0 and generates or edits an image in 4 steps. deAPI runs FLUX.2 Klein 4B; the 9B version has a non-commercial license and is not on deAPI.

  1. Create a free account

    Sign up and get $5 of credits. No credit card.

  2. Write the prompt

    Describe the subject, scene and light in full sentences. You can try it first in the Playground.

  3. Call the API

    POST to /images/generations and read the image URL from the job.

FLUX.2 Klein FAQ

Yes. deAPI runs FLUX.2 Klein 4B for text-to-image on /images/generations and for edits with reference images on /images/edits.
No. deAPI runs only the 4B model, released under Apache 2.0. The 9B model has a non-commercial license.
$0.0037 per 1024 × 1024 image and $0.0019 at 512 × 512 (October 2026).
Yes. New accounts get $5 of credits with no credit card, about 1,361 images at 1024 × 1024, with up to 100 images a day on a free account.
No. If you send negative_prompt, the API drops it for this model. Describe what you want to see instead, for example "a clean, empty background".
Yes. Send one image as image or up to 3 as images[] to /images/edits, with a prompt that describes the change.
The 4B weights are released under Apache 2.0, which allows commercial use. Use of the API is covered by the deAPI Terms of Service, which leave it to you to make sure you have the rights for your intended use.

Try FLUX.2 Klein with $5 of free credits

No credit card, no subscription.