OpenRouter Quickstart Guide | Developer Documentation
OpenRouter provides a unified API that gives you access to hundreds of AI models through a single endpoint, while automatically handling fallbacks and selecting the most cost-effective options. Get started with just a few lines of code using your preferred SDK or framework. Want to chat with our docs? Download an LLM-friendly text file of our full documentation and include it in your system prompt. In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards. The API also supports streaming. For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation. Frequently Asked Questions Common questions about OpenRouter
> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://openrouter.ai/docs/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://openrouter.ai/docs/_mcp/server. # Quickstart OpenRouter provides a unified API that gives you access to hundreds of AI models through a single endpoint, while automatically handling fallbacks and selecting the most cost-effective options. There are three ways to integrate with OpenRouter, depending on how much control you want: | Approach | Best for | | ---------
Explore this link on the map →saved by
related reading
- smolagents · Hugging Facehuggingface.co
- AI Model & API Providers Analysis | Artificial Analysisartificialanalysis.ai
- Cookbookcookbook.openai.com
- Building reliable AI agents · parth sareenparthsareen.com
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4. · GitHubgithub.com
- GitHub - open-webui/open-webui: User-friendly AI Interface (Supports Ollama, OpenAI API, ...) · GitHubgithub.com
- There's An AI For That® — The front page of AItheresanaiforthat.com
- Gemini Enterprise Agent Platform (formerly Vertex AI) | Google Cloudcloud.google.com
- Replicate - Run AI with an APIreplicate.com
- API Overview | OpenAI API Referenceplatform.openai.com
- State of AI 2025: 100T Token LLM Usage Study | OpenRouteropenrouter.ai
- AI SDK by Vercelorate.dev