Models.dev is a community-contributed, open-source database of AI model specifications, pricing, and capabilities. It provides a JSON API for querying model data and SVG logos for providers. Data is stored as TOML files organized by provider and model, covering fields like context limits, token costs, supported modalities, and reasoning capabilities. The project is used internally by opencode and integrates with the AI SDK. Contributors can add new providers and models via pull requests, with GitHub Actions validating submissions against a defined schema. A wrapper/extends mechanism allows reusing canonical model definitions without duplication.

8m read timeFrom github.com
Post cover image
Table of contents
APIContributing
828 Impressions1 Comment