TokenHub is OpenAI-compatible, so you can start routing requests through it using tools you already have. This guide walks you through creating an account, generating an API key, and making your first chat completion request.Documentation Index
Fetch the complete documentation index at: https://docs.inferoute.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Sign up for TokenHub
Create a free account at tokenhub.ai. After signing up, you’ll land in the TokenHub dashboard where you can manage API keys, view usage, and configure routing.
Generate an API key
In the dashboard, go to Settings → API Keys and click New API key. Give it a descriptive name (for example,
dev-local) and optionally set an expiry date. Copy the key immediately — it won’t be displayed again.Install the OpenAI SDK (optional)
TokenHub works with the standard OpenAI SDK. If you prefer to use raw HTTP, skip this step.
Configure the base URL and API key
Point the SDK or your HTTP client at the TokenHub API endpoint. Replace
YOUR_TOKENHUB_API_KEY with the key you generated.Every request you make appears in the TokenHub dashboard under Usage. From there you can monitor token consumption, estimated costs, and which providers handled each request.