返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

models-dev

查询models.dev数据库中的AI模型规格、价格和功能。当用户询问AI模型参数(上下文窗口、令牌限制、每个令牌的成本)、模型比较、供应商信息,或需要查找特定的模型ID以进行AI SDK集成时使用。触发条件包括诸如“GPT-4o的上下文窗口是多少?”、“比较Claude与GPT”、“Gemini Pro的价格是多少?”、“列出OpenAI的模型”或“哪些模型支持工具调用?”等问题。

person作者: jakexiaohubgithub

Models.dev - AI Model Information Query

Query comprehensive AI model specifications from the models.dev open-source database.

Usage

Run the script at scripts/fetch_models.py:

# List all providers
python scripts/fetch_models.py --providers

# Search models by name or ID
python scripts/fetch_models.py --search <query>

# Get specific model info
python scripts/fetch_models.py <model_id>

# List models from a provider
python scripts/fetch_models.py --provider <provider_name>

# Compare two models
python scripts/fetch_models.py --compare <model_id_1> <model_id_2>

Examples

# Search for Claude models
python scripts/fetch_models.py --search claude

# Get GPT-4o details
python scripts/fetch_models.py gpt-4o

# List Anthropic models
python scripts/fetch_models.py --provider anthropic

# Compare Claude Sonnet 3.7 vs GPT-4o
python scripts/fetch_models.py --compare claude-3-7-sonnet-20250219 gpt-4o

Available Data

Each model includes (when available):

  • Model ID: Identifier for AI SDK integration
  • Provider: Company/platform offering the model
  • SDK Package: npm package for AI SDK
  • Capabilities: Reasoning, Tool Calling, Structured Output, Attachments, Temperature
  • Modalities: Input/output types (text, image, audio, video, pdf)
  • Limits: Context window, max input/output tokens
  • Cost: Per-million token pricing (input, output, cache, reasoning)
  • Dates: Knowledge cutoff, release date, last updated
  • Status: alpha, beta, deprecated (if applicable)
  • Open Weights: Whether model weights are publicly available

API Source

Data fetched from https://models.dev/api.json - a community-maintained open-source database.