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 모드 · 지원하지 않음
100만 토큰당 USD
- 텍스트 입력
- $1.50
- 이미지 입력
- $1.50
- 텍스트·추론 출력
- $7.50
- 이미지 출력
- $30.00
- 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"
}
}
}'요금
100만 토큰당 USD
토큰 계산기는 이미지 생성에 적용되지 않습니다. 이미지 토큰, 이미지 수, 초 및 도구 비용에는 각각 공개된 단위와 실제 사용량이 필요합니다. 텍스트 단가 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 요금, 지원 기능 및 연동 가이드를 확인하세요.
MiniMax H3 Lite
신규
minimax/MiniMax-H3-Lite
MiniMax H3 Lite is the cost-optimized 480P and 768P multimodal video generation model (4–15 s) with synchronized audio.
IteraCompute 출시일
- 480P · per output second
- $0.025
미국 달러 단가 · 표시 금액은 소수점 셋째 자리까지 올림
MiniMax H3 Highspeed
신규
minimax/MiniMax-H3-Highspeed
MiniMax H3 Highspeed delivers accelerated asynchronous 480P and 768P multimodal video generation (4–15 s) with synchronized audio.
IteraCompute 출시일
- 480P · per output second
- $0.04
미국 달러 단가 · 표시 금액은 소수점 셋째 자리까지 올림
MiniMax H3 Image Highspeed
신규
minimax/MiniMax-H3-Image-Highspeed
MiniMax H3 Image Highspeed is the accelerated H3 image generation and editing tier for low-latency 1K–4K visual workflows.
IteraCompute 출시일
- 텍스트 입력
- $2.30
- 이미지 출력
- $7.60
100만 토큰당 USD