Overview›Quick Start

Quick Start

Send your first chat completion in under a minute.

Prerequisites

Send a request

Make a chat completion request with curl:

bash
curl https://api.routing.run/v1/chat/completions \  -H "Authorization: Bearer rk_live_your_api_key" \  -H "Content-Type: application/json" \  -d '{    "model": "kimi-k2.6",    "messages": [{"role": "user", "content": "Hello!"}]  }'

Using the OpenAI SDK

Install the OpenAI Python SDK and point it at routing.run:

shell
pip install openai
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!"}]) print(response.choices[0].message.content)

Use it in your tools

routing.run is OpenAI- and Anthropic-compatible, so it drops into most coding agents and chat harnesses — set the base URL and your API key, then pick a currently available model from the catalog.

Point Claude Code at routing.run via the Anthropic-compatible base URL.

Environment

shell
export ANTHROPIC_BASE_URL="https://api.routing.run"export ANTHROPIC_API_KEY="rk_live_your_api_key" claude

Next steps