Flux 2 Turbo - Create image from text
Create high-quality images quickly using FLUX.2 [turbo], the speed-optimized version of Flux 2.
Key Features:
- Fast generation (optimized for speed)
- Lower cost than Pro version
- Adjustable guidance scale for prompt adherence
- Custom image dimensions (512-2048px)
- Safety checker for content filtering
- Multiple output formats (PNG/JPEG)
Use Cases:
- Rapid prototyping and iteration
- Content exploration
- High-volume generation
- Testing prompts and concepts
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
Text description of the image you want to generate.
FLUX.2 [turbo] is optimized for speed while maintaining good quality. Perfect for rapid prototyping and testing.
Performance:
- Faster generation than Flux 2 Pro
- Lower cost per generation
- Great for iteration and experimentation
Tips:
- Works best with clear, descriptive prompts
- Adjust guidance_scale for prompt adherence
- Use seed for reproducibility
Examples:
"mountain landscape at golden hour""portrait of a smiling person, natural lighting, soft focus""abstract geometric pattern with vibrant colors"
"a serene landscape with mountains and a lake at sunset"
Controls how closely the model follows your prompt.
Range: 1.0 to 20.0 Default: 2.5
Guidelines:
- Low (1-3): More creative freedom, less literal interpretation
- Medium (3-7): Balanced between creativity and prompt accuracy
- High (7-20): Strict adherence to prompt, less creative variation
Recommendation: Start with default (2.5) and adjust if needed.
1 <= x <= 202.5
Random seed for reproducible results.
Valid range: 0 to 4,294,967,295 Default: Random (if not provided)
Tip: Save the seed from generations you like to create similar variations.
0 <= x <= 429496729512345
Custom image dimensions (alternative to using standard aspect ratios).
Valid range: 512 to 2048 pixels for both width and height Default: 1024×1024 if not specified
Note: Total resolution affects cost and generation time.
Enable content safety filtering.
When enabled: Filters potentially unsafe content (NSFW, violence, etc.) When disabled: No content filtering (use responsibly and in compliance with terms)
Recommendation: Keep enabled for production applications.
true
Output image format.
PNG:
- Lossless compression
- Supports transparency
- Larger file size
- Best for graphics and illustrations
JPEG:
- Lossy compression
- Smaller file size
- No transparency
- Best for photos and realistic images
jpeg, png "png"
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Response
OK - Task created successfully