Supported providers
| Provider | Slug | Upstream base URL | API format | Example path |
|---|---|---|---|---|
| OpenAI | openai | https://api.openai.com/v1 | OpenAI | chat/completions |
| Anthropic | anthropic | https://api.anthropic.com | Anthropic | messages |
| DeepSeek | deepseek | https://api.deepseek.com/v1 | OpenAI-compatible | chat/completions |
| Google Gemini | gemini | https://generativelanguage.googleapis.com | Gemini | v1beta/models/{model}:generateContent |
| Mistral | mistral | https://api.mistral.ai/v1 | OpenAI-compatible | chat/completions |
| xAI (Grok) | xai | https://api.x.ai/v1 | OpenAI-compatible | chat/completions |
| Cohere | cohere | https://api.cohere.com/v1 | Cohere | chat |
| Groq | groq | https://api.groq.com/openai/v1 | OpenAI-compatible | chat/completions |
| Together AI | together | https://api.together.xyz/v1 | OpenAI-compatible | chat/completions |
URL construction
Every Tokonomics proxy call follows this pattern:{slug}— the provider identifier from the table above (e.g.openai,anthropic){path}— the upstream API path you would normally append to the provider’s base URL, without repeating the base URL itself
https://tokonomics.ca/proxy/{slug} prefix and reconstructs the full upstream URL automatically before forwarding your request.
Authentication to providers
Every proxied request carries two sets of credentials:- Your Tokonomics key — passed in the standard
Authorizationheader as a Bearer token. Tokonomics reads this to authenticate you, meter usage, and enforce budget caps. - Your provider API key — passed in whichever header the upstream provider requires (e.g.
Authorizationfor OpenAI,x-api-keyfor Anthropic). Tokonomics forwards this header to the upstream provider unchanged.
Authorization: Bearer mk_... header before it reaches the upstream provider, and passes all other headers — including your provider key — through unchanged.
OpenAI-compatible providers (DeepSeek, Mistral, xAI, Groq, and Together AI) work out of the box with the official
openai Python or Node.js SDK. Simply set base_url to the Tokonomics proxy URL for that provider — no other changes required.