fastapi /fastapi

FastAPI framework, high performance, easy to learn, fast to code, ready for production

★ 104,607⑂ 10,208👁 786⑃ 6,596● 3,555▤ 344◈ 6,115
PythonMITCreated 2018-12-08fastapi.tiangolo.com/
104,607
stars
+21
10,208
forks
786
watchers
6,596
prs
3,555
issues
344
releases
6,115
discussions

README

FastAPI framework, high performance, easy to learn, fast to code, ready for production



    


    


    


    



---

Documentation: https://fastapi.tiangolo.com

Source Code: https://github.com/fastapi/fastapi

---

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints.

The key features are:

 Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic). One of the fastest Python frameworks available.
 Fast to code: Increase the speed to develop features by about 200% to 300%. 
 Fewer bugs: Reduce about 40% of human (developer) induced errors. 
 Intuitive: Great editor support. Completion everywhere. Less time debugging.
 Easy: Designed to be easy to use and learn. Less time reading docs.
 Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.
 Robust: Get production-ready code. With automatic interactive documentation.
 Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.

 estimation based on tests conducted by an internal development team, building production applications.

 Sponsors


 Keystone Sponsor



 Gold Sponsors










 Silver Sponsors










Other sponsors

 Opinions





"_[...] I'm using FastAPI a ton these days. [...] I'm actually planning to use it for all of my team's ML services at Microsoft. Some of them are getting integrated into the core Windows product and some Office products._"

Kabir Khan - Microsoft (ref)

---

"_We adopted the FastAPI library to spawn a REST server that can be queried to obtain predictions. [for Ludwig]_"

Piero Molino, Yaroslav Dudin, and Sai Sumanth Miryala - Uber (ref)

---

"_Netflix is pleased to announce the open-source release of our crisis management orchestration framework: Dispatch! [built with FastAPI]_"

Kevin Glisson, Marc Vilanova, Forest Monsen - Netflix (ref)

---

"_If anyone is looking to build a production Python API, I would highly recommend FastAPI. It is beautifully designed, simple to use and highly scalable, it has become a key component in our API first development strategy and is driving many automations and services such as our Virtual TAC Engineer._"

Deon Pillsbury - Cisco (ref)

---



 FastAPI mini documentary

There's a FastAPI mini documentary released at the end of 2025, you can watch it online:



 Typer, the FastAPI of CLIs



If you are building a CLI app to be used in the terminal instead of a web API, check out Typer.

Typer is FastAPI's little sibling. And it's intended to be the FastAPI of CLIs. ⌨️ 🚀

 Requirements

FastAPI stands on the shoulders of giants:

 Starlette for the web parts.
 Pydantic for the data parts.

 Installation

First, install uv, and then add FastAPI to your project:



console
$ uv add "fastapi[standard]"

--- 100%




Note: Make sure you put "fastapi[standard]" in quotes to ensure it works in all te

Top issues

Discussions

Latest release

0.162.2 0.162.2 2026-11-07
FastAPI includes an official skill that helps coding agents use new features and recommended patterns for your installed version. Install it with uvx library-skills in your project. See Develop with AI.

 Docs

 📝 Add FastAPI Cloud guidance to the FastAPI skill. PR 16697 by @tiangolo.
 📝 Add guidance for developing FastAPI apps with AI. PR 16695 by @tiangolo.

 Internal

 🔧 Add an agent skills note to GitHub releases. PR 16696 by @tiangolo.

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON