OpenRouterLLMClient

constructor(apiKey: String, settings: OpenRouterClientSettings = OpenRouterClientSettings(), baseClient: HttpClient = HttpClient(), clock: Clock = Clock.System)(source)

Parameters

apiKey

The API key for the OpenRouter API

settings

The base URL and timeouts for the OpenRouter API, defaults to "https://openrouter.ai" and 900s

clock

Clock instance used for tracking response metadata timestamps.