Image model API
FLUX Schnell API
Flux is the the fastest image generation model tailored for local development and personal use. Its a 12-billion-parameter text-to-image model developed by Black Forest Labs, optimized for ultra-fast, high-quality image generation from text prompts. Utilizing latent adversarial diffusion distillation, it can produce detailed images in just 1 to 4 steps. Flux-Schnell is ideal for developers and creatives seeking rapid prototyping and efficient local development.
- Model id
flux-schnell- Takes
- Text (required)
- Makes
- Image
- Endpoint
POST /api/v1/images/generations- Made by
- Black Forest Labs
- Mode
- Synchronous
Call FLUX Schnell
https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.Model flux-schnell
POST /api/v1/images/generations
curl https://payload.rentprompts.com/api/v1/images/generations \
-H "Authorization: Bearer rp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-schnell",
"prompt": "A lighthouse at dusk, watercolor",
"n": 1
}'Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →
What a typical call costs
- 1 image0.4 Joules
- 4 images1.6 Joules
Send requests to POST /api/v1/images/generations. FLUX Schnell answers synchronously: the result comes back in the response to the same request.