Image generation and image editing models powered by Black Forest Labs Flux Kontext
image_urls is requiredimage_urls is requiredsize supports 1:1, 4:3, 3:4, 16:9, 9:16, 21:9, 16:21output_format supports png, jpgimage_urls is required for edit modelsimage_urls[0] is used as the input imageAll API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Flux Kontext model identifier
flux-kontext-pro, flux-kontext-pro-edit, flux-kontext-max, flux-kontext-max-edit Input parameters for generation
Webhook callback URL for result notifications
"https://your-domain.com/callback"