FastAPI
A modern, async Python API framework that uses type hints for validation, serialisation and automatic OpenAPI docs.
FastAPI builds on Starlette and Pydantic so that ordinary Python type hints drive request validation, response models and interactive API documentation. It supports async endpoints, dependency injection and WebSockets with very little boilerplate. It has become a popular choice for ML model serving and AI back ends.
- Type
- Framework
- Category
- Backend
- Maintainer
- Sebastián Ramírez (tiangolo) and contributors
- First released
- 2018
- License
- Open source (MIT)
- Pricing
- Open source
- Level
- Beginner
- Technologies
- python, fastapi, pydantic
- GitHub stars
- 105,274
- Weekly downloads
- 135,809,305 (pypi)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What FastAPI is used for
- REST and async APIs
- ML/AI model serving
- Microservices
Strengths
- Automatic OpenAPI and docs UI
- Type-hint-driven validation
- High performance for Python
- Great editor support
Limitations
- Fewer built-ins than Django (no ORM/admin)
- Async pitfalls when mixing blocking code
FastAPI alternatives
How it relates to other tools
- FastAPI built on Pydantic
- FastAPI built on Python
- FastAPI works with SQLAlchemy
- FastAPI works with pytest
- Built on FastAPI: Full Stack FastAPI Template