Gemini image model for high-fidelity text-to-image and image-guided editing.
Authenticate with the X-API-Key request header.
resolution — pass resolution in your request. Credit cost per image:| resolution | credits / image | vs base |
|---|---|---|
| 1k | 18 | 1× |
| 2k | 27 | 1.5× |
| 4k | 35 | 2× |
List price. Volume / bulk customers get a discounted rate — contact us for account pricing.
| Name | Type | Required | Description | Default / options |
|---|---|---|---|---|
| prompt | string | required | Text prompt describing the desired output. | — |
| image_url | string | optional | Optional source image for image-guided generation/editing. | — |
| image_urls | string[] | optional | Multiple reference images for identity/style conditioning. | — |
| aspect_ratio | string | optional | Output aspect ratio. | default: 1:1 |
| seed | number | optional | RNG seed (0-4294967295) for deterministic output. | — |
| temperature | number | optional | Sampling temperature 0-2. | — |
| person_generation | string | optional | Allow people in output: dont_allow | allow_adult | allow_all. | default: allow_adult |
curl -X POST https://brahmand-api.bulletshorts.co/v1/image/nano-banana-pro \
-H "X-API-Key: $TRINETRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A banana astronaut floating in space, studio lighting"}'{
"prompt": "A banana astronaut floating in space, studio lighting"
}Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.
{
"job_id": "job_nanobananapro_a1b2c3",
"status": "queued"
}{
"id": "job_nanobananapro_a1b2c3",
"model": "nano-banana-pro",
"status": "succeeded",
"output": {
"outputs": [
{
"url": "https://cdn.trinetra.ai/out/nano-banana-pro/a1b2c3.png",
"type": "image"
}
]
},
"credits_charged": 10
}Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.