Authentication
All requests to the Thalam API must include a bearer token in the Authorization header. Your key is prefixed with tl- to distinguish it from provider keys. Never expose your key in client-side code.
Authentication
# Set your Thalam key as an environment variable
#60a5fa]">export THALAM_KEY=class="text-emerald-400">"tl-xxxxxxxxxxxxxxxxxxxxxxxx"
# Or pass it directly to the client
client = openai.OpenAI(
api_key=os.environ[#60a5fa]">class="text-emerald-400">"THALAM_KEY"],
base_url=#60a5fa]">class="text-emerald-400">"https://api.thalam.ai/v1",
)Header name
Authorization
Format
Bearer tl-xxxxxxx
Key prefix
tl-
Rotation
Dashboard → API Keys