Flux
Flux.2 Dev Text To Image
model_id: flux-2-dev
High-performance image editing with advanced 32B parameter rectified flow transformer, enabling precise multi-image editing, photorealistic 4MP output. Flux.2 Dev is a high-performance, developer-focused text-to-image generative model designed for experimentation, customization, and advanced creative workflows. You can integrate Flux.2 Dev Text To Image into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "flux-2-dev" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. Flux.2 Dev Text To Image costs $0.02 per generation, by resolution. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.
Generate with Flux.2 Dev Text To Image 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": "flux-2-dev",
"prompt": "a product photo of a ceramic mug on a wooden table",
"width": 1024,
"height": 1024,
"samples": 1
}' Also searched as
Flux.2 Dev Text To Image is also known as: Flux.2 Dev Text To Image, flux-2-dev, flux 2 dev, flux2dev, flux.2.dev. Use it for flux generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v6/images/text2img.
FAQ — Flux.2 Dev Text To Image
- How do I use Flux.2 Dev Text To Image via API?
- Send a POST request to https://stablediffusionapi.com/api/v6/images/text2img with your API key, prompt, and model_id "flux-2-dev". Get an API key from modelslab.com.
- Is Flux.2 Dev Text To Image 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.2 Dev Text To Image support?
- Flux.2 Dev Text To Image 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.