Getting Started
Quickstart
Set up Routera in a few minutes with the OpenAI SDK or raw HTTP.
Public base URL
Routera publishes the API at https://routera.one/api/v1.
Routera exposes an OpenAI-compatible API at https://routera.one/api/v1.
Base URL
Use this base URL in production:
https://routera.one/api/v1
All public docs and examples should target routera.one. Convex deployment URLs are internal infrastructure and should not be called directly by API clients.
Create an API key
Create a key from Account > API Keys.
- Keys currently use the
rta_prefix. - A key is shown only once when it is created.
- You can revoke a key later from the same account screen.
First request
curl https://routera.one/api/v1/chat/completions \
-H "Authorization: Bearer rta_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.5",
"messages": [
{ "role": "user", "content": "Write a haiku about fast routers." }
]
}'
OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://routera.one/api/v1",
apiKey: process.env.ROUTERA_API_KEY,
});
const completion = await client.chat.completions.create({
model: "openai/gpt-5.5",
messages: [{ role: "user", content: "Hello from Routera" }],
});
What you can do today
Routera currently supports:
GET /modelsPOST /chat/completions- Streaming chat completions with Server-Sent Events
The fastest next step after this page is Authentication, then Chat Completions.