Openrouter.ai is a unified interface for many LLMs, supporting both foundational models like OpenAI GPT-4, Anthropic Claude, Google Gemini but also open source models like LLama-3, Mixtral and many more, some models are even offered for free. OpenRouter offers a Rest API and an OpenAI SDK compatibility (docs) which Weave automatically detects and integrates with (see OpenRouter quick start for more details). To switch your OpenAI SDK code to OpenRouter, switch out the API key to your OpenRouter API key,Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
base_url to https://openrouter.ai/api/v1, and model to one of their many chat models. When you call weave.init(), provide a project name for your traces. If not specified, your default entity is used. To find or update your default entity, refer to User Settings in the W&B Models documentation.