From e7fb0c92bc78b28424139cdecc0da992d6ffe8cd Mon Sep 17 00:00:00 2001 From: ericwyuan Date: Thu, 20 Aug 2026 02:18:42 +0800 Subject: [PATCH] =?UTF-8?q?docs(readme):=20=E8=AE=B0=E5=BD=95=20Gemini=20A?= =?UTF-8?q?PI=20Key=20=E4=B8=8E=E8=B0=83=E7=94=A8=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=EF=BC=88gemini-flash-latest=EF=BC=8C=E5=B7=B2=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=8F=AF=E7=94=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 50aa823..d4f7999 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,35 @@ sentinel-home-ai/ | 账号 | ericwyuan | | 密码 | iLoveJava5 | +### Gemini API Key (Google AI Studio) + +| 项目 | 值 | +|------|-----| +| API Key | AQ.Ab8RN6I0l8hC7hLnNHRY6qOXdch5CTWczDNlS4c1XrneGHipUQ | +| 模型 | gemini-flash-latest | +| 端点 | https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent | +| 验证状态 | 2026-08-20 测试可用 | + +调用示例: + +```bash +curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent" \ + -H 'Content-Type: application/json' \ + -H 'X-goog-api-key: AQ.Ab8RN6I0l8hC7hLnNHRY6qOXdch5CTWczDNlS4c1XrneGHipUQ' \ + -X POST \ + -d '{ + "contents": [ + { + "parts": [ + { + "text": "Explain how AI works in a few words" + } + ] + } + ] + }' +``` + ## 代码仓库 - Gitea: `http://192.168.50.64:3000/ericwyuan/sentinel-home-ai`