Features
- Compile-time embedded registry (
data/providers.json) - Endpoint-aware pricing with
price_currency(USD/CNY) - Extended pricing: prompt/completion/cache_read/cache_write/reasoning
- Global catalog dedupe (
list_catalog_models) vs full offerings (list_offerings) - Official ParaRouter export CLI and JSON schema
Installation
[]
= "0.14"
Usage
use ;
ParaRouter Export
Export shape is documented in schemas/pararouter-export-v1.json:
catalog[]— one entry per canonical model idofferings[]— every(provider_id, endpoint_id, model_id)withprice_currencyandglobal_pricing
Catalog vs Offerings
| Layer | Purpose |
|---|---|
catalog |
Global model list keyed by official short id (gemini-3.5-flash) |
offerings |
Routing/deploy entries including resellers (tencent, volcengine) |
Reseller/aggregator prefixes like google/ are stripped by canonical_model_id() and must not be used as catalog ids.
Contributing
Edit data/providers.json, then run cargo test. See AGENTS.md and CONTRIBUTING.md.
License
MIT