Expand description
Typed clients for the OpenRouter API.
openrouter2 exposes route-complete async and blocking clients for the
current non-deprecated OpenRouter API surface. Async support is enabled by
default through AsyncOpenRouterClient. Enable the blocking Cargo feature
for BlockingOpenRouterClient.
Client values can store an optional default ApiKey alongside the injected
HTTP client and normalized base URL. Per-call RequestOptions can override
that key or explicitly suppress authentication for no-auth routes.
Re-exports§
pub use types::*;
Modules§
Structs§
- ApiError
- ApiKey
- Async
Open Router Client - Multipart
File - Open
Router ApiError - RawJson
Request - RawMultipart
Request - Request
Options - Route
Spec