Skip to main content

Module models_dev

Module models_dev 

Source
Expand description

Unauthenticated cross-provider model catalog via models.dev.

https://models.dev/api.json is a community-maintained public aggregator that lists model IDs for 100+ model_providers (Anthropic, OpenAI, Google, Bedrock, Azure, Moonshot, Qwen, …). No API key required, same shape for every model_provider. We fetch the catalog once per process and cache in memory.

Providers that have a native public /models endpoint (OpenRouter, Ollama’s /api/tags) override ModelProvider::list_models directly and skip this path.

Functions§

list_models_for
Look up model IDs for a model_provider, keyed by models.dev’s model_provider name.