iT邦幫忙

2025 iThome 鐵人賽

DAY 5
0

前言:

昨天我們成功的將環境配置好了,今天我們還需要拿到最終要的API key。
今天我們會做到將 Notion 和 Gemini 的 API Key 拿到手。
我會帶大家手把手教學的,跟上我的腳步吧 !


Gemini API 獲取步驟:

  1. 前往 Google AI Studio 網站:https://aistudio.google.com/

  2. 登入你的 Google 帳戶,並點擊網頁左邊側欄的”Dashboard” 中會看到一個 "API key" 按鈕,按下去。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023haCfXeI5i9.png

  3. 進來後會看到這個頁面,然後我們按下右上角 “+ Create API key ”。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023YT2crUFEDh.png

  4. 點進來後會有一個搜尋框你只需要點一下並選擇下面 Gemini API 即可
    這邊若是第一次使用系統會自動幫你創建一個 project,你所有使用的用量都會被記錄在這個 project 之下
    但第一次使用就沒有這些問題只需要大力地按下 Gemini API即可。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023box1VLj9ov.png

  5. 接者我們就可以創建自己的一個API key 了。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023imWqn3RY8S.png

  6. 做到這一步我們就已經獲得我們Gemini API key 了。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023nj1UpwHD2v.png

Notion API 獲取步驟:

  1. 前往 Notion 官方整合管理頁:https://www.notion.so/my-integrations

  2. 登入你的 Notion 帳號

  3. 建立新整合

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023IHkllOibNo.png

  4. 設定這個整合的名稱與要關聯的工作區。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023lOz1Wjq69h.png

  5. 再來我們要在”配置”中滑到下面,設定這個API可以有什麼功能。

    https://ithelp.ithome.com.tw/upload/images/20250919/201780238QAL5tvuMC.png

  6. 接著再"存取權限”中選擇它可以存取的頁面

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023NsnUwMEfT2.png

  7. 選擇好了並按下”更新存取權限”即可。

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023CFdVpHr2fo.png

  8. 那我們的Notion API Key 其實就是”內部整合密鑰”

    https://ithelp.ithome.com.tw/upload/images/20250919/20178023XDKDVFDyuL.png

到這邊我們的 Gemini 跟 Notion 的API Key 我們都順利獲得了這部分就到一個段落了。
記得我們API Key的資料不要分享給別人喔,不然到時候要用額度卻被用完了
然後我們明天會教如何將我們的API Key 接到 Claude desktop 中。
這樣就又更進一步了 ! 敬請期待。


上一篇
Day 4 | 開發環境配置: Node × Claude desktop 安裝
系列文
生成式AI 與 Notion 的碰撞 ?! 你還在 ctrl+c ctrl+v ?5
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言