TokModel sits between your application and the AI providers you want to use. Instead of integrating each provider separately — managing different SDKs, authentication schemes, and API shapes — you send every request toDocumentation Index
Fetch the complete documentation index at: https://docs.tokmodel.com/llms.txt
Use this file to discover all available pages before exploring further.
https://tokmodel.com and TokModel handles the routing. Your code stays the same regardless of which model or provider you choose.
How the routing works
When you send a request to TokModel, three things happen:- TokModel authenticates the request using your API key.
- TokModel reads the
modelfield in your request body to determine which provider and model to call. - TokModel forwards the request to that provider, receives the response, and returns it to you in a consistent format.
https://tokmodel.com.
Drop-in replacement
TokModel is fully compatible with the OpenAI client API. If your application already calls OpenAI, you can switch to TokModel by changing one value — the base URL:Supported endpoint families
TokModel exposes endpoints across six capability areas:| Capability | Endpoints |
|---|---|
| Chat completions | POST /v1/chat/completions |
| Responses | POST /v1/responses, POST /v1/responses/compact |
| Anthropic messages | POST /v1/messages |
| Text embeddings | POST /v1/embeddings |
| Reranking | POST /v1/rerank |
| Image generation | POST /v1/images/generations, POST /v1/images/edits, POST /v1/images/variations |
| Speech & audio | POST /v1/audio/speech, POST /v1/audio/transcriptions, POST /v1/audio/translations |
| Model listing | GET /v1beta/models |
Authentication
Every request requires anAuthorization header with a Bearer token: