GitHub Models API Key Guide

GitHub Models provides free, rate-limited API experimentation with a GitHub personal access token.

Get the API key

  • Sign in to GitHub and open Personal access tokens.
  • Create a fine-grained token and grant the Models: read (models:read) permission required by GitHub Models.
  • Copy the github_pat_... value and keep it secure.

Use the key on Free AI API

Paste the token into the API Key field on a GitHub Models endpoint page and run a request.

GitHub's free API usage is rate-limited and in public preview. Permissions were verified against the official GitHub Models documentation.

Security: never publish the key. Free AI API forwards it for the current request and does not store it on the server.

github.com
50

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 Models API Key Guide | Free AI API