Search across all documentation pages
10 pages in this section.
Explains how OpenRouter automatically retries a request against a backup provider on failure so agents keep answering when one endpoint is down.
A first look at setting a provider preference order and a per-key spending cap on OpenRouter for agent workloads.
A recipe for capping per-key spend on OpenRouter so runaway agent loops cannot exhaust the whole account balance.
A reference comparison of where OpenRouter list rates match direct APIs, what fees still apply, and how to decide gateway vs direct vs BYOK.
A recipe for reading OpenRouter per-request usage, key balances, generation metadata, and analytics queries to track agent spend in real time.
Ten practices for controlling OpenRouter spend and building resilient multi-provider fallback chains for production agents.