Quick Start
Get OpenRouter working in 3 steps:Tip: You can also set
provider="@openrouter" in Portkey() and use just model="openai/gpt-4o" in the request.Add Provider in Model Catalog
- Go to Model Catalog → Add Provider
- Select OpenRouter
- Choose existing credentials or create new by entering your OpenRouter API key
- Name your provider (e.g.,
openrouter-prod)
Complete Setup Guide →
See all setup options, code examples, and detailed instructions
OpenRouter Tool Calling
Tool calling lets models trigger external tools based on conversation context. You define available functions, the model chooses when to use them, and your application executes them and returns results. Portkey supports OpenRouter tool calling and makes it interoperable across multiple providers. With Portkey Prompts, you can templatize your prompts and tool schemas.OpenRouter Tool Calling
View OpenRouter’s tool calling documentation
Next Steps
Add Metadata
Add metadata to your OpenRouter requests
Gateway Configs
Add gateway configs to your OpenRouter requests
Tracing
Trace your OpenRouter requests
Fallbacks
Setup fallback strategies with OpenRouter
SDK Reference
Complete Portkey SDK documentation

