
Nano Banana Pro
Image model
APIUpdated
Call Nano Banana Pro with the model id google/nano-banana-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 |
| aspect_ratio | string | No | 1:1 | match_input_image, 1:1, 4:3, 16:9, 21:9, 5:4, 3:2, 2:3, 9:16, 3:4, 4:5 |
| resolution | string | No | 2K | 1K, 2K, 4K |
| image_input | array of strings | No | None | Any |
| output_format | string | No | png | png, jpg |
| safety_filter_level | string | No | block_only_high | block_only_high, block_medium_and_above, block_low_and_above |
curl -X POST https://specialx.ai/api/v1/generations \
-H "Authorization: Bearer sx_..." \
-H "Content-Type: application/json" \
-d '{
"type": "image",
"model": "google/nano-banana-pro",
"input": {
"prompt": "Describe the shot",
"aspect_ratio": "1:1",
"resolution": "2K",
"output_format": "png",
"safety_filter_level": "block_only_high"
}
}'
This example request costs 2 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=google/nano-banana-pro \
input='{"prompt":"Describe the shot","aspect_ratio":"1:1","resolution":"2K","output_format":"png","safety_filter_level":"block_only_high"}'
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 Nano Banana Pro at default settings uses 2 credits.
The model id is google/nano-banana-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 2 credits.