Text-to-Image
FLUX.2 Klein API (4B), free to try
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
PromptClose-up portrait of an elderly fisherman with a weathered face and a grey knitted cap, overcast harbor light, 85mm photo, natural skin texture
FLUX.2 Klein examples
FLUX.2 Klein API pricing
| Size | Price | Images for $5 |
|---|---|---|
| 512 × 512 | $0.0019 | ≈ 2,679 |
| 1024 × 1024 | $0.0037 | ≈ 1,361 |
FLUX.2 Klein vs Z-Image-Turbo vs FLUX.1 Schnell
| FLUX.2 Klein 4B | Z-Image-Turbo | 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² |
FLUX.2 Klein API example
- Model ID
- Endpoints
- Size
- Steps
- Free account limits
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?
-
Create a free account
-
Write the prompt
-
Call the API