responsemodel (or the return type annotation) filters and documents what is sent back — a classic use is hiding passwordhash from an internal model. Common patterns Need How Separate input/output schemas UserCreate, UserOut, UserInDB Read ORM objects modelconfig = ConfigDict(fromattributes=True) Drop None fields responsemodelexcludenone=True Status code statuscode=status.HTTP201CREATED Custom headers / cookies inject response: Response No body statuscode=204 and return None