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.