Installation
Requirements
- Python 3.10+ (recommended) — also supports 3.9, 3.11, 3.12
- pip package manager
Install
Configuration
Environment Variables
| Variable | Description | Required |
|---|---|---|
LUNAR_API_KEY | API key for authentication | Yes |
Client Initialization
Basic usage with environment variable:Configuration Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | API key for authentication |
base_url | str | None | Custom API URL |
timeout | float | 60.0 | Request timeout in seconds |
num_retries | int | 2 | Number of retry attempts |
max_connections | int | 100 | Maximum concurrent connections |
fallbacks | dict | None | Model fallback configuration |