Generate an image from a text prompt using FLUX.2 [pro]. Supports up to 4MP resolution and multi-reference consistency. Returns the result synchronously as base64-encoded JSON.
Documentation Index
Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Model ID
flux-2-pro "flux-2-pro"
Text description of the image to generate.
"A cute baby polar bear"
Number of images to generate.
1 <= x <= 4Output image size, e.g. 1024x1024. Supports up to 4MP resolution.
"1024x1024"
Output image format.
jpeg, png "jpeg"
Random seed for reproducible generation.