Basic Usage
Prerequisites
Before using ai.TokenHub API, complete the following preparation:
1. Register an Account
Visit ai.TokenHub to register your account.

2. Create API Keys
After logging in, go to the "Tokens" page to create your API keys.
Steps:


Configuration:
| Setting | Description |
|---|---|
| Token Name | Used to identify this API Key, suggest filling in purpose like "Development Test" |
| Spending Limit | Set monthly spending cap, auto-disabled when reached (optional) |
| Allowed Models | Select model range accessible by this Key (optional) |
API Endpoints
| Type | URL |
|---|---|
| Main URL | https://ai-tokenhub.com |
| Full URL | https://ai-tokenhub.com/v1 |
| Chat API | https://ai-tokenhub.com/v1/chat/completions |
| Responses API | https://ai-tokenhub.com/v1/responses |
Next Steps
- See API Test for complete API examples
- See API Reference for more API details