TokenRouteDocs
Sign in

Quickstart

Make your first request to TokenRoute.

TokenRoute exposes an OpenAI-compatible API. Point any OpenAI SDK at https://tokenroute.app/api/v1 and authenticate with a TokenRoute API key - every model in the catalog becomes available through a single endpoint.

1. Create an API key

Go to API Keys and create a key. It starts with sk-tr- and is shown only once.

2. Add credits

Requests are billed against your balance. Top up on the Credits page.

3. Make a request

bash
curl https://tokenroute.app/api/v1/chat/completions \
  -H "Authorization: Bearer $TOKENROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'