Nano Banana 2 (Gemini 3.1 Flash Image)
google/gemini-3.1-flash-imageNano Banana 2 (Gemini 3.1 Flash Image) is Google's image generation and conversational image editing model in the Gemini 3 series, producing images alongside text from text, image, video and PDF input. Google positions it as the high-efficiency, low-latency counterpart to Nano Banana Pro for high-volume developer use, adding output resolutions from 0.5K to 4K, extra wide and tall aspect ratios, image search grounding and improved multilingual text rendering. Choose Nano Banana Pro for complex, precision design work.
- ราคาอินพุต
- $0.50USD / 1M โทเค็น
- ราคาเอาต์พุต
- $3.00USD / 1M โทเค็น
- หน้าต่างบริบท
- 131.1K
- เอาต์พุตสูงสุด
- 32.8K
ลองใช้โมเดล
Gemini-native API
โมเดลนี้สร้างรูปภาพผ่าน Gemini generateContent API และไม่พร้อมใช้งานบน Chat Completions หรือใน Playground ใช้ตัวอย่างคำขอด้านล่างพร้อม SandBase API key ของคุณ
การ์ดโมเดล
ข้อมูลจำเพาะ
ราคา
- อินพุต
- $0.50 / 1M โทเค็น
- เอาต์พุต
- $3 / 1M โทเค็น
บริบทและ modalities
- หน้าต่างบริบท
- 131,072 โทเค็น
- เอาต์พุตสูงสุด
- 32,768 โทเค็น
- อินพุต
- ข้อความ, ภาพ
- เอาต์พุต
- ข้อความ
ความสามารถ
- แชท
- รองรับ
- วิชัน
- รองรับ
- การให้เหตุผล
- รองรับ
- เอาต์พุตแบบมีโครงสร้าง
- ไม่รองรับ
- การเรียกใช้ฟังก์ชัน
- ไม่รองรับ
- อินพุตเสียง
- ไม่รองรับ
การเข้าถึง
- ผู้ให้บริการ
- รหัสโมเดล
- google/gemini-3.1-flash-image
- การทำงาน
- sync
- Base URL
- https://api.sandbase.ai
- API
- Gemini generateContent API
- Endpoint
- /v1beta/models/google/gemini-3.1-flash-image:generateContent
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์แบบ Gemini-native ที่ใช้การยืนยันตัวตนด้วย SandBase API key และการติดตามการใช้งาน
curl -X POST "https://api.sandbase.ai/v1beta/models/google/gemini-3.1-flash-image: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"
]
}
}'สคีมาขาเข้า
7 พารามิเตอร์ · จำเป็น 1 · ไม่บังคับ 6
| พารามิเตอร์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
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. |
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 |
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 | 128K | $0.50 | $3.00 | 18 มิ.ย. 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 | 64K | $1.50 | $7.50 | 8 ต.ค. 2569 |
คำถาม
คำถามที่พบบ่อย
ฉันจะเรียก Google Nano Banana 2 (Gemini 3.1 Flash Image) ผ่าน SandBase ได้อย่างไร?
สร้าง SandBase API key แล้วส่งคำขอด้วย model ID "google/gemini-3.1-flash-image" ไปที่ Gemini generateContent API (/v1beta/models/google/gemini-3.1-flash-image:generateContent) ที่ https://api.sandbase.ai ตัวอย่างคำขอบนหน้านี้แสดง payload ที่ถูกต้องทั้งหมด
Google Nano Banana 2 (Gemini 3.1 Flash Image) ราคาเท่าไร?
$0.50 ต่อ 1M โทเค็นอินพุต และ $3 ต่อ 1M โทเค็นเอาต์พุต คิดค่าบริการต่อคำขอจากยอดคงเหลือ SandBase ของคุณ ส่วนลด หากมี จะแสดงไว้ในราคาในหน้านี้
หน้าต่างบริบทของ Google Nano Banana 2 (Gemini 3.1 Flash Image) คือเท่าไร?
บริบท 131.1K โทเค็น พร้อมเอาต์พุตได้สูงสุด 32.8K โทเค็นต่อการตอบกลับ
Google Nano Banana 2 (Gemini 3.1 Flash Image) รองรับฟีเจอร์อะไรบ้าง?
Google Nano Banana 2 (Gemini 3.1 Flash Image) รองรับ วิชัน (รับภาพเข้า), การให้เหตุผล ดูรายการทั้งหมดได้ใน Specifications ด้านบน
ฉันจำเป็นต้องมีบัญชี Google แยกต่างหากไหม?
ไม่จำเป็น SandBase API key และยอดคงเหลือหนึ่งชุดให้คุณเข้าถึง Google Nano Banana 2 (Gemini 3.1 Flash Image) และโมเดลอื่น ๆ ในแค็ตตาล็อกได้ คุณไม่ต้องสมัครใช้งานกับ Google แยกต่างหาก
