# Pydantic AI

> Source: https://agentsindex.ai/pydanticai

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.

Starting price

Free

From [github.com/pydantic/pydantic-ai/blob/main/LICENSE](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE), checked 13 November 2026

- MCP server Yes Checked by us github.com/pydantic/logfire-mcp, 15 November 2026 [Checked by us](https://github.com/pydantic/logfire-mcp)
- API Yes From pydantic.dev/docs/ai/guides/web, 21 September 2026 [pydantic.dev](https://pydantic.dev/docs/ai/guides/web/)
- Open source Yes Checked by us github.com/pydantic/pydantic-ai/blob/main/LICENSE, 15 November 2026 [Checked by us](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE)
- Self-host Not stated

- GitHub stars: 20.6k

[Docs](https://pydantic.dev/docs/ai/overview/) [GitHub](https://github.com/pydantic/pydantic-ai)

What we checked

- Pages last read: 15 November 2026
- Facts checked: 5 facts · From 5 sources
- AI answers: Too few read · 58 buyer-question answers read, November 2026

[How we check](https://agentsindex.ai/methodology) [Editorial policy](https://agentsindex.ai/editorial-policy#not-for-sale)

[Visit Pydantic AI](https://agentsindex.ai/go/pydanticai) [Compare](https://agentsindex.ai/compare?cat=agent-frameworks&products=pydanticai)

## At a glance

- Category: [Agent frameworks](https://agentsindex.ai/categories/agent-frameworks)
- 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](https://agentsindex.ai/blog)

Study 19 October 2026 – 16 November 2026

### [AI Tool Pricing Index, November 2026](https://agentsindex.ai/data/ai-tool-pricing-index)

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 edition as of 16 November 2026 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: Yes The MIT license grants the software free of charge and states no time-limited trial

### For AI agents

- MCP server: Yes [Checked by us, 15 November 2026](https://github.com/pydantic/logfire-mcp)
- API: Yes [pydantic.dev, 21 September 2026](https://pydantic.dev/docs/ai/guides/web/)

[Developer docs](https://pydantic.dev/docs/ai/overview/)

[![Pydantic AI](https://agentsindex.ai/img/1024/screenshots/pydanticai/pricing.webp)](https://agentsindex.ai/img/1920/screenshots/pydanticai/pricing.webp)

Pricing page, captured 19 October 2026

[github.com/pydantic/pydantic-ai/blob/main/LICENSE](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE), checked 13 November 2026

### All plans and limits

| Plan | Price | Main limits |
| --- | --- | --- |
| Pydantic AI | Free | None stated |

Read 13 November 2026 from [github.com/pydantic/pydantic-ai/blob/main/LICENSE](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE).

## What we checked on Pydantic AI

Yes Partly No

What it costs to start No

### 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

MIT License, permission grant [raw.githubusercontent.com/pydantic/pyda…](https://raw.githubusercontent.com/pydantic/pydantic-ai/main/LICENSE) Checked 29 October 2026

What it costs to start Yes

### 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

LICENSE file, grant paragraph [github.com/pydantic/pydantic-ai/blob/ma…](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE) Checked 21 September 2026

How you build with it Yes

### 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():

Basic Usage section, sentence above the to_web example [pydantic.dev/docs/ai/guides/web](https://pydantic.dev/docs/ai/guides/web/) Checked 21 September 2026

How you build with it Yes

### MCP server

Publishes its own MCP server on GitHub

> The Logfire MCP Server is here!:tada:

repository description [github.com/pydantic/logfire-mcp](https://github.com/pydantic/logfire-mcp) Checked by us, 15 November 2026

How you build with it Yes

### Open source

MIT licence in its public repository

> MIT License

LICENSE in github.com/pydantic/pydantic-ai [github.com/pydantic/pydantic-ai/blob/ma…](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE) Checked by us, 15 November 2026

## 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](https://agentsindex.ai/methodology)

## Sources and changes

Last full check 13 November 2026

Sources 4

- Read 13 November 2026 · [github.com](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE) /pydantic/pydantic-ai/blob/main/LICENSE
- Read 29 October 2026 · [raw.githubusercontent.com](https://raw.githubusercontent.com/pydantic/pydantic-ai/main/LICENSE) /pydantic/pydantic-ai/main/LICENSE
- Read 21 September 2026 · [pydantic.dev](https://pydantic.dev/docs/ai/capabilities/mcp/) /docs/ai/capabilities/mcp
- Read 21 September 2026 · [pydantic.dev](https://pydantic.dev/docs/ai/guides/web/) /docs/ai/guides/web

What changed 1

- 15 November 2026 What it does

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.

| Price | Plan | First seen | Last seen | Readings | Source |
| --- | --- | --- | --- | --- | --- |
| Free |   | 13 November 2026 | 13 November 2026 | 1 | [Pricing page, read 13 November 2026](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE) |

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

## Similar to Pydantic AI

- [ERIUS PHONE](https://agentsindex.ai/eriusphone) Rented cloud Android phones, each in its own container, that keep an agent's apps and sign-ins between sessions. From about $44 a month
- [TinyFish](https://agentsindex.ai/tinyfish) Web search, page fetching, cloud browsers and goal-driven web automation for AI agents, with search and fetch free. Free plan, then $0.002 per minute
- [Smithery](https://agentsindex.ai/smithery) Public MCP server registry, now run by Arcade, listing direct vendor MCP URLs after its proxy shut down. Free plan
- [UI Discovery](https://agentsindex.ai/uidiscovery) A library of real websites, iOS apps and dashboards with each one's palette, fonts and original build prompt. From $20 a month

## 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](https://agentsindex.ai/claim/pydanticai?from=owner-line)

[Report an error](mailto:hello@agentsindex.ai?subject=Report%20an%20error%3A%20Pydantic%20AI%20(pydanticai)&body=What%20is%20wrong%20on%20the%20page%2C%20and%20where%20on%20the%20product) if a fact is wrong.
