API documentationCreate an API key
Create an API key
Create a key for your project and check which models it can use.
- Open the API Keys page after signing in.
- Create a key and give it an identifiable name, such as local-dev.
- If your account exposes expiry, quota, or model restrictions, start with the minimum access needed.
- Copy the full key into a password manager or local secret store. Revoke and replace it if it is exposed.
Verify the key
export TOKENPILOT_API_KEY='replace-with-your-key' # bash / zsh
# PowerShell: $env:TOKENPILOT_API_KEY = 'replace-with-your-key'curl "https://api.tokentpilot.com/v1/models" \
-H "Authorization: Bearer $TOKENPILOT_API_KEY"