Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tokmodel.com/llms.txt

Use this file to discover all available pages before exploring further.

TokModel exposes models from more than 30 AI providers through a single unified endpoint. You select a model by passing its ID in the model field of your request — no provider-specific configuration, SDK, or API key required. TokModel routes the request to the correct provider automatically.

Model ID format

Model IDs on TokModel follow a provider/model-name convention. The provider prefix tells TokModel where to route the request:
openai/gpt-4o
anthropic/claude-3-5-sonnet-20241022
google/gemini-2.0-flash
mistral/mistral-large-latest
You pass this ID directly in the model field of any request:
curl https://tokmodel.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-2.0-flash",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'

Example providers and models

ProviderExample model IDs
OpenAIopenai/gpt-4o, openai/gpt-4o-mini, openai/o3-mini
Anthropicanthropic/claude-3-5-sonnet-20241022, anthropic/claude-3-haiku-20240307
Googlegoogle/gemini-2.0-flash, google/gemini-1.5-pro
Mistralmistral/mistral-large-latest, mistral/mistral-small-latest
Coherecohere/command-r-plus, cohere/command-r
Meta (Llama)meta-llama/llama-3.3-70b-instruct, meta-llama/llama-3.1-8b-instruct
The table above shows a representative sample. The full list of available models changes as providers release new versions.

Listing available models

To see every model currently available on your account, call GET /v1beta/models:
curl https://tokmodel.com/v1beta/models \
  -H "Authorization: Bearer $TOKMODEL_API_KEY"
The response is a JSON array of model objects:
{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-4o",
      "object": "model",
      "created": 1715367049,
      "owned_by": "openai"
    },
    {
      "id": "anthropic/claude-3-5-sonnet-20241022",
      "object": "model",
      "created": 1729033200,
      "owned_by": "anthropic"
    }
  ]
}
Use the id field from this response as the model value in your requests. For full request and response schema details, see the Models API reference.