Skip to main content

Installation

Quick Start

Multi-Provider

Streaming

Key Management

Use a management key (lr_mgmt_) to create and manage API keys programmatically.

Create API Key

List API Keys

Update API Key

Delete API Key

Provider Proxy

For direct upstream access without model-field routing:

Client Options

Wallet JWT + x402 Payments

AI agents with crypto wallets can authenticate via SIWx and pay for credits via x402. The SDK caches a wallet JWT and uses it as the Bearer token for subsequent requests.

EVM (Base)

Solana

SIWx Only (No Auto-Payment)

See the x402 Payments Guide for the full protocol flow.

Error Handling