
FLUX.2 Pro
Image model
APIUpdated
Call FLUX.2 Pro with the model id black-forest-labs/flux-2-pro over the SpecialX HTTP API, the generate_image MCP tool or the specialx CLI. The fields and defaults below are read from its input schema.
Required fields: prompt. Every other field is optional.
| Field | Type | Required | Default | Allowed values |
|---|---|---|---|---|
| prompt | string | Yes | None | Any |
| resolution | string | No | 1 MP | 0.25 MP, 0.5 MP, 1 MP, 2 MP |
| aspect_ratio | string | No | 1:1 | 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3 |
| input_images | array of strings | No | None | Any |
| output_format | string | No | webp | png, jpg, webp |
| output_quality | number | No | 80 | min 0, max 100 |
| safety_tolerance | number | No | 2 | min 1, max 6 |
curl -X POST https://specialx.ai/api/v1/generations \
-H "Authorization: Bearer sx_..." \
-H "Content-Type: application/json" \
-d '{
"type": "image",
"model": "black-forest-labs/flux-2-pro",
"input": {
"prompt": "Describe the shot",
"resolution": "1 MP",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"safety_tolerance": 2
}
}'
This example request costs 5 credits.
Response (201):
{"task_id":"uuid","status":"queued"}
The response carries a task_id. Poll GET https://specialx.ai/api/v1/generations/{task_id} until status is completed or failed. status is one of queued, processing, completed, failed.
urls: Output media URLs (completed only)error: Failure reason (failed only)Over MCP, call generate_image with model and input, then get_task with the task_id.
specialx call generate_image model=black-forest-labs/flux-2-pro \
input='{"prompt":"Describe the shot","resolution":"1 MP","aspect_ratio":"1:1","output_format":"webp","output_quality":80,"safety_tolerance":2}'
specialx call get_task task_id=<id>
14-day trial with up to 1,000 credits
Card required. Plans from $18/month after the trial. See pricing · One run of FLUX.2 Pro at default settings uses 5 credits.
The model id is black-forest-labs/flux-2-pro.
Required fields: prompt. Every other field is optional.
The response carries a task_id. Poll GET https://specialx.ai/api/v1/generations/{task_id} until status is completed or failed.
This example request costs 5 credits.