Flux 2 Flex Text-to-Image
Image Generation - Flux2
Flux 2 Flex Text-to-Image
Generate images using Flux 2 Flex model (async)
POST
Flux 2 Flex Text-to-Image
Generate high-quality images from text using Black Forest Labs’ FLUX.2 Flex model. Key Features:Documentation Index
Fetch the complete documentation index at: https://docs.sinancode.com/llms.txt
Use this file to discover all available pages before exploring further.
- Adjustable Quality-Speed Tradeoff - Control generation steps to balance quality and speed
- Superior Text Rendering - Industry-leading text generation for posters and product images
- Multi-Reference Blending - Blend up to 10 reference images while maintaining style consistency
- High Resolution Output - Supports up to 4MP resolution
Authorizations
Please use your API Token for authentication
Body
application/json
Task parameters
Prompt (required, 3-5000 characters)
Required string length:
3 - 5000Example:
"A humanoid figure with a vintage television set for a head"
Aspect ratio (optional, default auto)
Available options:
1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, auto Example:
"auto"
Resolution (optional, default 1K)
Available options:
1K, 2K Example:
"1K"
Response
OK
Task ID
Example:
"01234567-89ab-cdef-0123-456789abcdef"