Flux
Flux Schnell
model_id: fluxschnell
Generate images from text with Flux Schnell. High-resolution AI image generation. Plans from $21/month. Flux Schnell 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 Schnell into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "fluxschnell" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. Flux Schnell 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 Schnell 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": "fluxschnell",
"prompt": "a neon-lit ramen shop on a rainy street at night",
"width": 1024,
"height": 1024,
"samples": 1
}' Also searched as
Flux Schnell is also known as: Flux Schnell, fluxschnell. Use it for flux generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v6/images/text2img.
FAQ — Flux Schnell
- How do I use Flux Schnell via API?
- Send a POST request to https://stablediffusionapi.com/api/v6/images/text2img with your API key, prompt, and model_id "fluxschnell". Get an API key from modelslab.com.
- Is Flux Schnell 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 Schnell support?
- Flux Schnell 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.