Skip to main content Switch to mobile version loop-ai-data 2026.12.2 Official LLM API prices and AI subscription plans as data, with a few lookup and cost helpers.
pip install loop-ai-data==2026.12.2 Copy PIP instructions
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.
Both files in this release have provenance metadata.
MIT AND CC-BY-4.0 View SPDX License List
anthropic cost deepseek gemini llm openai pricing tokens
Operating System OS Independent
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Release files for loop-ai-data 2026.12.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 179.8 kB
Release files / loop_ai_data-2026.12.2.tar.gz
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Release files / loop_ai_data-2026.12.2-py3-none-any.whl
Security for loop-ai-data 2026.12.2
Both files in this release have been uploaded with provenance metadata.
With provenance loop_ai_data-2026.12.2.tar.gz Dec 2, 2026
Attestation for loop_ai_data-2026.12.2.tar.gz
A 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.
Release history Release notifications | RSS feed
Dec 2, 2026 2 release files Full provenance
Dec 1, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




