API quickstart
Make your first request.
Choose individual models through the gateway. Neural Router is coming soon.
1. Sign in
Open the console with the email your ThirdBrain Labs contact added. Choose Google or email sign-in, then select your organization if prompted. Use Forgot password if you need to set a password.
2. Create a key
In Organization → API keys, enter a label and select Create key. Copy it once and save it as TBL_API_KEY in your environment or secret manager.
Only organization Admins can create keys. Keep yours private and use a separate key for each integration.
3. Make a request
Install the SDK with uv add openai, then run:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["TBL_API_KEY"],
base_url="https://api.thirdbrainlabs.ai/v1",
max_retries=0,
)
response = client.chat.completions.create(
model="openai/gpt-5.6-luna",
messages=[{"role": "user", "content": "Say hello."}],
max_completion_tokens=256,
)
print(response.choices[0].message.content)Use GET /v1/models with your key to discover available models.
Other APIs and streaming
OpenAI-compatible SDKs use https://api.thirdbrainlabs.ai/v1. The Anthropic SDK uses https://api.thirdbrainlabs.ai without the suffix.
Responses requires store=False; Anthropic Messages requires max_tokens. For streaming, read through the final event. Keep automatic retries disabled: a timed-out request may already have run.
4. Track usage
Your dashboard shows usage, spend, and the monthly budget. API requests can incur usage charges. Contact your team before increasing traffic.
Default limits
New keys expire after 30 days and allow 30 requests per minute with a burst of 4. Organizations allow 4 concurrent requests by default, including open streams. Your contact can confirm custom limits.
Each request reserves enough budget for the model’s maximum output, then settles actual usage afterward. A small remaining balance may not cover the next request.
Need help?
If access was added after you signed in, open Switch or refresh access, choose your organization, and select Select and refresh access.
Contact the person who onboarded you with the request ID from x-request-id, model, and error. Never include your API key or private prompt.