# Pydantic

*noun*

say it: **“py-DAN-tik”** **/paɪˈdæntɪk/**

The Python library FastAPI uses to describe data as classes with type hints, check incoming values against them, and explain what's wrong.

## What is **Pydantic**?

**Pydantic** is the library FastAPI uses to describe data shapes as classes. It checks types, converts values and produces clear error messages.

## In a sentence

- “**Pydantic** refused the application because age was text.”
- “FastAPI reads each request body into a **Pydantic** model.”

Level: Apprentice · [More FastAPI terms at this level](https://www.ask-codey.com/glossary?category=fastapi&level=2)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/pydantic
