Product and concept illustrations from text
Gemini Nano Banana 2.1
New Launched on IteraCompute
gemini/gemini-nano-banana-2.1- Tool calling
UnsupportedTool calling · Unsupported
- Reasoning
SupportedReasoning · Supported
- Vision
SupportedVision · Supported
- Streaming
SupportedStreaming · Supported
- JSON mode
UnsupportedJSON mode · Unsupported
USD / 1M tokens
- Text input
- $1.50
- Image input
- $1.50
- Image output
- $30.00
- Text / thinking output
- $7.50
- Precision
- Official precision
- Price checked
Model availability and prices
Overview
Gemini Nano Banana 2.1 accepts text and reference images for image generation and editing. Use /v1/images/generations with prompt or Gemini contents. Streaming returns image progress and completed-image events, followed by total usage.
- Version
- gemini-nano-banana-2.1
- Input / output
- text, image / text, image
- Endpoint
- /v1/images/generations
API protocols and integration
- Base URL · OpenAI SDK
https://api.iteracompute.com/v1- Authentication
Authorization: Bearer ITERACOMPUTE_API_KEY
Choose request fields, response parsing and stream completion by endpoint. This table describes wire formats; see this model's capabilities and verification scope.
| Customer endpoint | Model status | Input / output budget | Result | SSE completion |
|---|---|---|---|---|
OpenAI Images · GenerationPOST /v1/images/generations | Declared for this model | prompt; Gemini: contents / generationConfign (1–4); model-specific size and quality | data[].b64_json; usage | image_generation.completed |
OpenAI Images · EditingPOST /v1/images/edits | Not declared; acceptance pending | multipart: image[]; prompt; optional maskn (1–4); size; quality | data[].b64_json; usage | unsupported |
Generation uses JSON; GPT image edits use multipart. Images are returned as base64 and billed by actual tokens.
LLMs.txt · Copy for an AI coding assistant
Includes this model's ID, wire formats and parameter constraints. Check this page's verification scope and current prices before use.
# IteraCompute · gemini/gemini-nano-banana-2.1
Model ID: gemini/gemini-nano-banana-2.1
Base URL (OpenAI SDK): https://api.iteracompute.com/v1
Authentication: Authorization: Bearer ITERACOMPUTE_API_KEY
Content-Type: application/json
Use only the customer endpoints below. Request and response formats differ by protocol. An endpoint declaration does not certify every capability.
## Images · Generation
POST https://api.iteracompute.com/v1/images/generations
Input: prompt; Gemini: contents / generationConfig
Output budget: n (1–4); model-specific size and quality
Read result: data[].b64_json; usage
SSE completion: image_generation.completed
Docs: https://iteracompute.com/docs.html#images-api
## Parameters
Configuration and parameter acceptance do not establish semantic capability. Do not invent undisclosed defaults.
Parameter revision: 1b7cb9c6eb26f5e2d8a02d03f6349b28b09ca8e1fc7afb60f79e69cd883556dd
Capability tools: disabled
Capability reasoning: configured enabled (see verification scope)
Capability vision: configured enabled (see verification scope)
Capability streaming: configured enabled (see verification scope)
Capability json_mode: disabled
Capability image_generation: configured enabled (see verification scope)
Capability image_editing: configured enabled (see verification scope)
- prompt: string; accepted; min=unknown; max=unknown; default=Undisclosed. Image instruction, 1–4000 UTF-8 bytes.
- n: integer; accepted; min=1; max=4; default=Undisclosed. Number of completions; many routes accept only 1.
- size: enum; accepted; values=["1024x1024"]; default=Undisclosed. Image dimensions; pixel and aspect limits also apply.
- response_format: enum; accepted; values=["b64_json"]; default=Undisclosed. Text: Chat output format. Images: b64_json only; not text JSON mode.
- stream: boolean; accepted; min=unknown; max=unknown; default=Undisclosed. Enable SSE streaming; completion markers depend on the protocol.
- contents: array; accepted; min=unknown; max=unknown; default=Undisclosed. Gemini native messages with text and inlineData reference images.
- systemInstruction: object; accepted; min=unknown; max=unknown; default=Undisclosed. Gemini image system instruction; text parts only.
- generationConfig: object; accepted; min=unknown; max=unknown; default=Undisclosed. Gemini image configuration: output token budget, image size/aspect and thinking. See model limits.
- safetySettings: array; accepted; min=unknown; max=unknown; default=Undisclosed. Gemini native image safety category settings.
## Images example · JSON body
```json
{
"model": "gemini/gemini-nano-banana-2.1",
"prompt": "A blue square on a white background",
"n": 1,
"size": "1024x1024",
"response_format": "b64_json",
"generationConfig": {
"maxOutputTokens": 8192,
"thinkingConfig": {
"thinkingLevel": "MINIMAL"
},
"imageConfig": {
"imageSize": "1K",
"aspectRatio": "1:1"
}
}
}
```
## References
Model catalog: https://iteracompute.com/models/
Current prices and billing: https://iteracompute.com/pricing/
Documentation index: https://iteracompute.com/llms.txt
Unknown prices are not zero. Account and subscription limits also apply.
Never include a real API key in an LLM prompt or client-side code.
API parameters
- response_format is b64_json. Gemini reference images use contents with inlineData on the generation endpoint.
- Use thinkingConfig.thinkingLevel MINIMAL, MEDIUM or HIGH; existing LOW requests remain compatible. Reasoning tokens are billed as text output.
- Text/image input: $1.50 per million tokens; text/reasoning output: $7.50; image output: $30. Actual supplier token usage determines the charge, rounded up to USD micros.
- The official model context is not a promise of the same payload size on this image endpoint; the platform applies narrower request and image bounds.
These parameters and ranges describe the current route. Account and context limits also apply. Parameter acceptance does not establish model capability.
- Tool calling
- Unsupported
- Reasoning
- Supported
- Vision
- Supported
- Streaming
- Supported
- JSON mode
- Unsupported
- Image generation
- Supported
- Image editing
- Supported
Parameters and values
Click a parameter to copy its name; scroll the table horizontally to see all columns. Usage notes identify protocol differences; identical names do not guarantee cross-endpoint support.
| Parameter | Type | Acceptance | Range | Usage / protocol |
|---|---|---|---|---|
| string | Accepted | — | Image instruction, 1–4000 UTF-8 bytes. | |
| integer | Accepted | [1, 4] | Number of completions; many routes accept only 1. | |
| enum | Accepted | ["1024x1024"] | Image dimensions; pixel and aspect limits also apply. | |
| enum | Accepted | ["b64_json"] | Text: Chat output format. Images: b64_json only; not text JSON mode. | |
| boolean | Accepted | — | Enable SSE streaming; completion markers depend on the protocol. | |
| array | Accepted | — | Gemini native messages with text and inlineData reference images. | |
| object | Accepted | — | Gemini image system instruction; text parts only. | |
| object | Accepted | — | Gemini image configuration: output token budget, image size/aspect and thinking. See model limits. | |
| array | Accepted | — | Gemini native image safety category settings. |
Current configuration example
POST /v1/images/generations
{
"model": "gemini/gemini-nano-banana-2.1",
"prompt": "A blue square on a white background",
"n": 1,
"size": "1024x1024",
"response_format": "b64_json",
"generationConfig": {
"maxOutputTokens": 8192,
"thinkingConfig": {
"thinkingLevel": "MINIMAL"
},
"imageConfig": {
"imageSize": "1K",
"aspectRatio": "1:1"
}
}
}Parameter revision:1b7cb9c6eb26
Technical reference (current configuration takes precedence)
API parameters
Click a parameter to copy its name.
gemini/gemini-nano-banana-2.1[{"role": "user", "content": "Hello!"}]
Additional capabilities and model-specific parameters have not been verified on this route. Test required features before production use.
Parameter reference
Parameter usage
- Supports image generation and editing, up to 14 reference images and 1K, 2K or 4K output. Function calling is unsupported. The provider model page does not document streaming support.
Interface reference checked: 2026-10-23
API
POST /v1/images/generations
import base64, json, os, urllib.request
body = json.loads("{\n \"model\": \"gemini/gemini-nano-banana-2.1\",\n \"prompt\": \"A blue square on a white background\",\n \"n\": 1,\n \"size\": \"1024x1024\",\n \"response_format\": \"b64_json\",\n \"generationConfig\": {\n \"maxOutputTokens\": 8192,\n \"thinkingConfig\": {\n \"thinkingLevel\": \"MINIMAL\"\n },\n \"imageConfig\": {\n \"imageSize\": \"1K\",\n \"aspectRatio\": \"1:1\"\n }\n }\n}")
request = urllib.request.Request(
"https://api.iteracompute.com/v1/images/generations",
data=json.dumps(body).encode(),
headers={"Authorization": "Bearer " + os.environ["ITERACOMPUTE_API_KEY"],
"Content-Type": "application/json"},
)
with urllib.request.urlopen(request, timeout=1800) as response:
result = json.load(response)
with open("generated.png", "wb") as image:
image.write(base64.b64decode(result["data"][0]["b64_json"]))
print(result["usage"])import { writeFile } from "node:fs/promises";
const response = await fetch("https://api.iteracompute.com/v1/images/generations", {
method: "POST",
headers: { Authorization: "Bearer " + process.env.ITERACOMPUTE_API_KEY, "Content-Type": "application/json" },
body: JSON.stringify({
"model": "gemini/gemini-nano-banana-2.1",
"prompt": "A blue square on a white background",
"n": 1,
"size": "1024x1024",
"response_format": "b64_json",
"generationConfig": {
"maxOutputTokens": 8192,
"thinkingConfig": {
"thinkingLevel": "MINIMAL"
},
"imageConfig": {
"imageSize": "1K",
"aspectRatio": "1:1"
}
}
}),
});
if (!response.ok) throw new Error(await response.text());
const result = await response.json();
await writeFile("generated.png", Buffer.from(result.data[0].b64_json, "base64"));
console.log(result.usage);curl https://api.iteracompute.com/v1/images/generations \
-H "Authorization: Bearer ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini/gemini-nano-banana-2.1",
"prompt": "A blue square on a white background",
"n": 1,
"size": "1024x1024",
"response_format": "b64_json",
"generationConfig": {
"maxOutputTokens": 8192,
"thinkingConfig": {
"thinkingLevel": "MINIMAL"
},
"imageConfig": {
"imageSize": "1K",
"aspectRatio": "1:1"
}
}
}'Pricing
These are text-token rates from the public catalog. Image generation is billed separately; a zero text-output rate does not mean free images. Confirm image pricing and endpoint availability in the Console before use.
Token calculator: not applicable to image generation. Image tokens, images, seconds and tool fees require their own published units and actual usage; a zero text rate does not mean free images.
- Version / Model ID
gemini/gemini-nano-banana-2.1gemini-nano-banana-2.1- Context
- 128K
- Precision
- Official precision
- Price checked
- Verification scope and sources
View verification scope and sources
2026-11-13 · Verified text-to-image, a blue-to-green reference edit with visual review, n=1 and n=4, streaming completion and cancellation, native usage with reasoning tokens, authentication, invalid parameters and wallet reconciliation. Final runtime accepts MINIMAL. Tests used 1K square output; full model context, other resolutions and broad image quality were not tested.
Price source: Public Models API · Price and precision evidence are reviewed separately.
Cache-read rates require actual cache hits. A missing rate (—) is unknown, not zero. See usage limits for account and Gateway context restrictions.
Usage limits
- Tool calling and JSON structured output are unavailable on this image interface.
- The compatibility size field accepts only 1024x1024; native resolution and aspect ratio use generationConfig.imageConfig.
- The platform accepts 1–4 images per request, at most 4000 UTF-8 text bytes and four reference images within its request-size limits.
- Only 1K square generation and editing were visually reviewed in this acceptance. Other resolutions, aspect ratios and image quality are not established by these results.
Use cases
Changes to a supplied image, such as color and composition
Image variations with explicit image settings
New arrivals
Explore the models selected for New Arrivals, with API pricing, supported capabilities and integration guides.
Qwen4-Max
qwen/qwen4-max
Qwen4-Max through Alibaba Cloud Model Studio, with text, reasoning, tools and image input.
Launched on IteraCompute
- Input
- $1.50
- Output
- $4.50
USD / 1M tokens
GPT-6.1 Terra
openai/gpt-6.1-terra
OpenAI text and visual reasoning model for applications, coding and document workflows.
Launched on IteraCompute
- Input
- $1.00
- Output
- $5.00
USD / 1M tokens
Kimi K3.1 Pro
moonshotai/kimi-k3.1-pro
A Kimi model for text, image understanding and tool use.
Launched on IteraCompute
- Input
- $1.60
- Output
- $8.00
USD / 1M tokens