API docs / Image models
FLUX Kontext Pro API
A state-of-the-art text-based image editing model that delivers high-quality outputs with excellent prompt following and consistent results for transforming images through natural language
- Model id
black-forest-labs/flux-kontext-pro- Provider
- Flux AI
- Output
- Image
- Price
- From 14 credits per run, the same as on voor.ai. Options such as length or resolution can change it.
Request
POST https://voor.ai/v1/generations with "model": "black-forest-labs/flux-kontext-pro". Poll GET /v1/tasks/{id} or receive the signed webhook. See the overview for keys, idempotency, webhooks and errors.
curl https://voor.ai/v1/generations \
-H "Authorization: Bearer $VOOR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "black-forest-labs/flux-kontext-pro",
"input": {
"prompt": "A red fox standing in fresh snow at golden hour, soft light"
},
"callback_url": "https://example.com/webhooks/voor"
}'
# Then poll the task (or wait for the webhook):
curl https://voor.ai/v1/tasks/TASK_ID \
-H "Authorization: Bearer $VOOR_API_KEY"Input parameters
| Name | Type | Details |
|---|---|---|
promptrequired | string | Text description of what you want to generate, or the instruction on how to edit the given image. |
reference_images | array of URLs | Image to use as reference. Must be jpeg, png, gif, or webp. Up to 1 files · Accepts image/* |
aspect_ratio | string | Default: One of: match_input_image, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2 |
enhance_prompt | boolean | Automatic prompt improvement Default: |
seed | number | Random seed. Set for reproducible generation |
output_format | string | Default: One of: jpg, png |