Flux
Flux Kontext Dev
model_id: flux-kontext-dev
Open-weight 12B parameter multimodal flow transformer enabling precise, iterative image editing with superior character retention, local edits, style. Open-weight 12B parameter multimodal flow transformer enabling precise, iterative image editing with superior character retention, local edits, style transfer, and fast real-time performance. You can integrate Flux Kontext Dev into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "flux-kontext-dev" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. Flux Kontext Dev costs $0.0047 per API call. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.
Generate with Flux Kontext Dev via API
Send a POST request to https://stablediffusionapi.com/api/v6/images/img2img with your API key.
Get yours at modelslab.com.
curl -X POST 'https://stablediffusionapi.com/api/v6/images/img2img' \
-H 'Content-Type: application/json' \
-d '{
"key": "YOUR_API_KEY",
"model_id": "flux-kontext-dev",
"prompt": "make the jacket red and add falling snow",
"init_image": "https://example.com/input.png"
}' Also searched as
Flux Kontext Dev is also known as: Flux Kontext Dev, flux-kontext-dev, flux kontext dev, fluxkontextdev, flux.kontext.dev. Use it for flux generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v6/images/img2img.
FAQ — Flux Kontext Dev
- How do I use Flux Kontext Dev via API?
- Send a POST request to https://stablediffusionapi.com/api/v6/images/img2img with your API key, prompt, and model_id "flux-kontext-dev". Get an API key from modelslab.com.
- Is Flux Kontext Dev free to use?
- No. API access requires a paid ModelsLab plan, starting at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generations on open-source models; third-party models are billed separately.
- What parameters does Flux Kontext Dev support?
- Flux Kontext Dev takes your API key plus: model_id, prompt, init_image. The code sample on this page shows a complete request.
- Can I use generated images commercially?
- Yes. You retain copyright on all images you generate via the API and can use them commercially.