Quick Start & Authentication Guide
Welcome to the Unified API Gateway. Use the Base URL and API Key below to call models.
1. Base URL
The unified API base URL is:
https://www.tokenpad.ai
If you are debugging locally or using a private deployment, you can use the corresponding port address allocated by the system.
2. Authentication Methods
The gateway performs strict authentication checks on all API endpoints. You can include your "API Key (Token)" in your requests using any of the following methods:
-
Standard Authorization Header (Recommended) Add a standard Bearer token to the HTTP request headers:
Authorization: Bearer sk-your_token_string_here -
Google Protocol Compatible Header If your client application uses the Google native protocol, you can use the official API Key header:
X-Goog-Api-Key: sk-your_token_string_here -
URL Query Parameter In some restricted environments or where only simple GET/POST requests are supported, you can append the key directly as a URL query parameter:
https://www.tokenpad.ai/v1/chat/completions?key=sk-your_token_string_here
[!IMPORTANT] Your API Key (Token) represents your account's credentials and billing source. Please keep it secure. Never hardcode keys in plaintext in client-side code (such as frontend HTML/JS). We recommend routing requests through a backend service or using environment variables to store keys.