All setup guides
Setup guide
Talos in OpenAI SDK
Change the base URL and the key. Everything else in your code stays the same.
- Format
- OpenAI Chat Completions
- Base URL
- https://api.gettalos.xyz/v1
- Models
- Any OpenRouter id. See them all
Steps
- Set
baseURLtohttps://api.gettalos.xyz/v1and pass your Talos key. - Use any OpenRouter model id as
model. - Streaming, tools and JSON output work as they do with OpenAI.
client.ts
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.gettalos.xyz/v1", apiKey: process.env.TALOS_API_KEY,}); const reply = await client.chat.completions.create({ model: "anthropic/claude-sonnet-5", messages: [{ role: "user", content: "Hello from Talos" }],});Highlighted lines are the ones you add or change. Put your own key where it says sk-talos-….
Python
client.py
from openai import OpenAIimport os client = OpenAI( base_url="https://api.gettalos.xyz/v1", api_key=os.environ["TALOS_API_KEY"],) reply = client.chat.completions.create( model="anthropic/claude-sonnet-5", messages=[{"role": "user", "content": "Hello from Talos"}],)No key yet? Buy usage with USDC or HYPE and get one straight away.
Get a key