agentleFS
PydanticKnown publisherpydantic/pydantic-ai/docs/model_aliases/AGENTS.md

pydantic-ai / model_aliases

AGENTS.md21k starsChanged 17 days agoMITView on GitHub

aliases.json maps each model alias that doc pages use to a concrete model. This file covers choosing those models. How pages write aliases is in the "Model names" section of docs/AGENTS.md. - Place a model in a tier by its price per token, on the scale of Anthropic's lineup: small is Haiku-priced, medium Sonnet-priced, large Opus-priced, and xlarge Fable-priced. Anthropic is the scale because it offers a model at all four prices. - Compare output prices per token, by ratio:…

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Place a model in a tier by its price per token, on the scale of Anthropic's lineup: small is Haiku-priced, medium Sonnet-priced, large …

    line 9
  2. Distinctive:

    Never rank a provider's models only against each other.

    line 17
  3. Very specific:

    Read prices from the genai-prices package (genai_prices.data), which Pydantic AI already depends on.

    line 19
  4. Very specific:

    Update this table whenever a change to aliases.json fills, opens, or moves a gap.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Model aliases

aliases.json maps each model alias that doc pages use to a concrete model. This file covers choosing those models. How pages write aliases is in the "Model names" section of docs/AGENTS.md.

Chat model tiers

  • Place a model in a tier by its price per token, on the scale of Anthropic's lineup: small is Haiku-priced, medium Sonnet-priced, large Opus-priced, and xlarge Fable-priced. Anthropic is the scale because it offers a model at all four prices.
  • Compare output prices per token, by ratio: a model belongs to the tier whose Anthropic output price is the smallest multiple away. One price keeps placement unambiguous. Keep each provider's tiers in price order: a cheaper model never sits above a pricier one.
  • Tier only general-purpose chat models. Coding, research, multi-agent, and other specialized models stay out of the tiers.
  • Never rank a provider's models only against each other. Each provider's top model would then share one tier name across providers at very different prices.
  • Read prices from the genai-prices package (genai_prices.data), which Pydantic AI already depends on.
  • Give a tier the provider's newest model at that price.
  • A newer model that matches an older one's capability at the same or lower price replaces it. Drop the older model from the lineup, then fill any tier it leaves with the gap rule below. Never keep both in neighboring tiers.
  • Fill a tier that has no model at its price with the nearest model above it. At the top of the lineup, use the nearest model below. Every chat provider defines all four tiers, so a page can switch providers without checking which tiers exist.
  • Mirror the anthropic: tiers in the bedrock: tiers, with the same Claude models.

Realtime, image, and embedding models

  • Point <provider>:realtime, <provider>:image, and <provider>:embedding at the model the provider recommends for general use, not at its largest one. Readers copy examples as written.

Known models

  • Point aliases at models in Pydantic AI's known model names. tests/test_docs_model_aliases.py checks each alias against them.
  • A model that its provider serves but Pydantic AI does not list yet goes in that test's _NOT_YET_KNOWN. Remove it from _NOT_YET_KNOWN when a model PR adds it. The test fails until you do.

Current placements

Update this table whenever a change to aliases.json fills, opens, or moves a gap.

AliasModelReason
openai:large, openai:xlargegpt-6-astraAstra is Fable-priced. gpt-6.1-sol replaced the Opus-priced GPT-5.4 to 5.6 models at a lower price, so large takes Astra, the nearest model above.
google:large, google:xlargegemini-4-argonGoogle's most capable model. genai-prices has no Argon price yet; re-place it when it does.
google:smallgemini-3.1-flash-liteHaiku-priced, and Google's newest model at that price. gemini-3.5-flash-lite is Sonnet-priced by output, so it can't replace it.
xai:smallgrok-4.3xAI's cheapest general chat model. Its output price is nearer Sonnet's than Haiku's, so small takes it as the nearest model above.
xai:medium, xai:large, xai:xlargegrok-4.7Sonnet-priced and newer than grok-4.3. It replaced grok-4.6 at the same price. Nothing sits above it.
openai:imagegpt-image-2.5-flareSame price as gpt-image-2, newer. Sunburst is OpenAI's slower premium editing model.
openai:embeddingtext-embedding-3-smallOpenAI's general-purpose embedding model. text-embedding-3-large costs 6.5 times as much.

Download now (ZIP)

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 2 mentionsApr 2026: 29 mentionsMay 2026: 2 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the pydantic/pydantic-ai repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about pydantic/pydantic-ai

The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 63

Talked about on GitHub, Bluesky, Hacker News and the web (63 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 7

2 more on Bluesky

On Hacker News · 5

On the web · 1

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.