/flux/v1/{model} endpoint allows you to generate images based on prompts and parameters./flux/v1/get_result endpoint to query generated images or monitor process status.curl --location --request POST 'https://api.cometapi.com/flux/v1/flux-2-pro' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ein fantastisches bild",
"image_prompt": "",
"aspect_ratio": "custom",
"width": 2048,
"height": 2048,
"prompt_upsampling": false,
"seed": 42,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "",
"webhook_secret": ""
}'{
"id": "ā¦",
"polling_url": "ā¦"
}