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:
Each endpoint accepts the same request format as its OpenAI equivalent, so existing integration code requires no changes beyond the base URL.
Authentication
Every request requires anAuthorization header with a Bearer token:
