Learn how to instrument calls to hundreds of models via OpenRouter in Go using the LangWatch SDK.
openai.Client
to use the OpenRouter base URL and your API key. Set the gen_ai.system
attribute to "openrouter"
for clear identification in your LangWatch traces.
The key difference with OpenRouter is the model name, which is typically prefixed with the original provider (e.g., anthropic/claude-3.5-sonnet
).