Nano Banana Pro Image Generation
Generate and edit images with Nano Banana Pro through the PixMind API.
Generate or edit images with multilingual text rendering, structured layouts, and multiple visual references.
Provider
GoogleModel ID
nano-banana-proEndpoint
POST /v1/generationsModel notes
- Use reference_images only when the source URLs are publicly reachable.
- The size tier changes the billed API price.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Stable PixMind model ID. Use `nano-banana-pro`. Allowed values: |
prompt | string | Yes | Natural-language generation or editing instructions. |
size | string | No | Output resolution tier. This field affects request pricing. Allowed values: Default: |
aspect_ratio | string | No | Requested output aspect ratio. Allowed values: Default: |
reference_images | string[] (URI) | No | Reference image URLs used for editing, composition, subject, or style guidance. |
callback_url | string (URI) | No | HTTPS endpoint that receives the terminal task event. Polling remains available when omitted. |
Request example
curl https://aihub-admin.aimix.pro/v1/generations \
-H "Authorization: Bearer $PIXMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"prompt": "A multilingual product poster with clean information hierarchy",
"size": "2K",
"aspect_ratio": "4:3",
"reference_images": [
"https://example.com/product.jpg"
]
}'const response = await fetch("https://aihub-admin.aimix.pro/v1/generations", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "nano-banana-pro",
"prompt": "A multilingual product poster with clean information hierarchy",
"size": "2K",
"aspect_ratio": "4:3",
"reference_images": [
"https://example.com/product.jpg"
]
})
});
const task = await response.json();Accepted task response
Generation is asynchronous. Save the id from the response and poll GET /v1/generations/{id} until it reaches a terminal status.
{
"id": "img_01JXYZ...",
"model": "nano-banana-pro",
"status": "processing"
}API pricing
| Configuration | Price |
|---|---|
| 1K output | $0.120 / image |
| 2K output | $0.160 / image |
| 4K output | $0.240 / image |
API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.