Quickstart
LLMTR exposes multiple LLM providers through a single OpenAI-compatible API endpoint. Keep your existing OpenAI SDK — just change the base URL and API key.
- Create an account and sign in. Register on the dashboard and complete email verification.
- Generate an API key. Go to Dashboard > API Keys and create a new key. The raw value is shown only once — save it securely.
- Send your first request. Use one of the examples below to hit
/v1/chat/completions.
Base URL
Section titled “Base URL”All requests use:
https://llmtr.com/v1First request
Section titled “First request”curl https://llmtr.com/v1/chat/completions \ -H "Authorization: Bearer sk_your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-4o", "messages": [ {"role": "user", "content": "Hello!"} ], "temperature": 0.7 }'from openai import OpenAI
client = OpenAI( base_url="https://llmtr.com/v1", api_key="sk_your_key")
response = client.chat.completions.create( model="openai/gpt-4o", messages=[ {"role": "user", "content": "Hello!"} ], temperature=0.7)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://llmtr.com/v1", apiKey: "sk_your_key"});
const response = await client.chat.completions.create({ model: "openai/gpt-4o", messages: [{ role: "user", content: "Hello!" }], temperature: 0.7});
console.log(response.choices[0].message.content);