Skip to content

Basic Usage

Prerequisites

Before using AI-TokenHub API, complete the following preparation:

1. Register and Login

Visit AI-TokenHub to complete the registration process. The platform supports both individual self-registration and enterprise account activation.

  1. Visit the platform homepage, click the "Register" button in the upper right corner to enter the registration page Registration Page
  2. Fill in the registration information (phone number, password, verification code) to complete account registration Fill in Registration Information
  3. After completing registration, contact the platform administrator to get the invitation code to activate your account Get Invitation Code to Activate

Join Organization Successfully After the account is successfully activated, join the corresponding enterprise organization, and you can log in to the platform after joining successfully

2. Create API Keys

After logging in, go to the "Tokens" page in the left sidebar to create your API keys.

Create Token:Fill in Token Basic InformationSet Spending Limit

Token Configuration: After filling in the basic information, configure permissions and validity period: Select Allowed ModelsSet Token Validity PeriodCreate Successfully and Get Key

Configuration:

SettingDescription
Token NameUsed to identify this API Key, suggest filling in purpose like "Development Test"
Spending LimitSet monthly spending cap, auto-disabled when reached (optional)
Allowed ModelsSelect model range accessible by this Key (optional)

API Endpoints

TypeURL
Main URLhttps://ai-tokenhub.com/api/v1
Full URLhttps://ai-tokenhub.com/api/v1
Chat APIhttps://ai-tokenhub.com/api/v1/chat/completions
Responses APIhttps://ai-tokenhub.com/api/v1/responses

Next Steps