Product and concept illustrations from text
Gemini Nano Banana 2.1
신규 IteraCompute 출시일
gemini/gemini-nano-banana-2.1- Tool calling
지원하지 않음도구 호출 · 지원하지 않음
- Reasoning
지원됨추론 · 지원됨
- Vision
지원됨비전 · 지원됨
- Streaming
지원됨스트리밍 · 지원됨
- JSON mode
지원하지 않음JSON 모드 · 지원하지 않음
USD / 1M tokens
- Text input
- $1.50
- Image input
- $1.50
- Image output
- $30.00
- Text / thinking output
- $7.50
- 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 매개변수
매개변수 이름을 클릭하면 복사됩니다.
gemini/gemini-nano-banana-2.1[{"role": "user", "content": "Hello!"}]
이 경로의 추가 기능과 모델별 매개변수는 검증되지 않았습니다. 프로덕션 사용 전에 필요한 기능을 테스트하세요.
매개변수 참조
매개변수 사용법
- 이미지 생성과 편집, 최대 14개 참조 이미지, 1K·2K·4K 출력을 지원합니다. 함수 호출은 지원하지 않습니다. 제공업체 모델 페이지에 스트리밍 지원 여부가 명시되지 않았습니다.
인터페이스 참조 확인일: 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"
}
}
}'요금
공개 카탈로그의 텍스트 토큰 요금입니다. 이미지 생성은 별도 과금되며 텍스트 출력 요금이 0이어도 이미지는 무료가 아닙니다. 사용 전에 콘솔에서 이미지 가격과 엔드포인트 가용성을 확인하세요.
토큰 계산기는 이미지 생성에 적용되지 않습니다. 이미지 토큰, 이미지 수, 초 및 도구 비용에는 각각 공개된 단위와 실제 사용량이 필요합니다. 텍스트 단가 0은 무료 이미지를 의미하지 않습니다.
- Version / Model ID
gemini/gemini-nano-banana-2.1gemini-nano-banana-2.1- Context
- 128K
- 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.
가격 출처: 공개 Models API · 가격과 정밀도 근거는 별도로 검토합니다.
캐시 읽기 요금은 실제 캐시 적중에 적용됩니다. 누락된 요금(—)은 알 수 없음이며 0이 아닙니다. 계정과 Gateway 컨텍스트 제한은 사용 제한을 확인하세요.
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
신규 모델
신규 모델로 선정된 모델의 API 요금, 지원 기능 및 연동 가이드를 확인하세요.
Gemini 4 Hydrogen
gemini/gemini-4-hydrogen
Google Cloud lists Gemini 4 Hydrogen for fast coding assistance, multimodal input and high-volume text generation.
IteraCompute 출시일
- 입력
- $1.50
- 출력
- $7.50
USD / 100만 토큰
GPT-6.2 Astra
openai/gpt-6.2-astra
OpenAI lists GPT-6.2 Astra for complex engineering and long-horizon reasoning.
IteraCompute 출시일
- 입력
- $8.00
- 출력
- $40.00
USD / 100만 토큰
GPT-6.2 Sol
openai/gpt-6.2-sol
OpenAI lists GPT-6.2 Sol for everyday coding and agent workflows.
IteraCompute 출시일
- 입력
- $2.00
- 출력
- $10.00
USD / 100만 토큰