skillfed

models-dev

Typed Python interface to models.dev API data

models-dev v1.0.398 142.3K downloads/30d#11,212 on PyPI4
Permissive license MIT Active released

What it is and what it does

models-dev is a typed Python package that bundles the models.dev catalog—a community-maintained registry of LLM models—as local data. Instead of making HTTP calls to fetch model metadata, you import and query structured Python objects for provider information, pricing, context limits, modalities, and capabilities. The package is designed to stay in sync with the upstream catalog through hourly update checks and frequent releases.

It has zero runtime dependencies and ships as a ~75 KB wheel, making it lightweight and easy to integrate into projects that need to reference LLM model details at runtime—such as prompt engineering frameworks, cost calculators, or model-selection logic. The data is pre-typed, so IDEs and type checkers can validate queries.

Use it for:

  • Look up pricing and context limits for a specific LLM model before making an API call.
  • Filter available models by capability (e.g., find all reasoning-enabled models across providers).
  • Build a model-selection tool that compares input/output costs or modality support.
  • Populate a UI dropdown or CLI menu with current provider and model names without external API calls.
  • Validate model names and provider identities in a local configuration file or request handler.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a typed Python interface to models.dev, a community-maintained catalog of 2000+ LLM models from 75+ providers, with pricing, context limits, and capability metadata—no HTTP calls needed.

Yes, if you need offline access to LLM model metadata. The package is lightweight, actively maintained, has no dependencies, and covers a broad catalog (2000+ models from 75+ providers). Install it when you want to avoid HTTP calls for model lookups or need typed access to pricing and capability data. Not necessary if you only work with one provider's SDK or rarely need to query model details.

Install

models-dev on PyPI

pip

pip install models-dev

uv

uv add models-dev

poetry

poetry add models-dev

Installing models-dev

Before you install

Low friction: zero runtime dependencies, ~75 KB installed, and actively maintained with hourly update checks. Latest release 85 days old; repository shows recent activity.

License in practice

MIT license (permissive) allows commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install models-dev

from models_dev import providers, get_provider, get_model

openai = get_provider("openai")
gpt4o = get_model("openai", "gpt-4o")
print(gpt4o.cost.input, gpt4o.limit.context)

Requires Python 3.10 or later.

Verify before relying

  • How frequently the package actually publishes updates when models.dev changes (claimed hourly check, but release cadence unknown).
  • Whether the 2000+ model count and 75+ provider figure remain current or are static snapshots in the package.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 85 days since the last release
Last repo commit
First released
Downloads 142,328/month — #11,212 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: models_dev-1.0.398-py3-none-any.whl

Keywords: ai, anthropic, llm, models, openai

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed

Tags

llm model catalog lookupai model pricing dataopenai anthropic google modelsmodel context limits metadatallm provider informationmodel capabilities databaseai model comparison data
llm-modelsmetadata-catalogoffline-data

More Artificial Intelligence packages