Google DeepMind
Nano Banana 2.1
สร้างภาพจากพรอมต์ข้อความ ระบุสิ่งที่จะให้ปรากฏในภาพ การจัดองค์ประกอบ แสง สไตล์ และข้อความที่ต้องการให้แสดง แล้วเลือกขนาด โมเดลจะใช้อัตราส่วนภาพที่ใกล้เคียงที่สุดจาก 14 แบบ และส่งออกภาพที่ความละเอียด 1K, 2K หรือ 4K
nano-banana-2.1- เอนด์พอยต์
POST /api/v2/run- อินพุต
- Text prompt · Reference images
- เอาต์พุต
- Image (PNG / WebP)
- อัตราค่าบริการ
- ~$0.0845 / 1K (1024px)
ตัวอย่างพรอมต์“A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of w…”
เหมาะสำหรับ
- สร้างภาพจากข้อความและแก้ไขภาพแบบ multipart ผ่าน POST /api/v2/run ด้วยคีย์ API เดียว
- ประเมินราคาได้ฟรีผ่าน POST /api/v2/quote ก่อนใช้เครดิต
- รับคุณภาพภาพจากโมเดลเรือธงของพันธมิตรด้วยคีย์ API เดียว พร้อมตรวจวงเงินตอนส่งคำขอ
เอกสารอ้างอิง API
- ID โมเดลสำหรับ API
nano-banana-2.1- ผู้พัฒนาโมเดล
- Google DeepMind
- ประเภทโมเดล
- การสร้างและแก้ไขภาพ
- อินพุต
- Text prompt · Reference images
- เอาต์พุต
- Image (PNG / WebP)
- เอนด์พอยต์
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- โครงสร้างพื้นฐาน
- ทรัพยากรคลาวด์พันธมิตร
พารามิเตอร์คำขอ
modelstring · จำเป็นExact Runstage model slug (nano-banana-2.1).
promptstring · จำเป็นVisual description of subject, composition, lighting, and medium.
width / heightinteger · ไม่บังคับOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
พารามิเตอร์เพิ่มเติม
qualityseedenhance_prompt
เริ่มต้นอย่างรวดเร็ว
คัดลอกคำขอที่พร้อมใช้สำหรับ ID โมเดล nano-banana-2.1 ตรวจสอบราคาประเมินฟรีก่อน (สรุปค่าใช้จ่ายจริงเมื่องานเสร็จ) แล้วรันด้วยคีย์ API ของ Runstage
เปิดสตูดิโอ# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"nano-banana-2.1","width":1024,"height":1024}'
# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "nano-banana-2.1", "prompt": "A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.", "width": 1024, "height": 1024, "seed": 42 }'
# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=nano-banana-2.1' --form-string 'prompt=A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.' -F "image=@input.png"
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'ราคา
| หน่วยคิดค่าบริการและตัวเลือก | อัตรา (USD) |
|---|---|
| 1K · 1024×1024Standard square or portrait output (estimated) | ~$0.0845 |
| 2K · 2048×2048High-resolution editorial artwork (estimated) | ~$0.1372 |
| 4K · 4096×4096Ultra-high-resolution print master (estimated) | ~$0.2229 |
หมายเหตุการเรียกเก็บเงิน
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- ประเมินค่าใช้จ่ายได้ฟรีผ่าน POST /api/v2/quote ก่อนใช้เครดิตที่เติมไว้
- เมื่องานเสร็จหรือล้มเหลว ระบบจะปรับยอดที่กันไว้ให้ตรงกับค่าใช้จ่ายจริงโดยอัตโนมัติ และคืนเครดิตที่ไม่ได้ใช้
- โมเดลใช้ทรัพยากรภายนอกของพันธมิตร โดยสรุปค่าใช้จ่ายตามข้อมูลการประมวลผลที่รายงาน
ราคาแคตตาล็อกปัจจุบันบน Runstage ใช้เครดิต USD แบบเติมล่วงหน้าพร้อมวงเงินต่อคีย์
เปรียบเทียบในแคตตาล็อกทั้งหมด