Skip to main content

OpenRouter

OpenRouter provides a unified API that routes requests to many models behind a single endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.

CLI सेटअप

विन्यास स्निपेट

टिप्पणियाँ

  • मॉडल संदर्भ openrouter/<provider>/<model> हैं।
  • अधिक मॉडल/प्रदाता विकल्पों के लिए, देखें /concepts/model-providers
  • OpenRouter आंतरिक रूप से आपकी API कुंजी के साथ एक बेयरर टोकन का उपयोग करता है।