Skip to content
Stable Diffusion API

Flux

Flux Dev

model_id: fluxdev

Build with Flux Dev API. ControlNet powered by AI. Plans from $21/month. Flux Dev is a text to image AI model by ModelsLab available on ModelsLab. API access starts at $21/month, and open-source models are unlimited on the $149/month plan. You can integrate Flux Dev into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "fluxdev" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. Flux 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.

Flux Dev sample image

Generate with Flux Dev via API

Send a POST request to https://stablediffusionapi.com/api/v6/images/text2img with your API key. Get yours at modelslab.com.

curl -X POST 'https://stablediffusionapi.com/api/v6/images/text2img' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "YOUR_API_KEY",
  "model_id": "fluxdev",
  "prompt": "a photo of a red fox in fresh snow, golden hour",
  "width": 1024,
  "height": 1024,
  "samples": 1
}'

Also searched as

Flux Dev is also known as: Flux Dev, fluxdev. Use it for flux generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v6/images/text2img.

FAQ — Flux Dev

How do I use Flux Dev via API?
Send a POST request to https://stablediffusionapi.com/api/v6/images/text2img with your API key, prompt, and model_id "fluxdev". Get an API key from modelslab.com.
Is Flux 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 Dev support?
Flux Dev takes your API key plus: model_id, prompt, width, height, samples. 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.