Skip to content

Google Gemini(PaLM) credentials#

คุณสามารถใช้ credentials เหล่านี้เพื่อยืนยันตัวตนกับ node ต่อไปนี้:

Prerequisites#

Supported authentication methods#

  • Gemini(PaLM) API key

ดูข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้ได้ที่ Google's Gemini API documentation

ดูเอกสาร Advanced AI ของ n8n

Using Gemini(PaLM) API key#

ในการกำหนดค่า credential นี้ คุณจะต้องมี:

  • API Host URL: ทั้ง PaLM และ Gemini ใช้ค่าเริ่มต้น https://generativelanguage.googleapis.com
  • API Key: สร้าง key ใน Google AI Studio

Custom hosts not supported

node ที่เกี่ยวข้องยังไม่รองรับ custom hosts หรือ proxies สำหรับ API host และต้องใช้ 'https://generativelanguage.googleapis.com'

วิธีสร้าง API key:

  1. ไปที่หน้า API Key ใน Google AI Studio: https://makersuite.google.com/app/apikey
  2. เลือก Create API Key
  3. คุณสามารถเลือกได้ว่าจะ Create API key in new project หรือค้นหา Google Cloud project ที่มีอยู่เพื่อ Create API key in existing project
  4. คัดลอก API key ที่สร้างขึ้นและเพิ่มลงใน credential ของ n8n