Guides
JavaScript SDK
Install rodiumai from npm, set RODIUMAI_API_KEY, then use client.chat(), client.stream(), client.wallet(), and more.
Install & first completion
…Streaming
Async iterator text deltas from POST /v1/chat/completions with stream: true.
…Wallet & pricing
…Production checklist
- Store RODIUMAI_API_KEY in environment, never expose it in the browser.
- Use await client.models() for live catalogue ids.
- Catch InsufficientBalanceError (402) and RateLimitError (429).
Full reference: GitHub README · API overview