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.