NewYour coding agent can read the release notes before it upgrades.Set up the MCP server β
PyPI, #65 most downloaded on PyPI
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Latest stable
0.165.0
Last release 4 days ago
18 Nov 2026
Release timing varies
gaps range from 8 days to 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
371 releases Β· first in 2018
Drag across the ruler to compare, or tap a release to open it.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
Your coding agent can read these notes before it upgrades. Set up the MCP server β
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
pydantic-ai dependency, use pydantic-ai-slim[openai] instead. PR #16526 by @YuriiMotov.FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
markdown-include-variants to 0.0.10. PR #16705 by @tiangolo._non_an variants. PR #16707 by @tiangolo.FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with
uvx library-skillsin your project. See Develop with AI.
π Add parameter model guidance to the FastAPI skill. PR #16693 by @tiangolo .
Omitted bool and bool | None form fields now use their declared defaults or produce missing-field errors, consistent with other fields and Pydantic be
Omitted bool and bool | None form fields now use their declared defaults or produce missing-field errors, consistent with other fields and Pydantic behavior. FastAPI no longer infers False for omitted booleans. This applies to individual form parameters, form models, and unions of form models.
Omitted boolean model fields are excluded from model_dump(exclude_unset=True), and their defaults no longer count as submitted fields during union selection. Default factories and validate_default follow the usual rules.
For HTML checkboxes, declare a boolean with a default of False. See Boolean Form Fields.
π Fix OpenAPI schemas for standalone nullable form unions. PR #16598 by @tiangolo .
β¨ Add support for combining unions of form models. PR #16596 by @tiangolo .
Query, header, cookie, and form parameter models now apply their extra configuration to all submitted fields in the same parameter location, consisten
Query, header, cookie, and form parameter models now apply their extra configuration to all submitted fields in the same parameter location, consistent with Pydantic behavior. This includes fields declared in other models, individual parameters, or dependencies, which were previously excluded.
With extra="forbid", fields outside the model are rejected even if another parameter declares them. With extra="allow", those fields are included as model extras. With the default extra="ignore", they are ignored.
β¨ Add support for optional unions of form models. PR #16586 by @tiangolo .
β¨ Add support for optional query, header, and cookie parameter models. PR #16584 by @tiangolo .
β¨ Add support for optional form models. PR #16582 by @tiangolo .
π Preserve form media types in OpenAPI. PR #16579 by @tiangolo .
β¨ Add support for combining form models. PR #16577 by @tiangolo .
β¨ Add support for combining query, header, and cookie parameter models. PR #16573 by @tiangolo .
π Preserve uploaded file positions when converting to bytes . PR #16566 by @tiangolo .
π Fix validation error locations for form and file AliasChoices . PR #16564 by @tiangolo .
π Respect model alias settings for query, header, and cookie parameters. PR #16562 by @tiangolo .
π Fix AliasChoices for path parameters. PR #16560 by @tiangolo .
π Fix AliasChoices for named JSON body parameters. PR #16559 by @tiangolo .
π Fix AliasChoices for query parameters, headers, and cookies. PR #16555 by @tiangolo .
π Preserve Pydantic field metadata in inferred request parameters. PR #16553 by @tiangolo .
π Preserve Pydantic field metadata when request options are omitted. PR #16549 by @tiangolo .
π Preserve Pydantic Field() attributes in request parameters. PR #16547 by @tiangolo .
The deprecated extra keyword arguments have been removed from Path , Query , Header , Cookie , Body , Form , and File . Unknown keyword arguments nowβ¦
The deprecated **extra keyword arguments have been removed from Path, Query, Header, Cookie, Body, Form, and File. Unknown keyword arguments now raise TypeError. For additional JSON Schema properties, replace, for example, Query(custom="value") with Query(json_schema_extra={"custom": "value"}).
β¨ Add Pydantic validation options to request parameters. PR #16542 by @tiangolo .
Unions of form models now apply the same browser form handling as individual models. Empty scalar fields use defaults or produce missing-field errors,
Unions of form models now apply the same browser form handling as individual models. Empty scalar fields use defaults or produce missing-field errors, empty list items are preserved, omitted boolean fields become False, and unselected files are treated as missing. JSON request bodies are unchanged.
Validation errors for header parameter models now report the HTTP header name, such as int-val , instead of the Python field name, int_val . Explicit
Validation errors for header parameter models now report the HTTP header name, such as int-val, instead of the Python field name, int_val. Explicit aliases, Header(convert_underscores=False), and Pydantic models with loc_by_alias=False keep their existing behavior.
JSON request bodies now distinguish an explicit null from an omitted value. For individual Body parameters, null is validated as None : nullable types
JSON request bodies now distinguish an explicit null from an omitted value. For individual Body parameters, null is validated as None: nullable types accept it, and non-nullable types reject it even when a default is defined. Defaults and default factories apply only when the value is omitted. This applies both to parameters inside JSON objects and to parameters representing the entire body. Clients that used null to request a default should omit the value instead.
When a JSON object is expected because of Body(embed=True) or multiple body parameters, sending null as the entire body now returns a validation error.
When no file is selected, browsers submit a file part with an empty filename and empty content. FastAPI now treats this as missing: required file fiel
When no file is selected, browsers submit a file part with an empty filename and empty content. FastAPI now treats this as missing: required file fields return a validation error, and fields with defaults or default factories use them. Unselected inputs are ignored in lists of files. Named zero-byte files are still accepted.
Browsers submit empty text inputs as empty strings ( "" ). FastAPI now treats empty scalar form values as missing in form models, matching individual
Browsers submit empty text inputs as empty strings ( "" ). FastAPI now treats empty scalar form values as missing in form models, matching individual Form parameters. Required fields return a validation error. Fields with defaults or default factories use them and remain unset in model_dump(exclude_unset=True) .
Empty strings inside lists are preserved. Omitted boolean form fields still become False . JSON requests and direct Pydantic validation are unchanged.
Defaults for omitted Query , Header , Cookie , and Form parameters and model fields are no longer treated as user input. Defaults are not validated un
Defaults for omitted Query, Header, Cookie, and Form parameters and model fields are no longer treated as user input. Defaults are not validated unless validate_default=True is enabled. If you rely on validators running for omitted values, enable default validation with Field(validate_default=True) for model fields or, for example, Query(validate_default=True) for individual parameters. Body(validate_default=True) is now honored too.
For parameter models, applying a default no longer marks a field as explicitly set, so model_dump(exclude_unset=True) excludes it. Default factories run once, and validation errors no longer include injected defaults in input.
Omitted boolean form fields still become False and count as explicitly set.
Omitted bool and bool | None form fields are now interpreted as False , matching unchecked HTML checkboxes. This applies to individual Form parameters
Omitted bool and bool | None form fields are now interpreted as False, matching unchecked HTML checkboxes. This applies to individual Form parameters and form models, including required fields and fields with defaults of True or None. The inferred value is considered explicitly set, including in model_dump(exclude_unset=True).
JSON requests and direct Pydantic validation are unchanged. See Boolean Form Fields.
The root_path parameter in FastAPI() is deprecated. Configure the server with fastapi run --root-path /api/v1 instead.
π₯ Remove deprecated openapi_prefix and unused extra from FastAPI . PR #16518 by @tiangolo .
β¨ Add WebSocket support to security dependencies. PR #10147 by @mnixry .
π Fix handling of empty value for byte file list parameter. PR #9383 by @Viicos .
β¬οΈ Add httpx2 to optional dependencies. PR #16512 by @tiangolo .
π Fix non-finite float serialization in JSONL and SSE streams. PR #16509 by @tiangolo .
π Fix blocking frontend fallback file checks. PR #16503 by @tiangolo .
π Fix included route metadata in iter_route_contexts() . PR #16484 by @tiangolo .
Automatic OpenTelemetry exporter setup is now opt-in. If you rely on FastAPI to configure exporters from OTEL_* environment variables, set FASTAPI_OTE
Automatic OpenTelemetry exporter setup is now opt-in. If you rely on FastAPI to configure exporters from OTEL_* environment variables, set FASTAPI_OTEL_AUTO_CONFIGURE=true or use FastAPI(telemetry={"auto_configure": True}) to retain the previous behavior.
Applications that configure their own providers and exporters require no changes. FastAPI Cloud enables automatic setup for you.
π Isolate FastAPI telemetry for excluded requests. PR #16470 by @tiangolo .
π· Fix deprecated command in bump-pre-commit-hooks workflow. PR #16463 by @YuriiMotov .
bump-pre-commit-hooks workflow. PR #16463 by @YuriiMotov.gpt-6-astra model for translations. PR #16453 by @YuriiMotov.π Allow startup when automatic OpenTelemetry configuration fails. PR #16418 by @tiangolo .
π Fix repeated endpoint wrapping in included routers. PR #16414 by @tiangolo .
β¨ Add native OpenTelemetry support. PR #16403 by @tiangolo .
setup-uv action to 10.0.1. PR #16249 by @YuriiMotov.commit_in_place input in translate.yml. PR #16216 by @YuriiMotov.zizmor.yml workflow (main -> master). PR #16178 by @YuriiMotov..cache in build-docs.yml. PR #16156 by @YuriiMotov.π Fix support for background tasks and headers from dependencies in app.frontend() . PR #16105 by @tiangolo .
β¨ Add app.frontend(check_dir="auto") , to make local development more convenient with fastapi dev . PR #16102 by @tiangolo .
π Fix status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE .
status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE.format_sse_event docstring rendering of \n\n terminator. PR #15613 by @AshNicolus.π Fix line splitting in format_sse_event to comply with SSE spec. PR #15515 by @Zawwarsami16 .
format_sse_event to comply with SSE spec. PR #15515 by @Zawwarsami16.π Fix response_model_* params ignored for non-generator endpoints with Iterable[..] return type. PR #15093 by @YuriiMotov .
response_model_* params ignored for non-generator endpoints with Iterable[..] return type. PR #15093 by @YuriiMotov.π Fix handling sequences with nested Annotated types. PR #14874 by @YuriiMotov .
One column per quarter.