Skip to main content

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
Performance:
  • 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
Don’t:
  • Use negative prompts (not supported)
  • Be too vague or abstract
  • Include copyrighted character names

Performance Optimization

  1. Use lower guidance_scale for faster generation
  2. Reduce num_inference_steps for speed over quality
  3. Generate multiple images in one request instead of separate calls
  4. 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
Implement proper retry logic for 500 errors and backoff for 429 errors.

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.