Devix API
Models

flux-2-klein-4b

Text-to-Image · Black Forest Labs · Hosted
flux-2-klein-4b

FLUX.2 [klein] is an ultra-fast, distilled image model. It unifies image generation and editing in a single model, delivering state-of-the-art quality enabling interactive workflows, real-time previews, and latency-critical applications.

Partner

Model Info

Task Type
Text-to-Image
Author
Black Forest Labs
Endpoint
/api/v1/images/generate
Terms and License
Function calling
No
Reasoning
No
Vision
No
Unit Pricing
$0.000059 per input 512x512 tile, $0.000287 per output 512x512 tile
Playground
Try this model
Use the marketplace playground with this public slug.
Open Playground
Usage
curl
curl https://devix.one/api/v1/images/generate \
  -H "Authorization: Bearer mak_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-2-klein-4b",
  "prompt": "A clean product render of a developer API dashboard",
  "n": 1
}'
Parameters
Request Body
{
  "model": "flux-2-klein-4b",
  "prompt": "A clean product render of a developer API dashboard",
  "n": 1
}
Response

Text models return OpenAI-compatible chat completions. Image models return data[0].url. Other model types return a normalized result object.

Internal credentials and routing fields are never exposed here.

API Schemas (Raw)
json
{
  "model": "string",
  "prompt": "string",
  "n": "number | optional"
}