Available through Replicate — FLUX
flux-2-klein-4b
Fast, cheap drafts (FLUX.2 klein) · Replicate
What it takes and gives
a prompt + an image → an image · seed, aspect ratio
Lifecycle
NewAlso runs on
- flux-schnell on Fal.ai · ≈ 0.39 creditsIn app · own key on API
- flux-2-klein-4b on Fal.ai · ≈ 0.91 creditsIn app · own key on API
- flux-dev on Fal.ai · ≈ 3.25 creditsIn app · own key on API
- flux-pro on Fal.ai · ≈ 3.25 creditsIn app · own key on API
- qwen-image on Fal.ai · ≈ 3.25 creditsIn app · own key on API
- sd-3.5 on Fal.ai · ≈ 3.25 creditsIn app · own key on API
Run it from code
With a team API key and a project id. The run answers with a jobId; poll GET /api/v1/runs/{jobId} for the image.
# 1. Once: a workflow that runs flux-2-klein-4b (returns workflowId)
curl -X POST "https://app.sushibelt.ai/api/v1/workflows" \
-H "Authorization: Bearer $SUSHIBELT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"flux-2-klein-4b","projectId":"'"$PROJECT_ID"'","steps":[{"key":"subject","type":"TextEntry","config":{"text":"a red fox in the snow","apiInputKey":"prompt"}},{"key":"image","type":"DiffusionWorker","config":{"providerKey":"replicate","model":"flux-2-klein-4b"},"inputs":["subject"]}]}'
# 2. Run it, with your own prompt
curl -X POST "https://app.sushibelt.ai/api/v1/workflows/$WORKFLOW_ID/runs" \
-H "Authorization: Bearer $SUSHIBELT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inputs":{"prompt":"a red fox in the snow"}}'Where it runs
In app · own key on APIRuns in the app on Sushibelt's Replicate account. Through the API it runs only on your own Replicate key.
Runs on your own Replicate key, or on credits
On your own key, Replicate’s terms apply to your team directly.
FLUX.2 [klein] 4B on Replicate: a tenth of a cent an image, and it can start from a connected image.
text-to-imageimage-to-image