Skip to main content

rates

A pricing registry and decision layer. One domain ships today: AI API rates, per-unit prices, capabilities, and lifecycle for 6,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  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  0.3        1.2         active
...

20 of 7109 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, 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, and ERD.md for the schema itself.

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 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rates 0.0.4
File Size Uploaded
rates-0.0.4.tar.gz 331.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rates 0.0.4
File Interpreter ABI Platform
rates-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 598.5 kB

Release files / rates-0.0.4.tar.gz

Download URL rates-0.0.4.tar.gz
Size 331.4 kB
Tags Source
SHA-256 checksum
How to use checksums
142f0355d97847ebfde9cbdae9c8714b2ea391bb141e960c5c63cacdd9b0bbc3
BLAKE2b-256 checksum
How to use checksums
01858868b3762e9def84ce881edf6d97f0f5868cacd5e4f9ca246be6cf738a03
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 Sep 1, 2026.

Transparency log

Release files / rates-0.0.4-py3-none-any.whl

Download URL rates-0.0.4-py3-none-any.whl
Size 267.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4cf53de7ba0f7042fdbe012fc2db4d4b06b51224a213822b6673f1bb09b1606
BLAKE2b-256 checksum
How to use checksums
b9cc42145a043734dd65d36fa7b2e23e1365f7b66bce7a0135687a78772b90dc
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 Sep 1, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page