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.

Thiết lập CLI

Đoạn cấu hình

Ghi chú

  • Tham chiếu mô hình là openrouter/<provider>/<model>.
  • Để biết thêm tùy chọn mô hình/nhà cung cấp, xem /concepts/model-providers.
  • OpenRouter sử dụng Bearer token với khóa API của bạn ở phía dưới.