Skip to main content
Every provider Tokonomics supports follows the same integration pattern: replace the provider’s base URL with https://tokonomics.ca/proxy/{slug} and pass your Tokonomics key as a bearer token. The seven providers below are available in addition to OpenAI and Anthropic.

Provider connection table

OpenAI-compatible providers

DeepSeek, Mistral, xAI, Groq, and Together AI all expose an OpenAI-compatible API. You can use the openai SDK for any of them — just change the slug in the base URL and supply that provider’s API key.
Python
Swap groq for deepseek, mistral, xai, or together and update model to match that provider’s model identifiers — everything else stays the same.

Cohere

Cohere’s SDK uses a different interface from the OpenAI SDK. The simplest integration is a direct HTTP call with your Cohere key passed in X-API-Key:
cURL
Tokonomics forwards X-API-Key to Cohere unchanged, so you do not need to modify how you authenticate with the Cohere API.

Google Gemini

Gemini uses a path-based model routing format. Replace https://generativelanguage.googleapis.com with https://tokonomics.ca/proxy/gemini and keep the rest of the path intact:
cURL
All providers support the same X-Metering-Tags, X-Feature-Name, and X-Tenant-ID headers for cost attribution regardless of which SDK or HTTP client you use.