Black Forest Labs
FLUX.2 Klein 4B BF16
Resolução de 256 a 1024 px, ajustável em incrementos de 16 px. Configuração padrão de 1024×1024 e 4 etapas. Valor de orientação fixo em 1,0. Um único modelo para gerar imagens e editá-las com várias referências. Inferência em menos de um segundo.
Usos recomendados
- Gere imagens a partir de texto e edite imagens por upload multipart em POST /api/v2/run com uma única chave de API
- Consulte uma estimativa gratuita em POST /api/v2/quote antes de comprometer créditos
- Processamento em GPU direta a frações de centavo e sem mensalidade por usuário
Mais exemplos
- ID do modelo na API
Flux_2_Klein_4B_BF16- Desenvolvedor do modelo
- Black Forest Labs
- Modalidade
- Geração e edição de imagens
- Entrada
- Text prompt · Reference images
- Saída
- Image (PNG / WebP)
- Endpoints
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infraestrutura
- Frota de GPUs diretas
- min_px
- 256
- max_px
- 1536
- step_px
- 16
- max_input_images
- 3
Parâmetros da solicitação
modelstring · obrigatórioExact Runstage model slug (Flux_2_Klein_4B_BF16).
promptstring · obrigatórioVisual description of subject, composition, lighting, and medium.
width / heightinteger · opcionalOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
stepsinteger · opcionalNumber of denoising steps controlling fidelity and cost.
Parâmetros adicionais
negative_promptguidanceseedlorasenhance_prompt
Início rápido
Copie uma solicitação funcional com o ID de modelo Flux_2_Klein_4B_BF16. Consulte antes a estimativa gratuita (o custo final é definido na conclusão) e execute com sua chave de API da Runstage.
Abrir o Studio# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"Flux_2_Klein_4B_BF16","width":1024,"height":1024,"steps":4}'
# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "Flux_2_Klein_4B_BF16", "prompt": "A cinematic, hyper-realistic eye-level shot through a rainy coffee shop window at night. Condensation on the glass is partially wiped away to reveal the handwritten text '\''KLEIN 4B'\'' clearly written in the moisture. Through the clear glass, a warm, cozy interior is visible with soft bokeh lights. Outside, reflections of blue and pink neon city lights dance on the wet glass droplets. Incredible texture detail on the water drops and glass surface. 8k resolution, shot on 35mm lens, f/1.4, street photography style.", "width": 1024, "height": 1024, "steps": 4, "seed": 42 }'
# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=Flux_2_Klein_4B_BF16' --form-string 'prompt=A cinematic, hyper-realistic eye-level shot through a rainy coffee shop window at night. Condensation on the glass is partially wiped away to reveal the handwritten text '\''KLEIN 4B'\'' clearly written in the moisture. Through the clear glass, a warm, cozy interior is visible with soft bokeh lights. Outside, reflections of blue and pink neon city lights dance on the wet glass droplets. Incredible texture detail on the water drops and glass surface. 8k resolution, shot on 35mm lens, f/1.4, street photography style.' -F "image=@input.png"
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'Preços
| Unidade de cobrança e opções | Tarifa (USD) |
|---|---|
| Draft · 512×512 (4 steps)Fast exploration & thumbnails | $0.00243 |
| Standard · 1024×1024 (4 steps)Production square artwork (estimated) | ~$0.00499 |
| Widescreen · 1536×1024 (4 steps)Hero & banner aspect ratio (estimated) | ~$0.00616 |
Notas de cobrança
- Supports up to 3 input images for editing; 256–1536px in steps of 16.
- Antes de comprometer créditos pré-pagos, obtenha uma estimativa gratuita em POST /api/v2/quote.
- Na conclusão ou falha da tarefa, a reserva é ajustada automaticamente ao custo real, com devolução dos créditos não utilizados.
Tarifas atuais do catálogo da Runstage. Créditos pré-pagos em USD com limites de gastos por chave.
Comparar no catálogo completo