GitHub Models API Key 获取教程

GitHub Models API Key 获取教程 — Free AI API

GitHub Models 使用 GitHub Personal Access Token 提供限流的免费 API 试用。

获取 API Key

  • 登录 GitHub,打开 Personal access tokens
  • 创建 Fine-grained token,并授予 GitHub Models 要求的 Models: readmodels:read)权限。
  • 复制 github_pat_... 并安全保存。

在 Free AI API 使用

在 GitHub Models Endpoint 页面把 Token 粘贴到 API Key 输入框,然后运行请求。

GitHub 免费 API 有限流且仍处于 public preview;权限要求已按 GitHub Models 官方文档核对。

安全提示:不要公开 API Key。Free AI API 只会在本次请求中转发凭证,不会在服务器保存。

github.com

GitHub Models

GitHub Models offers free, rate-limited API access to selected OpenAI, DeepSeek, and open models through a GitHub token, with no separate provider account needed.

社区反馈

评论与你的 GitHub 账号绑定,登录后即可参与讨论。