Models.dev
Models.dev is a comprehensive open-source database containing specifications for AI models across major providers including Anthropic, OpenAI, Google, and dozens more. The project addresses the lack of a single unified source for AI model information by aggregating pricing, context limits, capabilities, and features into a structured, queryable format. It powers OpenCode internally and is available to any developer through a public API.
- Unified Model Database - Access specifications for models from 75+ providers including input/output costs, context windows, and token limits in one place.
- REST API - Query the complete database via a simple JSON API at models.dev/api.json for integration into your own tools and applications.
- Provider Logos - Fetch SVG logos for any provider through the API for consistent branding in your applications.
- AI SDK Compatible - Model IDs align with the Vercel AI SDK format, making lookups straightforward when building AI applications.
- Community Contributed - Submit new models or update existing data through pull requests using simple TOML file definitions.
- Capability Tracking - Track which models support reasoning, tool calling, structured output, temperature control, and file attachments.
- Modality Support - See input and output modalities including text, image, audio, video, and PDF support for each model.
To use Models.dev, fetch the API endpoint directly or browse the web interface. To contribute, fork the GitHub repository, add or update TOML files in the providers directory, and submit a pull request.
Models.dev Tool Discussions
No discussions yet
Be the first to start a discussion about Models.dev
Stats on Models.dev
Usage
Pricing and Plans
Open Source
Completely free and open source under MIT license. Access all model data via API or contribute through GitHub.
- Full API access
- Complete model database
- Provider logos
- Community contributions welcome
- MIT licensed