General Configuration Tutorial
OpenAI Compatible Protocol
The OpenAI compatible protocol is the most widely used interface standard in the LLM field. Most AI software and plugins support this protocol. This means you only need to obtain an API key from TokenHub to access almost all mainstream AI tools, including code editors, chat clients, note-taking software, translation plugins, etc.
Configuration Prerequisites
Please ensure the software/plugin meets the following requirements:
- Supports OpenAI compatible protocol
- Updated to the latest version
General Configuration Process
- Open the software/plugin you want to configure
- Find the Settings/Preferences page
- Locate the AI/Model/API related tab in settings
- Find and enable the Custom Model/OpenAI Compatible/Third-party API option
- Paste the API key you copied from TokenHub in the API Key input box
- Paste the corresponding address in the Base URL/Endpoint address input box (choose one based on the following scenarios)
| Endpoint Type | Address | Use Case |
|---|---|---|
| Base URL | https://ai-tokenhub.com/api/v1 | Base address to fill when developing with OpenAI compatible SDK, SDK will automatically complete the endpoint path |
| Chat Completion | https://ai-tokenhub.com/api/v1/chat/completions | Use when sending HTTP requests directly to call chat conversation interface |
| Responses | https://ai-tokenhub.com/api/v1/responses | Use when sending HTTP requests directly to call async task result query interface |
- Enter the model name/model ID you want to use in the model name input box (must be a model allowed by your token and the name must match exactly)
Example: doubao-seed-2-0-lite-260215
- Click Save/Verify/Add button to complete the configuration
Parameter Details
| Parameter Name | Description | Notes |
|---|---|---|
| API Key | Your authentication token | The key corresponding to your token, do not include extra spaces or line breaks when copying |
| Base URL | Interface root address | Fill according to the applicable address |
| Model Name | The LLM ID you want to call | Must match exactly with the platform model list, case-sensitive |
