Choose models for an agent
select_modelsRecommend language models for an agent. Give the agent's system prompt, its code or a description of what it does; a selector agent ranks every model in the registry for it and returns up to five, best first, each with a score out of 100, reasons, prices and the Pydantic AI model string. Use this when the question is which model to use. It takes around ten seconds and is limited to 10 calls in 24 hours per IP address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The code that defines the agent and its tools | |
| stack | No | Optional: the language/framework context you are working in. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only. | |
| intent | No | Optional: what you're trying to achieve, in natural language. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only. | |
| harness | No | Optional: the agent harness and model you are running. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only. | |
| latency | No | The agent is interactive, so speed matters | |
| weights | No | Only open-weight or only closed models, or any | any |
| description | No | What the agent does and how it is used | |
| gateway_only | No | Only models built in to Pydantic AI Gateway | |
| organization | No | Optional: the organization or company you are working on behalf of, if known. It shows the maintainers what agents need and does not change the answer. Never include personal, private, or confidential information: a short task description, tool names and a public company name only. | |
| system_prompt | No | The agent's system prompt | |
| price_appetite | No | 1 is the cheapest model that works, 5 the best available |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The run. A finished run with recommendations is saved for 30 days: GET /api/select/runs/{id} returns it, DELETE deletes it, and /select/{id} shows it | |
| needs | Yes | What the agent needs from a model | |
| status | Yes | Always done in a JSON response. In an event stream: partial while some models are still ranking, summarising when the ranking is final, then done | |
| summary | Yes | Two or three sentences on what the agent needs and why the first model fits. null while status is summarising, and when more_input is set | |
| considered | Yes | Models that passed the weights and gateway_only constraints | |
| more_input | Yes | Set when the input does not describe an agent: what to send instead. There are then no recommendations | |
| selected_by | Yes | The models that made the selection, joined with +. Their rankings are averaged | |
| recommendations | Yes | Best fit first. Empty when more_input is set |