Nano Banana 2.1 (Gemini Nano Banana 2.1)
google/gemini-nano-banana-2.1Nano Banana 2.1 (Gemini Nano Banana 2.1) is Google's Flash-tier image generation and editing model, succeeding Nano Banana 2 and producing images alongside text through the native Gemini generateContent API. It improves prompt adherence, text rendering, product recontextualization and multi-turn editing consistency, supports extreme aspect ratios and 1K to 4K output, and can ground generation with Google web and image search. Pick Nano Banana Pro instead for the most demanding professional design work.
- ราคาอินพุต
- $1.50USD / 1M โทเค็น
- ราคาเอาต์พุต
- $7.50USD / 1M โทเค็น
- อ่านแคช
- $1.50USD / 1M โทเค็น
- หน้าต่างบริบท
- 65.5K
- เอาต์พุตสูงสุด
- 32.8K
ลองใช้โมเดล
Gemini-native API
โมเดลนี้สร้างรูปภาพผ่าน Gemini generateContent API และไม่พร้อมใช้งานบน Chat Completions หรือใน Playground ใช้ตัวอย่างคำขอด้านล่างพร้อม SandBase API key ของคุณ
การ์ดโมเดล
ข้อมูลจำเพาะ
ราคา
- อินพุต
- $1.50 / 1M โทเค็น
- เอาต์พุต
- $7.50 / 1M โทเค็น
- อ่านแคช
- $1.50 / 1M โทเค็น
บริบทและ modalities
- หน้าต่างบริบท
- 65,536 โทเค็น
- เอาต์พุตสูงสุด
- 32,768 โทเค็น
- อินพุต
- ข้อความ, ภาพ
- เอาต์พุต
- ข้อความ
ความสามารถ
- แชท
- รองรับ
- วิชัน
- รองรับ
- การให้เหตุผล
- รองรับ
- เอาต์พุตแบบมีโครงสร้าง
- ไม่รองรับ
- การเรียกใช้ฟังก์ชัน
- ไม่รองรับ
- อินพุตเสียง
- ไม่รองรับ
การเข้าถึง
- ผู้ให้บริการ
- รหัสโมเดล
- google/gemini-nano-banana-2.1
- การทำงาน
- sync
- Base URL
- https://api.sandbase.ai
- API
- Gemini generateContent API
- Endpoint
- /v1beta/models/google/gemini-nano-banana-2.1:generateContent
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์แบบ Gemini-native ที่ใช้การยืนยันตัวตนด้วย SandBase API key และการติดตามการใช้งาน
curl -X POST "https://api.sandbase.ai/v1beta/models/google/gemini-nano-banana-2.1:generateContent" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "A watercolor illustration of a fox in a snowy forest"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}'สคีมาขาเข้า
10 พารามิเตอร์ · จำเป็น 1 · ไม่บังคับ 9
| พารามิเตอร์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
messages | object[] | จำเป็น | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | ไม่บังคับ | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | ไม่บังคับ | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | ไม่บังคับ | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | ไม่บังคับ | Nucleus sampling: only tokens within this cumulative probability are considered. · ต่ำสุด: 0 · สูงสุด: 1 |
stream | boolean | ไม่บังคับ | Stream the response as server-sent events instead of returning it in one piece. · ค่าเริ่มต้น: false |
max_tokens | integer | ไม่บังคับ | Maximum number of tokens to generate in the response. · สูงสุด: 32768 |
temperature | number | ไม่บังคับ | Sampling temperature. Higher values make output more random; lower values make it more focused. · ต่ำสุด: 0 · สูงสุด: 2 · ค่าเริ่มต้น: 1 |
tool_choice | string | ไม่บังคับ | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | ไม่บังคับ | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
สคีมาเอาต์พุต
| ฟิลด์ | ประเภท | คำอธิบาย |
|---|---|---|
id | string | ตัวระบุเฉพาะสำหรับ completion |
object | string | ประเภทอ็อบเจ็กต์ เช่น "chat.completion" |
model | string | โมเดลที่ใช้สำหรับ completion |
choices | array | รายการตัวเลือกของ completion |
choices[].message.content | string | เนื้อหาข้อความที่สร้างขึ้น |
choices[].finish_reason | string | เหตุผลที่หยุดการสร้าง |
usage.prompt_tokens | integer | จำนวนโทเค็นในพรอมต์ |
usage.completion_tokens | integer | จำนวนโทเค็นใน completion |
usage.total_tokens | integer | โทเค็นที่ใช้ทั้งหมด |
เลือกโมเดลของคุณ
เปรียบเทียบโมเดล
| โมเดล | บริบท | อินพุต / 1M | เอาต์พุต / 1M | เปิดตัว |
|---|---|---|---|---|
Google | 64K | $1.50 | $7.50 | 8 ต.ค. 2569 |
Google | 1M | $3.00 | $15.00 | 18 พ.ย. 2569 |
Google | 1M | $1.50 | $7.50 | 12 พ.ย. 2569 |
Google | 1M | $4.00 | $20.00 | 10 พ.ย. 2569 |
Google | 1M | $4.00 | $20.00 | 13 ต.ค. 2569 |
Google | 1M | $1.50 | $7.50 | 2 ก.ย. 2569 |
คำถาม
คำถามที่พบบ่อย
ฉันจะเรียก Google Nano Banana 2.1 (Gemini Nano Banana 2.1) ผ่าน SandBase ได้อย่างไร?
สร้าง SandBase API key แล้วส่งคำขอด้วย model ID "google/gemini-nano-banana-2.1" ไปที่ Gemini generateContent API (/v1beta/models/google/gemini-nano-banana-2.1:generateContent) ที่ https://api.sandbase.ai ตัวอย่างคำขอบนหน้านี้แสดง payload ที่ถูกต้องทั้งหมด
Google Nano Banana 2.1 (Gemini Nano Banana 2.1) ราคาเท่าไร?
$1.50 ต่อ 1M โทเค็นอินพุต และ $7.50 ต่อ 1M โทเค็นเอาต์พุต คิดค่าบริการต่อคำขอจากยอดคงเหลือ SandBase ของคุณ ส่วนลด หากมี จะแสดงไว้ในราคาในหน้านี้
หน้าต่างบริบทของ Google Nano Banana 2.1 (Gemini Nano Banana 2.1) คือเท่าไร?
บริบท 65.5K โทเค็น พร้อมเอาต์พุตได้สูงสุด 32.8K โทเค็นต่อการตอบกลับ
Google Nano Banana 2.1 (Gemini Nano Banana 2.1) รองรับฟีเจอร์อะไรบ้าง?
Google Nano Banana 2.1 (Gemini Nano Banana 2.1) รองรับ วิชัน (รับภาพเข้า), การให้เหตุผล ดูรายการทั้งหมดได้ใน Specifications ด้านบน
ฉันจำเป็นต้องมีบัญชี Google แยกต่างหากไหม?
ไม่จำเป็น SandBase API key และยอดคงเหลือหนึ่งชุดให้คุณเข้าถึง Google Nano Banana 2.1 (Gemini Nano Banana 2.1) และโมเดลอื่น ๆ ในแค็ตตาล็อกได้ คุณไม่ต้องสมัครใช้งานกับ Google แยกต่างหาก
