OpenRouter Python SDK

JSON →
library 0.7.11 ·python
verified Jun 9, 2026 install

Official Python SDK for the OpenRouter API — a unified gateway to 300+ LLM models across providers (OpenAI, Anthropic, Google, Meta, Mistral, etc.) via a single OpenAI-compatible endpoint. Auto-generated from OpenRouter's OpenAPI spec and updated on every API change. Fully typed with Pydantic. SDK is explicitly in beta — breaking changes can occur between minor versions without a major version bump. IMPORTANT: There are multiple competing 'openrouter' packages on PyPI (openrouter, openrouter-client, python-open-router). Only 'openrouter' (by OpenRouter) is the official SDK.

total hits 34
actors 10 distinct systems
last hit 1h ago ClaudeBot
MetaBot
5
GPTBot
4
Amazonbot
4
Script
2
ClaudeBot
1
ChatGPT-User
1
Search engines
1
Humans
6

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · BD · 🇮🇳 India