rates
A pricing registry and decision layer. Today: AI API rates, per-unit prices, capabilities, and lifecycle for 7,000+ models.
Before you start
rates needs Python 3.10+. Check with python3 --version; if that fails, install it from python.org/downloads.
Install
pip install rates
Zero dependencies, data bundled, works offline.
See it work
rates ai list
PROVIDER MODEL TYPE REASONING IN $/MTOK OUT $/MTOK STATUS
302ai MiniMax-M1 chat 0.132 1.254 active
302ai MiniMax-M2 chat 0.33 1.32 active
302ai MiniMax-M2.1 chat yes 0.3 1.2 active
...
20 of 8632 shown (--limit 0 shows all)
rates ai filter --provider anthropic --price-max 3 --price-unit input_mtok
Or from Python:
import rates.ai
registry = rates.ai.load()
under_a_dollar = registry.filter(price_max=1, price_unit="input_mtok")
cheapest_first = under_a_dollar.sort_by("price.input_mtok", descending=False)
The full manual, CLI and Python API both, is USAGE.md.
Why this exists
Provider pricing pages change often, aren't always machine-readable, and don't answer the question a dev has mid-build: which option, for this job, at this budget. Several raw feeds exist (models.dev, genai-prices, LiteLLM's model_prices_and_context_window.json, OpenRouter), each missing pieces the others carry. rates fuses them into one schema, cross-validates prices between them, reads some vendors' rates directly from their own pricing pages (Deepgram, AssemblyAI, ElevenLabs, LiveKit, TypeSafe), and presents the result as a dated, versioned snapshot.
The registry holds what could be gathered with verifiable per-unit pricing; services whose pricing isn't published, accessible, or available per-unit aren't listed. See ARCHITECTURE.md for the design, ERD.md for the schema itself, and MANIFEST.md for a per-file map of the source.
License
rates is MIT licensed. The bundled ledger is derived from the upstream sources above, which carry their own licenses and terms; NOTICE reproduces their copyright notices and records what each one contributes.
By Mo Shehu
Metadata
Release files for rates 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rates-1.2.0.tar.gz | 436.3 kB | With provenance | Details for rates-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rates-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for rates-1.2.0-py3-none-any.whl |
Total release size: 768.3 kB
Release files / rates-1.2.0.tar.gz
| Download URL | rates-1.2.0.tar.gz |
|---|---|
| Size | 436.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ea97f2d0e19de4ce2c78b672c0ea762f79f6b16898a66cdddd1b6a712d364ed
|
|
BLAKE2b-256 checksum How to use checksums |
51cf1f2f7283cf02a5d2560b810a693319ddb535ea9e6b3956a00f843e82dfa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / rates-1.2.0-py3-none-any.whl
| Download URL | rates-1.2.0-py3-none-any.whl |
|---|---|
| Size | 332.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee3b8547cdc9821af894b50f1f4b4d7ddd3c899280a659e51f37eee8245738af
|
|
BLAKE2b-256 checksum How to use checksums |
e3643898685065f5a52c94abcc326f106b2d084f520ad6e9e5e414b8274f0643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for rates 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rates-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.