models-dev
Typed Python interface to models.dev API data
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-devuv
uv add models-devpoetry
poetry add models-devInstalling 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
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
litellm-enterpriseLiteLLM Enterprise provides a unified Python…
unclear · top 5,000 on PyPI
unclecode-litellmUnified Python interface to call many LLM…
permissive · top 5,000 on PyPI
llm-openai-pluginA plugin that extends LLM to access OpenAI…
permissive · top 15,000 on PyPI
llama-index-llms-openai-likeProvides a thin wrapper to use…
permissive · top 15,000 on PyPI
llmLLM is a CLI tool and Python library for…
permissive · top 15,000 on PyPI
fhlmifhlmi provides a unified async Python interface…
permissive · top 15,000 on PyPI
any-llm-sdkProvides a unified Python interface to…
permissive · top 15,000 on PyPI
code-puppyCode Puppy is an AI-powered code generation…
permissive · top 15,000 on PyPI
llm-anthropicA plugin for the LLM command-line tool that…
permissive · top 15,000 on PyPI