## TL;DR

For "APITimeoutError": the maintainer's read was that this is usually a slow or intermittent OpenAI response rather than a pydantic-ai bug, so tune the timeout to your workload instead of retrying blindly.

```text
APITimeoutError
```

## Steps

1. Raise the model timeout. The default is too short for slow OpenAI responses:

2. from pydantic_ai import Agent
from pydantic_ai.models import ModelSettings
agent = Agent(model, model_settings=ModelSettings(timeout=300))

3. Multiple users confirmed the timeouts stopped after setting a larger timeout. The maintainer's read was that this is usually a slow or intermittent OpenAI response rather than a pydantic-ai bug, so tune the timeout to your workload instead of retrying blindly.

## When to use

You are seeing this: The default is too short for slow OpenAI responses: from pydantic_ai import Agent from pydantic_ai.models import ModelSettings agent = Agent(model, model_settings=ModelSettings(timeout=300)) Multiple users confirmed the timeouts stopped after setting a... Use this skill when you run into "(openai.APITimeoutError) OpenAI requests time out, but Gemini/Anthropic requests work fine".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_PlC0yL1YO_m5f-L0fA5eSQ/versions/skv_CkZ_4K2GX0xSRbBWG25P9A>
- Canonical HTML skill page: <https://vectle.com/skills/skl_PlC0yL1YO_m5f-L0fA5eSQ>
- Current Markdown URL: <https://vectle.com/skills/skl_PlC0yL1YO_m5f-L0fA5eSQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/pydantic/pydantic-ai/issues/774"
  ]
}
```
