Overview
FLUX is optimized for speed and creative control. It delivers sub-second inference times while maintaining high image quality.Available Models
FLUX/dev
The primary FLUX model optimized for both speed and quality. Endpoint:POST /api/v1/flux/dev
Best for:
- Rapid prototyping
- Content creation workflows
- Real-time applications
- High-volume generation
- Inference time: ~0.5-2 seconds
- Quality: High
- Cost: Low
Parameters
Required Parameters
Optional Parameters
Image Sizes
Examples
Basic Image Generation
Advanced Generation with Control
Best Practices
Prompt Engineering
Do:- Be specific and descriptive
- Include style references (e.g., “in the style of impressionist painting”)
- Mention lighting and mood
- Specify composition elements
- Use negative prompts (not supported)
- Be too vague or abstract
- Include copyrighted character names
Performance Optimization
- Use lower guidance_scale for faster generation
- Reduce num_inference_steps for speed over quality
- Generate multiple images in one request instead of separate calls
- Cache successful seeds for reproducible variations
Quality vs Speed Trade-offs
Response Format
Error Handling
FLUX is generally very reliable, but you may encounter:- 400 Bad Request: Invalid parameters or prompt too long
- 429 Too Many Requests: Rate limit exceeded
- 500 Internal Server Error: Rare inference failures
Pricing
FLUX images are billed at our standard image generation rate. Contact us for volume pricing.FLUX/dev is our recommended model for most use cases due to its excellent balance of speed, quality, and cost.