Skip to content
AgentsIndex

Pydantic AI

Typed Python agent framework from the Pydantic team, with model swapping by string and durable execution.

Pydantic AI is an open-source Python framework for building AI agents with typed tools, structured outputs and dependency injection across many model providers. Its companion packages add a capability harness, evals, graph workflows and OpenTelemetry instrumentation.

Best for
PydanticAI is best for developers who want typed, testable LLM agents with structured outputs.
GitHub stars
20.6k

What we checked

Pages last read
Facts checked
5 facts

From 5 sources

AI answers
Too few read

58 buyer-question answers read, November 2026

At a glance

Tags
Open source

Code

Last push
15 October 2026

For developers

Works with
OpenAI, Anthropic, Google, xAI, Bedrock, Cerebras and 17 more

Pydantic AI in our research

All research

Study

AI Tool Pricing Index, November 2026

Pricing

Free only

29 of the 361 tools we checked are free with no paid plan.

Edition price, checked 13 November 2026.

Pricing pages of the AI tools, November 2026 editionas of n = 361 tools checked

What it actually is

Pydantic AI is a Python library (pip install pydantic-ai) for building LLM agents with typed structured outputs, typed dependency injection, and typed tool calling — the same design philosophy as the Pydantic validation library, which is used inside the OpenAI SDK, Anthropic SDK, Google ADK, LangChain, and FastAPI. Models are swappable with a string ('anthropic:claude-fable-5', 'openai:gpt-5.6-sol', etc.) across OpenAI, Anthropic, Google, Bedrock, Azure AI Foundry, Groq, Mistral, xAI, Ollama and others, with no flagship feature locked to one vendor, per the vendor's own docs.

Where it's genuinely strong

The typing is real, not decorative: structured outputs, dependency injection, and tool signatures are checked by mypy/pyright, which is a concrete advantage over prompt-templated or dict-based agent frameworks for teams that already have Python type discipline. It has one of the more credible 'not locked to one vendor' stories in this space — model swap is a string change, and there's a built-in offline 'test' model for exercising agent logic without hitting an API or paying for tokens. First-party, co-maintained durable-execution integration with Temporal, DBOS, and Prefect (plus community integrations for Restate and Airflow) is unusual — most agent frameworks leave durability entirely to the user.

Traction, independently

Created in June 2024. GitHub's dependency graph shows 4,492 public repositories and 894 packages depending on it. Release cadence is genuinely daily-to-every-few-days (v2.32.0, v2.31.1, v2.31.0 shipped on three consecutive days, Aug 17–19 2026), and PRs are merging the same day this was checked — this is not a project coasting on stars. Thoughtworks' Technology Radar (Nov 2025) placed it in the 'Trial' ring, describing it as a 'stable, well-supported, open-source framework for building GenAI agents in production' — the one piece of independent analyst coverage found, as opposed to vendor-published case studies.

Security disclosure history

Four GitHub Security Advisories have been filed against pydantic-ai in 2026, all the same vulnerability class (CWE-918, Server-Side Request Forgery) in URL-download handling used by web-facing integrations (Agent.to_web, VercelAIAdapter, AGUIAdapter): GHSA-2jrp-274c-jhv3 (HIGH, published Feb 2026, fixed 1.56.0), GHSA-wjp5-868j-wqv7 (HIGH, path traversal/XSS, Feb 2026, fixed 1.51.0), GHSA-cqp8-fcvh-x7r3 (MODERATE, May 2026, fixed 1.99.0), GHSA-cg7w-rg45-pc59 (MODERATE, Jun 2026, fixed 1.102.0), and GHSA-h7p7-w5gc-xj3w (MODERATE, published Aug 13 2026, fixed 1.106.0 / current release line). Each was responsibly disclosed and patched, generally within the same or next minor release. Only applications that accept message history or URLs from untrusted users are affected — a backend agent with hardcoded, developer-controlled URLs is not.

Licensing and cost

The core library and the newer pydantic-ai-harness package (v0.23.0, also releasing multiple times a week) are both MIT-licensed with no paid tier gating any framework feature — the vendor states directly that 'the Pydantic data validation library is (always has been, always will be) completely free and permissively licensed under the MIT license,' and that applies to Pydantic AI too. The only paid product is Pydantic Logfire, an optional OpenTelemetry-based observability platform from the same company: free Personal tier (10M records/month, hard-capped, no card required), Team at $49/mo (5 seats included, $25/extra seat, $2/million additional records), Growth at $249/mo (unlimited seats, up to 90-day retention, HIPAA BAA), and custom Enterprise (cloud, dedicated, or self-hosted, SOC 2 Type II, SSO). Logfire's built-in AI Gateway charges a markup (5% on Personal/Team, 3% on Growth, 0% if you bring your own provider keys) if you route model calls through it rather than calling providers directly — none of this is required to use the pydantic-ai library itself.

Company behind it

Pydantic Services Inc. is a venture-backed company founded by Samuel Colvin, who created Pydantic in 2017. It raised a $4.7M seed round led by Sequoia Capital in Feb 2023, then a $12.5M Series A led by Sequoia (with Partech, Irregular Expressions, and angels including Logan Kilpatrick and Jason Liu) in Oct 2024, alongside the Logfire GA launch — roughly $17.2M raised total, no valuation disclosed in either announcement. TechCrunch reported 13 employees across the US and Europe as of the Series A; later headcount figures from third-party trackers (Tracxn, PitchBook) are self-reported estimates, not independently confirmed, so treat any number above 13 as unverified.

Pydantic AI price and terms

Terms

Free plan
YesYesThe MIT license grants the software free of charge and states no time-limited trial

For AI agents

Developer docs

Pydantic AI's pricing page

Pricing page, captured

github.com/pydantic/pydantic-ai/blob/main/LICENSE, checked

All plans and limits

PlanPriceMain limits
Pydantic AIFreeNone stated

Read from github.com/pydantic/pydantic-ai/blob/main/LICENSE.

What we checked on Pydantic AI

YesPartlyNo

What it costs to startNo

What the price counts

No paid pricing meter is published for the MIT-licensed software, which is granted free of charge.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software

raw.githubusercontent.com/pydantic/pyda…Checked

What it costs to startYes

Free to use

No call, account or card is needed: the package is MIT licensed and free of charge, and a built-in test model lets you exercise an agent offline before you hold any provider key.

On the page: LICENSE file, grant paragraph

github.com/pydantic/pydantic-ai/blob/ma…Checked

How you build with itYes

Public API

The product is itself a programmable library: you construct an Agent in your own code, call run(), and can expose it as an ASGI app or UI event stream inside your stack.

Create a web app from an agent instance using Agent.to_web():

pydantic.dev/docs/ai/guides/webChecked

How you build with itYes

MCP server

Publishes its own MCP server on GitHub

The Logfire MCP Server is here! :tada:

github.com/pydantic/logfire-mcpChecked by us,

Questions about Pydantic AI

How much does Pydantic AI cost?
Pydantic AI is free to use. From github.com/pydantic/pydantic-ai/blob/main/LICENSE, checked 13 November 2026.
Does Pydantic AI have an API or an MCP server?
Pydantic AI has an API. From pydantic.dev/docs/ai/guides/web, checked 21 September 2026. Pydantic AI has an MCP server. We checked github.com/pydantic/logfire-mcp ourselves on 15 November 2026.
Is Pydantic AI open source, and can you host it yourself?
Pydantic AI is open source. We checked github.com/pydantic/pydantic-ai/blob/main/LICENSE ourselves on 15 November 2026.
What have we checked on Pydantic AI?
5 facts, under these headings: What it costs to start, how you build with it.
How do we check Pydantic AI?
We hold 5 facts on Pydantic AI, quoted from 5 pages. Facts last checked 15 November 2026. Price last checked 13 November 2026. Last change found 15 November 2026.

How we check every listing

Repository

Licence
MIT
Stars
20,644
Last push
15 October 2026

Pydantic AI price history

We have read the price once so far, on 13 November 2026: free.

PricePlanFirst seenLast seenReadingsSource
Free13 November 202613 November 20261Pricing page, read 13 November 2026

From our research on 13 November 2026. A date is when we read the page, not when the price changed.

Similar to Pydantic AI

Is Pydantic AI yours?

Free, and the page then carries the verified owner mark. You confirm it with an email at ai.pydantic.dev. Claim this listing

Report an error if a fact is wrong.