TokenPilotAPI documentation
English简体中文繁體中文
Console ↗
API documentationCreate an API key

Create an API key

Create a key for your project and check which models it can use.

  1. Open the API Keys page after signing in.
  2. Create a key and give it an identifiable name, such as local-dev.
  3. If your account exposes expiry, quota, or model restrictions, start with the minimum access needed.
  4. Copy the full key into a password manager or local secret store. Revoke and replace it if it is exposed.
Create an API key

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"