# Request Models with Pydantic

A Pydantic model replaces checks written by hand with a class that names each field of a request body and its type, with defaults for fields that may be left out, None for optional ones, and models inside models, and FastAPI checks every request against it before the route runs.

![Cheat sheet: Request Models with Pydantic](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a8e3a6a8ee214af3ad9ebc003ca044f2.webp)

- Category: FastAPI
- Level: Apprentice
- Tags: BaseModel, fastapi, Nested Model, Optional (typing), Pydantic, python, Request Body (fastapi)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-pydantic-request-models-cheat-sheet
