loop-ai-data
This package was called ai-almanac-data until December 2026. The old name stays on the registry but gets no new versions.
Official LLM API prices and AI subscription plans, as JSON with a few helpers. The data is the same as on loop.firmiana.si: every price links to the provider's own page and has the date it was last checked.
A new version comes out when the data changes, at most once a day. The version is the date: 2026.12.2.
pip install loop-ai-data
import loop_ai_data as aa
aa.price("claude-opus-5-5")
# {'tier': 'standard', 'currency': 'USD', 'input': 4, 'output': 20, 'cache_read': 0.2, 'source': 'https://…', …}
aa.cost("deepseek-v4-pro", input=3_000_000, output=500_000, currency="USD")
# {'input': …, 'output': …, 'cache_read': 0.0, 'cache_write': 0.0, 'total': …, 'currency': 'USD'}
aa.cheapest(capability="vision", limit=5)
aa.plans(product="chatgpt")
| Function | Returns |
|---|---|
models(provider=, capability=, all=False) |
current models (all=True adds legacy and deprecated) |
model(name) |
one model by provider/id, id or alias |
price(name, tier=, region=, currency=) |
a price row, per 1M tokens; currency converts to USD, CNY or EUR |
cost(name, input=, output=, cache_read=, cache_write=, …) |
cost of that many tokens |
cheapest(by=, currency=, provider=, capability=, limit=) |
cheapest current models, blended 3:1 input:output by default |
plans(vendor=, product=, audience=), plan(key) |
subscription plans |
convert(amount, src, dst) |
currency conversion at the ECB rate in meta["fx"] |
meta |
version, data date, exchange rates |
Prices are stored in the currency each provider publishes (Chinese providers in CNY). Converted amounts use the ECB
reference rate of the date in meta["fx"] and are for comparison only.
Python 3.9+. No dependencies. Code MIT, data CC BY 4.0. Please credit "Loop" with a link when you publish numbers from it.
Metadata
Release files for loop-ai-data 2026.12.1
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 |
|---|---|---|---|---|
| loop_ai_data-2026.12.1.tar.gz | 88.4 kB | With provenance | Details for loop_ai_data-2026.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loop_ai_data-2026.12.1-py3-none-any.whl | Python 3 | none | any | Details for loop_ai_data-2026.12.1-py3-none-any.whl |
Total release size: 179.1 kB
Release files / loop_ai_data-2026.12.1.tar.gz
| Download URL | loop_ai_data-2026.12.1.tar.gz |
|---|---|
| Size | 88.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5183f6dafb7340f0a0b75157308daedafc565942c36370288be02a836ff1623d
|
|
BLAKE2b-256 checksum How to use checksums |
c20b9ca811195b1e71a60708b50fd936424969f833086a82c88f34dea1a769cf
|
| 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 Dec 1, 2026.
Transparency logRelease files / loop_ai_data-2026.12.1-py3-none-any.whl
| Download URL | loop_ai_data-2026.12.1-py3-none-any.whl |
|---|---|
| Size | 90.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0afc7c7b16e9b43e0ba581023586b43bf1775f6ffafe45c061d03a627943629
|
|
BLAKE2b-256 checksum How to use checksums |
559505b20625dfedfec501696b106e6dea0bfa26427ea759ce6e482324adf4c1
|
| 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 Dec 1, 2026.
Transparency logSecurity for loop-ai-data 2026.12.1
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 loop_ai_data-2026.12.1.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 Dec 1, 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.