Module openrouter_catalog
Expand description
Cross-vendor model catalog via OpenRouter’s public /api/v1/models endpoint.
Functions§
- list_
all_ models_ with_ pricing - Return every OpenRouter model with pricing, keeping the full
<vendor>/<slug>id. Sorted and deduplicated by id. Backs the first-classOpenRouterModelProvider::list_models_with_pricingso the cost-rates editor can prefill rates from the public catalog. - list_
models_ for_ vendor - Return the slug portion of every OpenRouter model id whose vendor prefix
matches
vendor_prefix. The vendor prefix is the segment before/in the id (e.g.x-ai,tencent,rekaai). The returned slugs are sorted and deduplicated. - list_
models_ for_ vendor_ with_ pricing - Return model entries with pricing for every OpenRouter model id whose
vendor prefix matches
vendor_prefix. Sorted and deduplicated by id.