- Handle draft-7 list-form items in JsonSchemaTransformer, TestModel and Mistral streamed output, and make TestModel accept boolean subschemas and cap prefixItems at maxItems
- Fix ImageGeneration under FallbackModel and dataclasses.replace, and compare Embedder by identity
- Refuse a second durable execution engine on an agent before either binds
- Make wrap hooks enclose complete stage lifecycles
- Re-raise model errors from Temporal model activities with their original type in workflow code
- End the run when a BackgroundTools tool raises an unexpected exception, as a sequential tool does
Pydantic AI by Pydantic
Overview
A Python agent framework from the Pydantic team, built around type-safe structured outputs, dependency injection and model-agnostic tool calling.
Pydantic AI was downloaded 1.4M times from PyPI in the week ending Oct 4, 2026, up 6.6% on the week before and down 48.8% over the last 30 days compared with the 30 before. The GitHub repository has 20.4K stars, 727 of them added in the last 30 days. The latest stable release is 2.54.0, published Oct 3, 2026; there were 16 stable releases in the past 30 days. It was mentioned in 7 Hacker News posts and comments over the last 30 days.
Pydantic AI usage and attention over time
Download the raw daily series: pydantic-ai.csv
Install Pydantic AI
| PyPI | pip install pydantic-ai |
|---|
These commands use the packages tracked on this page. The vendor may recommend a different installer; see the official documentation.
Key facts
| Maker | Pydantic |
|---|---|
| Type | Typed agent framework |
| License | MIT |
| Interfaces | Python library |
| Main language | Python |
| Open issues and PRs | 1,392 |
Pricing
Pydantic AI is open source and free to use; you pay only for the models and infrastructure it runs on.
, checked Oct 5, 2026. Prices change often; confirm before you buy.
Pulse Score breakdown
Each component is scored 0 to 100 from public signals; a dash means no data for it. Methodology.
What changed: recent Pydantic AI releases
63 stable releases in the last 90 days · Full changelog
- GHSA-6fqq-452j-qhrp (high): a streamed request through ConcurrencyLimitedModel or limitmodelconcurrency could keep its concurrency slot when the slot was released on a different task than the one…
- Add oneOf schema support to TestModel's generated data
- Make clai2 plugins declarative Plugin subclasses, modeled on AbstractCapability
- Move session naming into clai2 and deprecate pydanticaiharness.steppersistence.naming
- Add a built-in posthog plugin to pydantic-clai2 with /keys or browser sign-in
- Add a built-in grain plugin to clai2 with a keyring-backed Grain sign-in
- GHSA-v36g-jcw9-x7cw (moderate): converting attacker-controlled HTML with deeply nested elements in the local webfetch tool could consume excessive CPU and memory. Provider-native web fetching is…
- Cap genai-prices below 0.1 to keep token usage extraction and limits working
- GHSA-v36g-jcw9-x7cw (moderate): converting attacker-controlled HTML with deeply nested elements in the local webfetch tool could consume excessive CPU and memory. Provider-native web fetching is…
- Run harness capabilities in any workspace: Coder, FileSystem, Shell and the rest work through ctx.workspace, locally or in a sandbox
- Replace ModalSandbox's own tools with a Modal workspace, so Coder, Shell and FileSystem run in the sandbox; ModalSandboxBackend replaces ModalSandboxSession
- Raise AnthropicModel's default maxtokens from 4096 to 16384 on Claude Sonnet 4.5 and later
- Keep the prompt as a DecisionModel's judged text after a retry
- Stop SubAgents loading agent files by default, and deprecate inherittools
- Match dated gemini-3.8-live ids, reject googleaffectivedialog on Gemini 3.1 Flash Live and 3.8 Live at connect, and raise RealtimeError for Gemini Live close codes
- Raise a UserError for a realtime toolchoice that forces a tool call on OpenAI, Azure OpenAI, and xAI
- Add OpenAI GPT-Live support with OpenAILiveModel
- Expose contextwindowused on realtime sessions, from GPT-Live's reported ratio or response usage
- Reduce RunContext copying overhead in capability hooks
- Keep providerdetails on OpenAI Realtime tool-call responses and the response id on replies cut off by a drop or close()
- Ask a DecisionModel which route to take by name, with one label per route
- Make ModelSelectionContext.messages end with the request being routed, and add ModelSelectionContext.prompt
- Replace the decision model's tool-call lean with an opt-in decisionroutethreshold
- Expose OpenAI servicetier in provider details
- Add DecisionModel, a base for Decisions-protocol models, and make TypeSafeModel one
- Add RunContext.indurablecontext so hooks can tell they run in durable workflow code
Pydantic AI alternatives
| # | Agent | Pulse | Downloads 7d | 7d | 30d | VS Code installs | Stars | Latest release | Price | Last 90 days | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 |
LangChainLangChain |
77 | 44.3M | up 1.9% | down 22.0% | — | 147K+45/day | 1.4.38d ago | Free (OSS) | ||
| 10 |
LangGraphLangChain |
69 | 16.1M | up 11.4% | down 21.8% | — | 42.7K+48/day | 1.2.13yesterday | Free (OSS) | ||
| 11 |
AI SDKVercel |
67 | 34.5M | up 13.5% | up 20.9% | — | 27.1K+18/day | 6.0.301yesterday | Free (OSS) | ||
| 13 | 63 | 8.7M | up 0.6% | up 2.0% | — | 8,679+23/day | 1.58.0yesterday | Free (OSS) | |||
| 17 |
Claude Agent SDKAnthropic |
59 | 21.5M | up 14.6% | up 0.6% | — | 8,219+5/day | 0.2.1636d ago | Free (OSS) | ||
| 21 |
MastraMastra |
58 | 2.2M | up 11.1% | up 19.1% | — | 28.6K+27/day | 1.74.0yesterday | Free (OSS) | ||
| No agents match that filter. | |||||||||||
Pydantic AI FAQ
How much does Pydantic AI cost?
Pydantic AI is open source and free to use; you pay only for the models and infrastructure it runs on.
Is Pydantic AI open source?
Yes. Pydantic AI is open source, released under the MIT license.
How popular is Pydantic AI?
Pydantic AI was downloaded 1.4M times from PyPI in the week ending Oct 4, 2026, up 6.6% on the week before and down 48.8% over the last 30 days compared with the 30 before. The GitHub repository has 20.4K stars, 727 of them added in the last 30 days. The latest stable release is 2.54.0, published Oct 3, 2026; there were 16 stable releases in the past 30 days.
What is the latest version of Pydantic AI?
The latest stable release we track is 2.54.0, published on Oct 3, 2026.
What are the alternatives to Pydantic AI?
The closest alternatives in the same category by Pulse Score are LangChain, LangGraph, AI SDK, Strands Agents.
Where these numbers come from
PyPI: pydantic-ai. GitHub: pydantic/pydantic-ai. See data sources for how each one is collected.
