Guides
Laravel SDK
Install rodiumai/laravel-sdk, configure RODIUMAI_API_KEY and RODIUMAI_BASE_URL, then call the gateway with a typed PHP client and Laravel Facade.
Install & first completion
…Streaming
SSE text deltas from POST /v1/chat/completions with stream: true.
…Wallet & pricing
…Production checklist
- Store RODIUMAI_API_KEY in .env, never expose it in the browser.
- Use models() for live catalogue ids (openai/gpt-4o, anthropic/claude-sonnet-4-6, …).
- Catch InsufficientCreditsException (402), RateLimitException (429) and UnauthorizedException (401); other endpoints (wallet, images, audio…) are plain REST calls with the same key.
Full reference: GitHub README · API overview