Black Forest Labs
FLUX.2 Klein 4B BF16
Resolución de 256 a 1024 px, ajustable en incrementos de 16 px. Configuración predeterminada de 1024×1024 y 4 pasos. Intensidad de guía fija en 1,0. Un mismo modelo permite generar imágenes y editarlas con varias referencias. Inferencia en menos de un segundo.
Usos recomendados
- Genera imágenes a partir de texto y edita imágenes mediante carga multiparte en POST /api/v2/run con una clave API
- Consulta gratis el coste en POST /api/v2/quote antes de comprometer créditos
- Procesamiento en GPU directa por fracciones de centavo sin cuotas mensuales por usuario
Más ejemplos
Referencia de la API
- ID del modelo en la API
Flux_2_Klein_4B_BF16- Desarrollador del modelo
- Black Forest Labs
- Modalidad
- Generación y edición de imágenes
- Entrada
- Text prompt · Reference images
- Salida
- Image (PNG / WebP)
- Puntos de acceso
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infraestructura
- Flota de GPU directas
- min_px
- 256
- max_px
- 1536
- step_px
- 16
- max_input_images
- 3
Parámetros de la solicitud
modelstring · obligatorioExact Runstage model slug (Flux_2_Klein_4B_BF16).
promptstring · obligatorioVisual 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 adicionales
negative_promptguidanceseedlorasenhance_prompt
Inicio rápido
Copia una solicitud funcional con el ID de modelo Flux_2_Klein_4B_BF16. Consulta primero la estimación gratuita (el coste final se liquida al completarse) y ejecútala con tu clave API de Runstage.
Abrir 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>'Precios
| Unidad facturable y opciones | 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 facturación
- Supports up to 3 input images for editing; 256–1536px in steps of 16.
- Antes de comprometer créditos prepagados, puedes obtener estimaciones gratuitas mediante POST /api/v2/quote.
- Al completarse o fallar la ejecución, se ajusta automáticamente la reserva al coste real y se devuelven los créditos sin utilizar.
Tarifas actuales del catálogo de Runstage. Créditos prepagados en USD con límites de gasto por clave.
Comparar en el catálogo completo