Skip to main content

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.2

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

Source distribution (sdist)

Source distribution for loop-ai-data 2026.12.2
File Size Uploaded Provenance Actions
loop_ai_data-2026.12.2.tar.gz 88.8 kB With provenance Details for loop_ai_data-2026.12.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for loop-ai-data 2026.12.2
File Interpreter ABI Platform Actions
loop_ai_data-2026.12.2-py3-none-any.whl Python 3 none any Details for loop_ai_data-2026.12.2-py3-none-any.whl

Total release size: 179.8 kB

Release files / loop_ai_data-2026.12.2.tar.gz

Download URL loop_ai_data-2026.12.2.tar.gz
Size 88.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b0990eb09aa8a8791ef8c1c951fad7f0a9a8794ba6e2a98963ffd5e99301324a
BLAKE2b-256 checksum
How to use checksums
117a608bcea316eb0225e44b5dd22856cedab987a9dff836a5833de2baed0e74
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 2, 2026.

Transparency log

Release files / loop_ai_data-2026.12.2-py3-none-any.whl

Download URL loop_ai_data-2026.12.2-py3-none-any.whl
Size 91.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac32ab98260d0f5640e2da8e0112acac60ac074f4e0365c713696ed7429ba1f3
BLAKE2b-256 checksum
How to use checksums
0a8066346d46582a732a384c1cf67137c3db339de4d709fc56bb7f9eb9eb4009
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 2, 2026.

Transparency log

Security for loop-ai-data 2026.12.2

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.

Select from 2 files

Attestation for loop_ai_data-2026.12.2.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 2, 2026.

Transparency log

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.

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