openai SDK and point the client at the provider’s base URL — no provider-specific instrumentor or enum is required.
Base URLs
Any other OpenAI-compatible endpoint works the same way, including self-hosted servers such as vLLM or a LiteLLM proxy: pass its URL as the base URL. OpenRouter follows the same pattern.
Setup
- Python
- TypeScript
Usage
- Python
- TypeScript
kimi-k2.6 or glm-5.1.
What Gets Captured
Cost
Cost is calculated only for model ids listed in TraceRoot’s pricing table (standard-model-prices.json). Calls to other models are still traced with their messages, tokens and latency, but without a cost. See Cost Tracking for details.
