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

Nano Banana 2 (Gemini 3.1 Flash Image)

google/gemini-3.1-flash-image

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

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

สคีมาขาเข้า

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

พารามิเตอร์ประเภทจำเป็นคำอธิบาย
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.
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
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เปิดตัว
Google128K$0.50$3.0018 มิ.ย. 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
Google64K$1.50$7.508 ต.ค. 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 แยกต่างหาก