Send your first TokenHub request
Create a TokenHub API key, list models, send one chat request, and confirm the response.
1. Prepare access
TokenHub routes requests to multiple AI models through one API endpoint. Before you start, activate TokenHub, create an API Key, and keep the key on a server or secret manager. Model calls consume prepaid resources, so use a low-cost test prompt and a short output limit for your first request.
Create an API key · Introduction to TokenHub
2. List available models
Use the model list operation to confirm the exact model ID before sending a request. Replace <API_KEY> with your TokenHub API key.
curl -X GET "https://router.chbcloud.com/v1/models" \
-H "Authorization: Bearer <API_KEY>"A successful response contains the model IDs that your account can currently call. Model IDs are case-sensitive and may contain both hyphens and periods.
3. Send your first chat request
Last updated on