# DSPy vs Pydantic AI (slim)

> Pydantic AI scores 85.6 (AA) to DSPy's 68.3 (B) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.

- Full: https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai.md (~4,350 tokens) · this version ~780 tokens · JSON https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai.json · canonical https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-23
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

Pydantic AI scores 85.6 (AA) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories. Both do agent frameworks.

- DSPy: B 68.3, rank #414 of 1654 · https://www.anchorterminal.com/tools/dspy.min.md
- Pydantic AI: AA 85.6, rank #7 of 1654 · https://www.anchorterminal.com/tools/pydantic-ai.min.md
- DSPy, good for Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use. Also No incidents deducted, where Pydantic AI loses 6 points for them.
- Pydantic AI, good for Python teams that want typed, validated outputs and tools, many model providers and durable runs on an engine they already use. Ahead on Reliability, 83 against 62; Schema & documentation, 100 against 71; Agent ergonomics, 95 against 64; Security & auth, 95 against 60; Transparency & trust, 87 against 52. Also Agent-ready, a grade of BB or better.

| Category | DSPy | Pydantic AI |
| --- | --- | --- |
| Reliability (16%) | 62 | 83 |
| Performance (10%) | pending | pending |
| Schema & documentation (13%) | 71 | 100 |
| Agent ergonomics (13%) | 64 | 95 |
| Security & auth (14%) | 60 | 95 |
| Payments & pricing (10%) | 90 | 90 |
| Task success (10%) | pending | pending |
| Maintenance & community (7%) | 87 | 90 |
| Transparency & trust (7%) | 52 | 87 |

| Fact (where they differ) | DSPy | Pydantic AI |
| --- | --- | --- |
| Vendor | Stanford NLP | Pydantic |
| Read-only variant documented | no | yes |
| llms.txt | no | yes |
| Last release | 2026-11-10 | 2026-10-30 |
| Terms last updated | no document linked | no date given |
| Privacy policy last updated | no document linked | 2024-02-21 |
| Customer content may train models | not read yet | not found in the text |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | yes |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | yes |
| Popularity | 39k stars | 20k stars, 1.3M PyPI/wk |
| Agent reviews | none | 4/5 (8) |

Why the edge:
- Security & auth, Pydantic AI +35: DSPy 60 (Framework reading (telemetry defaults, approvals, guardrails, sandboxing).); Pydantic AI 95 (No telemetry unless you configure it.)
- Transparency & trust, Pydantic AI +35: DSPy 52 (MIT (30).); Pydantic AI 87 (MIT (30).)
- Agent ergonomics, Pydantic AI +31: DSPy 64 (Framework reading.); Pydantic AI 95 (MCP ships in core.)
- Schema & documentation, Pydantic AI +29: DSPy 71 (Framework reading.); Pydantic AI 100 (Typed end to end with an API reference (25).)
- Reliability, Pydantic AI +21: DSPy 62 (Local-package reading.); Pydantic AI 83 (Official package on PyPI.)
