The OpenAI SDK expects chat completions under /v1. Anthropic clients post to the Messages API. Gemini wants generateContent under /v1beta. One Tokmine URL answers all of them.
Change two values, keep the SDK
For any supported client the whole migration is a base URL and a key. OpenAI-style clients add /v1 to the endpoint URL; Anthropic and Gemini clients use it as is. Your token works in Authorization: Bearer, x-api-key, x-goog-api-key or x-token, whichever the SDK prefers to send.
What is covered
- OpenAI. Chat completions, completions, embeddings and the model list, with streaming.
- Anthropic. The Messages API, when the machine's runner exposes an Anthropic-compatible endpoint.
- Gemini.
generateContentandstreamGenerateContent. - Ollama native.
/apipaths passed through to Ollama runners.
Errors arrive in your dialect
When something fails, the error body matches the API the client called. An Anthropic client gets an Anthropic-shaped error, a Gemini client a Gemini-shaped one. The model must be served by an online machine, and a request in a dialect the chosen runner does not speak gets a clear refusal rather than a mystery timeout.
Only model paths get through
The endpoint forwards allow-listed API paths per dialect, not arbitrary URLs. Callers cannot use it as a generic proxy into your network.
Try it
Point your favourite SDK at https://tunnel.tokmine.ai/t/<slug> with your token. Working examples for each dialect are in API compatibility.