Skip to content
masterclass Buddy

Pydantic · Module

model_construct

model_construct() creates a Pydantic model without validation. Use it only with trusted or already validated data because it can create invalid models.

Last updated

Syntax

BaseModel.model_construct(_fields_set: set[str] | None = None, **values: Any) -> Self

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BaseModel
  • model_validate()
  • model_validate_json()
  • model_fields_set
  • model_config.extra
  • model_copy()

Source: Models | Pydantic Docs. Checked 2026-11-03.