rates
A pricing registry and decision layer. One domain ships 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 7931 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 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 rather than duplicating any single one, cross-validates prices between them, reads speech-model rates directly from the vendors' own pricing pages (Deepgram, AssemblyAI, ElevenLabs, LiveKit), and ships the result as a dated, versioned snapshot none of them offer on their own.
The registry holds what could be gathered with verifiable per-unit pricing; services whose pricing isn't published, isn't accessible, or isn't per-unit at all 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.1.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 | |
|---|---|---|---|
| rates-1.1.0.tar.gz | 400.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rates-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 701.7 kB
Release files / rates-1.1.0.tar.gz
| Download URL | rates-1.1.0.tar.gz |
|---|---|
| Size | 400.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab66333a42a14d2a7077eb6c9c374d74fe15e092052510ef6fa3705a459c5894
|
|
BLAKE2b-256 checksum How to use checksums |
28475f845e96f9fc15221bda29eff7898cafe86d7c168d494cf33effb4c2386c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logRelease files / rates-1.1.0-py3-none-any.whl
| Download URL | rates-1.1.0-py3-none-any.whl |
|---|---|
| Size | 301.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5fce2aa76554d885ffe7166dc6654bcf8a0f0eeedcf55b8bbd8b1d967096b76
|
|
BLAKE2b-256 checksum How to use checksums |
dd260752c9b31bb46c21cd0c02b2dec7bd8e2aafc1a48171355a904946ebc142
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency log