Integrate Prodia's `inference.flux-2.flex.txt2img.v1` using https://docs.prodia.com/llms.txtAPI request
curl -X POST https://inference.prodia.com/v2/job \
-H "Authorization: Bearer $PRODIA_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: image/jpeg" \
-d '{
"type": "inference.flux-2.flex.txt2img.v1",
"config": {
"prompt": "A serene mountain landscape at sunset, photorealistic, 4k",
"width": 1024,
"height": 1024,
"safety_tolerance": 2,
"steps": 50,
"guidance": 4.5
}
}'Input
Text description of the image to generate. Supports up to 32K tokens.
Output width in pixels. Must be a multiple of 16.
Output height in pixels. Must be a multiple of 16.
Random seed for reproducible results.
Safety filter tolerance level. 0 is strict, 5 is permissive.
Number of inference iterations.
Prompt adherence control. Higher values follow the prompt more closely.
Output

Elapsed0.00s
Other endpoints
- Flux 2 Flex · Image Editing$0.1200 per image