Guides
Python SDK
Install rodiumai from PyPI, set RODIUMAI_API_KEY, then use client.chat(), client.stream(), client.wallet(), and more.
Install & first completion
…Streaming
Async text deltas from POST /v1/chat/completions with stream: true.
…Wallet & pricing
…Production checklist
- Store RODIUMAI_API_KEY in environment, never expose it in client-side code.
- Use await client.models() for live catalogue ids (openai/gpt-4o, anthropic/claude-sonnet-4-6, …).
- Catch InsufficientBalanceError (402) and RateLimitError (429, retry_after in seconds). Pass model= on every call instead of chaining client.model(...).
Full reference: GitHub README · API overview