Flux Generate Image
Call POST /flux/v1/ to generate Flux images from prompts and track status via get_result before links expire.
Overview
The/flux/v1/\{model\} endpoint generates high-quality images from text prompts using Black Forest Labs’ Flux model family. Simply swap the model ID in the URL path to switch between different Flux variants.
Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
Must be application/json.
Path Parameters
Flux model variant to use, e.g. flux-pro-1.1, flux-pro, flux-dev, flux-pro-1.1-ultra.
Body
Text prompt describing the image to generate.
URL of a reference image to guide the generation style or content.
Output image width in pixels. Must be a multiple of 32. Range varies by model.
Output image height in pixels. Must be a multiple of 32. Range varies by model.
Number of diffusion steps. Higher values improve quality but increase latency.
When true, automatically enhances the prompt for more detailed results.
Random seed for reproducible outputs. Omit for random generation.
Guidance scale controlling how closely the output follows the prompt. Higher values increase prompt adherence.
Safety filter tolerance level. Higher values are more permissive. Range: 0–6.
Diversity interval. Higher values produce more varied outputs at the cost of prompt adherence.
Output image format. Supported values: jpeg, png.
URL to receive a POST notification when the task completes.
Secret string included in webhook payloads for request verification.