# Response Models: Choosing What Goes Out

A response model says exactly which fields a route sends back, set by the route's return type or by response_model=, so separate models for what comes in and what goes out keep fields such as staff notes and password hashes inside the API.

![Cheat sheet: Response Models: Choosing What Goes Out](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/6e2a3c0588074bd89b151a262020f0c2.webp)

- Category: FastAPI
- Level: Journeyman
- Tags: BaseModel, fastapi, Mass Assignment, python, Response Model
- Author: Gregor Dzierzon
- Updated: November 23, 2026

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