Overview›Authentication

Authentication

All API requests require an API key. Create one from the dashboard after signing up.

Authorization header

Pass your key as a Bearer token on every request:

shell
Authorization: Bearer rk_live_your_api_key

API key security

Treat your API key like a password:

  • Never expose it in client-side code or version control.
  • Use environment variables to inject it at runtime.
  • Rotate keys periodically from the dashboard.
  • Use separate keys for development and production environments.

Using with SDKs

routing.run is OpenAI-compatible. Point any OpenAI SDK at the routing.run base URL and use your routing.run API key:

python
from openai import OpenAI client = OpenAI(    api_key="rk_live_your_api_key",    base_url="https://api.routing.run/v1") response = client.chat.completions.create(    model="gpt-5.6-terra",    messages=[{"role": "user", "content": "Hello!"}])