Skip to content

Basic Usage

Prerequisites

Before using ai.TokenHub API, complete the following preparation:

1. Register an Account

Visit ai.TokenHub to register your account.

Registration Page

2. Create API Keys

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

Steps:

Click Add Token

Fill in Token Information

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
Full URLhttps://ai-tokenhub.com/v1
Chat APIhttps://ai-tokenhub.com/v1/chat/completions
Responses APIhttps://ai-tokenhub.com/v1/responses

Next Steps