---
title: "Pydantic AI Transit Planner"
description: "Journey planning over a real Dresden public transport timetable, with an SVG map of each answer. One of the Pydantic AI benchmarks; not part of the intelligence index."
canonical: https://models.pydantic.dev/benchmarks/transit_planner/
---

# Pydantic AI Transit Planner

> Journey planning over a real Dresden public transport timetable, with an SVG map of each answer. One of the Pydantic AI benchmarks; not part of the intelligence index.
>
> Markdown copy of https://models.pydantic.dev/benchmarks/transit_planner/. Index for agents: https://models.pydantic.dev/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://models.pydantic.dev/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://models.pydantic.dev/select.md
- Search models by name: `GET https://models.pydantic.dev/api/search?query=<text>`
- List, filter and sort models: `GET https://models.pydantic.dev/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://models.pydantic.dev/api/models/<slug>`
- Any other question about the models: `GET https://models.pydantic.dev/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

Pydantic AI Transit Planner measures how well an agent plans journeys over a real public transport timetable.
The agent gets a read-only directory of timetable files and a data dictionary, loads what it needs into DuckDB, and works out the answers itself: there is no routing tool.
The timetable is the Dresden area's buses, trams, ferries and cable railways (3,655 places, 150 lines) from gtfs.de's feed of DELFI e.V. data, CC BY 4.0, downloaded on 26 November 2026, and the questions are about dates from 30 November to 10 December 2026, after the tested models' training cutoffs.

The files use a format of our own rather than GTFS, so knowing GTFS does not help.
Repeated runs are written once with a repeat count, a third of the stop times are left out and must be interpolated by distance, and the rows are in no useful order.
Every rule a journey follows, such as the walking limit and the time allowed for a change, is stated in the data dictionary.

The 10 cases go from single journeys, such as the earliest arrival or an arrive-by question, to searches that combine many journeys: a meeting point for two people, every journey worth taking in an hour, and tours of several stops, some with opening hours.
An answer passes when every leg is checked against the timetable and its arrival, or the tour's return, is the optimum, so any optimal journey passes.
Each answer also comes with an SVG map, scored on where its stops are drawn and rated by a panel of judges, but the map is not part of the pass.

In code mode the timetable is mounted read-only in the sandbox and SQL is the only tool, so the agent can load the files and search them in Python; with tool calling the agent also has tools to list and read files.

- **Created by:** [Pydantic](https://pydantic.dev)
- **gtfs.de:** https://gtfs.de
- **DELFI e.V.:** https://www.delfi.de
- **All Pydantic AI benchmarks:** /benchmarks/pydantic_ai/
- **Scores from:** Pydantic (CC BY 4.0) (/benchmarks/transit_planner/), results updated 2026-11-28

## Caveats

- 10 cases, one run each, so the score moves by 10 points per case.
- The strongest models pass every case: 9 of the 32 models scored 100 with tool calling.

## Results

The best result per model, with the reasoning setting it was run at where the source gives one. Blended price is US dollars per million tokens, three input to one output, from the provider the model's page leads with.

| Rank | Model                                                                                | Setting | Score  | Code mode | Cost per run | Cost per run, code mode | Blended price |
| ---- | ------------------------------------------------------------------------------------ | ------- | ------ | --------- | ------------ | ----------------------- | ------------- |
| 1    | [Claude Fable 5.1](https://models.pydantic.dev/models/claude-fable-5.1.md)           | –       | 100.0% | 90.0%     | $1.00        | $0.77                   | $20           |
| 1    | [Claude Fable 5.2](https://models.pydantic.dev/models/claude-fable-5.2.md)           | –       | 100.0% | 100.0%    | $0.72        | $0.54                   | $16           |
| 1    | [Gemini 4 Argon](https://models.pydantic.dev/models/gemini-4-argon.md)               | –       | 100.0% | 100.0%    | $0.37        | $0.37                   | $4            |
| 1    | [Gemini 4 Carbon](https://models.pydantic.dev/models/gemini-4-carbon.md)             | –       | 100.0% | 100.0%    | $0.73        | $0.65                   | $4            |
| 1    | [Gemini 4 Hydrogen](https://models.pydantic.dev/models/gemini-4-hydrogen.md)         | –       | 100.0% | 90.0%     | $0.38        | $0.36                   | $3            |
| 1    | [Gemini 4 Neon](https://models.pydantic.dev/models/gemini-4-neon.md)                 | –       | 100.0% | 100.0%    | $0.94        | $0.90                   | $6            |
| 1    | [GPT-6 Astra](https://models.pydantic.dev/models/gpt-6-astra.md)                     | –       | 100.0% | 100.0%    | $0.50        | $0.40                   | $20           |
| 1    | [GPT-6.2 Astra](https://models.pydantic.dev/models/gpt-6.2-astra.md)                 | –       | 100.0% | 100.0%    | $0.20        | $0.17                   | $16           |
| 1    | [GPT-6.2 Sol](https://models.pydantic.dev/models/gpt-6.2-sol.md)                     | –       | 100.0% | 100.0%    | $0.077       | $0.071                  | $4            |
| 10   | [Claude Opus 5.5](https://models.pydantic.dev/models/claude-opus-5.5.md)             | –       | 90.0%  | 100.0%    | $0.26        | $0.20                   | $8            |
| 10   | [Gemini 3.8 Flash](https://models.pydantic.dev/models/gemini-3.8-flash.md)           | –       | 90.0%  | 90.0%     | $0.44        | $0.40                   | $1.5          |
| 10   | [GPT-6 Sol](https://models.pydantic.dev/models/gpt-6-sol.md)                         | –       | 90.0%  | 90.0%     | $0.15        | $0.16                   | $4            |
| 10   | [GPT-6.1 Sol](https://models.pydantic.dev/models/gpt-6.1-sol.md)                     | –       | 90.0%  | 90.0%     | $0.084       | $0.076                  | $4            |
| 10   | [Grok 4.7](https://models.pydantic.dev/models/grok-4.7.md)                           | –       | 90.0%  | 100.0%    | $1.95        | $1.44                   | $3            |
| 15   | [Claude Haiku 5.5](https://models.pydantic.dev/models/claude-haiku-5.5.md)           | –       | 80.0%  | 80.0%     | $0.029       | $0.037                  | $0.2          |
| 15   | [Claude Opus 5](https://models.pydantic.dev/models/claude-opus-5.md)                 | –       | 80.0%  | 80.0%     | $0.84        | $0.54                   | $10           |
| 15   | [Claude Sonnet 5.5](https://models.pydantic.dev/models/claude-sonnet-5.5.md)         | –       | 80.0%  | 100.0%    | $0.17        | $0.19                   | $4            |
| 15   | [GPT-6 Luna](https://models.pydantic.dev/models/gpt-6-luna.md)                       | –       | 80.0%  | 40.0%     | $0.018       | $0.028                  | $0.2          |
| 15   | [GPT-6.1 Terra](https://models.pydantic.dev/models/gpt-6.1-terra.md)                 | –       | 80.0%  | 90.0%     | $0.058       | $0.052                  | $2            |
| 15   | [Grok 4.6](https://models.pydantic.dev/models/grok-4.6.md)                           | –       | 80.0%  | 100.0%    | $1.01        | $0.65                   | $3            |
| 15   | [Kimi K3.1 Pro](https://models.pydantic.dev/models/kimi-k3.1-pro.md)                 | –       | 80.0%  | 90.0%     | $0.74        | $0.57                   | $4            |
| 22   | [GLM 5.3](https://models.pydantic.dev/models/glm-5.3.md)                             | –       | 50.0%  | 70.0%     | $1.29        | $1.57                   | $2.15         |
| 22   | [MiniMax M3.1 Flash](https://models.pydantic.dev/models/minimax-m3.1-flash.md)       | –       | 50.0%  | 80.0%     | –            | –                       | $0.26         |
| 24   | [Claude Sonnet 5](https://models.pydantic.dev/models/claude-sonnet-5.md)             | –       | 40.0%  | 60.0%     | $1.09        | $1.24                   | $4            |
| 24   | [DeepSeek V4 Pro 0423](https://models.pydantic.dev/models/deepseek-v4-pro.md)        | –       | 40.0%  | 70.0%     | $0.90        | $0.78                   | $2.17         |
| 24   | [Muse Wonder](https://models.pydantic.dev/models/muse-wonder.md)                     | –       | 40.0%  | 90.0%     | $1.17        | $1.49                   | $8            |
| 27   | [DeepSeek V4.1 Flash](https://models.pydantic.dev/models/deepseek-v4.1-flash.md)     | –       | 20.0%  | 60.0%     | $0.027       | $0.044                  | $0.26         |
| 27   | [Muse Spark Open](https://models.pydantic.dev/models/muse-spark-open.md)             | –       | 20.0%  | 70.0%     | $0.60        | $0.67                   | $2            |
| 29   | [GLM 5.3 Flash](https://models.pydantic.dev/models/glm-5.3-flash.md)                 | –       | 0.0%   | 20.0%     | $0.072       | $0.11                   | $0.24         |
| 29   | [MiniMax M3](https://models.pydantic.dev/models/minimax-m3.md)                       | –       | 0.0%   | 10.0%     | $0.32        | $0.23                   | $0.53         |
| 29   | [Nemotron 3.5 Super VL](https://models.pydantic.dev/models/nemotron-3.5-super-vl.md) | –       | 0.0%   | 10.0%     | $0.066       | $0.043                  | $0.24         |
| 29   | [Qwen3.8 27B](https://models.pydantic.dev/models/qwen3.8-27b.md)                     | –       | 0.0%   | 0.0%      | $0.24        | $0.10                   | $1.09         |
