OpenAI SDK
The OpenAI Node.js SDK works out of the box.Installation
- npm
- yarn
- pnpm
Basic Usage
Multi-Provider
Streaming
Anthropic SDK
The Anthropic Node.js SDK works natively.Installation
- npm
- yarn
- pnpm
Basic Usage
Streaming
ARouter SDK
The first-party@arouter/sdk provides additional features like key management
and usage tracking.
Installation
- npm
- yarn
- pnpm
Chat Completion
Streaming
Key Management
Use a management key (lr_mgmt_) to create and manage API keys.