Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Nano Banana 2.1 (Gemini Nano Banana 2.1)

google/gemini-nano-banana-2.1

Nano 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
รหัสโมเดล
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 และการติดตามการใช้งาน

Production API
เอ็นด์พอยต์ Gemini generateContent API
https://api.sandbase.ai/v1beta/models/google/gemini-nano-banana-2.1:generateContent
รหัสโมเดล
google/gemini-nano-banana-2.1
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"
    ]
  }
}'
01

สคีมาขาเข้า

10 พารามิเตอร์ · จำเป็น 1 · ไม่บังคับ 9

พารามิเตอร์ประเภทจำเป็นคำอธิบาย
messagesobject[]จำเป็นConversation so far, as an ordered list of messages with a role (system, user or assistant) and content.
seedintegerไม่บังคับBest-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results.
stopstring[]ไม่บังคับSequences where the model stops generating. The stop sequence is not included in the output.
toolsarrayไม่บังคับFunctions the model may call. Each tool declares a name, description and JSON Schema parameters.
top_pnumberไม่บังคับNucleus sampling: only tokens within this cumulative probability are considered. · ต่ำสุด: 0 · สูงสุด: 1
streambooleanไม่บังคับStream the response as server-sent events instead of returning it in one piece. · ค่าเริ่มต้น: false
max_tokensintegerไม่บังคับMaximum number of tokens to generate in the response. · สูงสุด: 32768
temperaturenumberไม่บังคับSampling temperature. Higher values make output more random; lower values make it more focused. · ต่ำสุด: 0 · สูงสุด: 2 · ค่าเริ่มต้น: 1
tool_choicestringไม่บังคับControls tool use: "auto", "none", "required", or a specific function.
response_formatobjectไม่บังคับOutput format, for example { "type": "json_object" } or a JSON Schema for structured output.
02

สคีมาเอาต์พุต

ฟิลด์ประเภทคำอธิบาย
idstringตัวระบุเฉพาะสำหรับ completion
objectstringประเภทอ็อบเจ็กต์ เช่น "chat.completion"
modelstringโมเดลที่ใช้สำหรับ completion
choicesarrayรายการตัวเลือกของ completion
choices[].message.contentstringเนื้อหาข้อความที่สร้างขึ้น
choices[].finish_reasonstringเหตุผลที่หยุดการสร้าง
usage.prompt_tokensintegerจำนวนโทเค็นในพรอมต์
usage.completion_tokensintegerจำนวนโทเค็นใน completion
usage.total_tokensintegerโทเค็นที่ใช้ทั้งหมด

เลือกโมเดลของคุณ

เปรียบเทียบโมเดล

โมเดลภาษาทั้งหมด
โมเดลบริบทอินพุต / 1Mเอาต์พุต / 1Mเปิดตัว
Google64K$1.50$7.508 ต.ค. 2569
Google1M$3.00$15.0018 พ.ย. 2569
Google1M$1.50$7.5012 พ.ย. 2569
Google1M$4.00$20.0010 พ.ย. 2569
Google1M$4.00$20.0013 ต.ค. 2569
Google1M$1.50$7.502 ก.ย. 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 แยกต่างหาก