{"repo":"OpenRouterTeam/openrouter-examples","free":true,"listed":false,"github":"https://github.com/OpenRouterTeam/openrouter-examples","clone":"git clone https://github.com/OpenRouterTeam/openrouter-examples.git","description":"Examples of integrating the OpenRouter API","language":"TypeScript","stars":371,"topics":["ai","anthropic","docs","llm","openai","openrouter"],"license":"MIT","category":"ai-agents","readme_excerpt":"OpenRouter Examples Comprehensive, tested, executable examples demonstrating OpenRouter features across multiple ecosystems. Quick Start Repository Structure Features Prompt Caching - Documentation : docs/prompt-caching.md - Examples : - curl/prompt-caching.sh - typescript/fetch/src/prompt-caching/ - typescript/ai-sdk-v5/src/prompt-caching/ - typescript/effect-ai/src/prompt-caching/ Prerequisites - Bun runtime: curl -fsSL https://bun.sh/install bash - OpenRouter API key: https://openrouter.ai/keys - For curl examples: jq (JSON processor) Installation Running Examples All Examples By Ecosystem Individual Examples Benefits For Users 1. Copy-paste ready - All examples are runnable as-is 2. Tested and proven - Every example has been verified to work 3. Evidence-based - Examples show expected outputs and verification 4. Multiple ecosystems - Choose the one that matches your stack For Developers 1. Single source of truth - Constants defined once in typescript/shared/ 2. Type safety - Shared types across all TypeScript examples 3. Consistent patterns - Each ecosystem follows its own idioms 4. Easy maintenance - Bun monorepo for TypeScript workspaces Contributing See individual ecosystem READMEs: - curl/README.md - typescript/README.md License See LICENSE.md","default_branch":null,"files":null,"tree":[],"storefront":"/r/OpenRouterTeam","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OpenRouterTeam/openrouter-examples/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}