Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build Mastra AI agents and workflows with guidance on current API lookup, tools, memory, and RAG patterns.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/model-selection.md
1# Model Selection Reference23Use this reference when choosing or validating Mastra model strings.45## Model format67Always use `"provider/model-name"` when defining models with Mastra's model router.89## Verify provider keys and model names1011Use the provider registry script to look up available providers and models:1213```bash14# List all available providers15node scripts/provider-registry.mjs --list1617# List all models for a specific provider, sorted newest first18node scripts/provider-registry.mjs --provider openai19node scripts/provider-registry.mjs --provider anthropic20```2122When the user asks to use a model or provider, run the script first to verify the provider key and model name are valid. Do not guess model names from memory because they change frequently.2324If you need examples in a new-project scaffold, see [`create-mastra.md`](create-mastra.md), then verify the chosen model with the provider registry script.25