SDKActive

OpenRouter Agent SDK

On this page Using the OpenRouter API Using the Client SDKs Using the Agent SDK Using the OpenAI SDK Using third-party SDKs Building with an AI assistant Overview Quickstart Copy page Copy page Get started with OpenRouter Copy page Copy page OpenRouter gives you access to hundreds of AI models through a single API endpoint.

Open source page ↗

Field note

What it does

On this page Using the OpenRouter API Using the Client SDKs Using the Agent SDK Using the OpenAI SDK Using third-party SDKs Building with an AI assistant Overview Quickstart Copy page Copy page Get started with OpenRouter Copy page Copy page OpenRouter gives you access to hundreds of AI models through a single API endpoint. It handles fallbacks automatically and picks the most cost-effective option for each request. There are three ways to integrate with OpenRouter, depending on how much control you want: Approach Best for API Full control, any language, no dependencies Client SDKs Type-safe model calls with minimal overhead Agent SDK Building agents with tool use, loops, and state Read https://github.com/OpenRouterTeam/skills/tree/main/skills/create-agent-tui and follow the instructions to build an agent using OpenRouter. Looking for information about free models and rate limits? Please see the FAQ In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards. For detailed information about app attribution, see our App Attribution guide . ​ Using the OpenRouter API The most direct way to use OpenRouter.

Capabilities

Available capabilities

Tags

Tags

No tags filed yet.

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

​ Building with an AI assistant

​ Using the Agent SDK

​ Using the Client SDKs

​ Using the OpenAI SDK

​ Using the OpenRouter API

​ Using third-party SDKs