Flux API
The Flux API on TTAPI gives developers a complete entry point for Flux image generation, image edits, async fetch, and official model-specific endpoints.Flux.2 Overview
FLUX.2 spans the full spectrum of image generation—from sub-second inference with [klein] to highest quality with [max]. Generate photorealistic images with precise control over colors, poses, and composition, or edit existing images by referencing up to 10 sources simultaneously. Choose [klein] for real-time, high-volume generation, [pro] for production at scale, [flex] for fine-grained control, or [max] for maximum quality and grounding search.Compare FLUX.2 Models
[klein]
Sub-second inference. Our fastest models with open weights.
[max]
Maximum performance. Highest editing consistency across tasks. Vast world knowledge. Strongest prompt following and faithful style representation.
[pro]
Top performance at affordable price. The high quality, production-grade image editing and generation model.
[flex]
Specialized for typography. Best for text rendering and preserving small details.
What You Can Build With The Flux API
- Generate images through the Flux Generate API
- Edit images with the Flux Edits API
- Fetch async results with the Flux Fetch API
- Use official model endpoints such as Flux Pro, Flux Dev, Flux Kontext Pro, and Flux 2 Pro
Popular Flux API Endpoints
| Use case | Endpoint |
|---|---|
| Image generation | Flux Generate API |
| Image editing | Flux Edits API |
| Result fetch | Flux Fetch API |
| Official model endpoint | Flux Pro API |
Recommended Workflow
- Start with the Flux Generate API for TTAPI-format generation.
- Use Flux Edits when your workflow edits existing images.
- Use Flux Fetch for async jobs.
- Use model-specific endpoints when you need one official Flux model family.