liveBook · Manning

FastAPI

FastAPI is a Python web framework for building APIs, with type-annotation-based request handling, validation, and automatic OpenAPI documentation.

How 5 Manning books explain it

Build Financial Software with Generative AI (From Scratch)

FastAPI is a Python web framework for building application programming interfaces with automatic validation and documentation.

How it is used
Builds RESTful application APIs for ACH processing and dashboard functions.
How deep it goes
Demonstrates Docker setup, router wiring, stubs, pagination, asynchronous processing, and OpenAPI documentation; defers deeper backend investigation.
Examples
Uses a health check, hardcoded GET endpoints, file routers, ACH uploads, record paging, and dashboard operations.
What you can do after
Builds application APIs incrementally with routers, generated documentation, and designs for large-result and file-processing workflows.

Read how Build Financial Software with Generative AI (From Scratch) explains FastAPI →

LLMs in Production

FastAPI is a Python web framework for building HTTP APIs with type-based request validation and automatic interface documentation.

How it is used
Deploys machine-learning models behind customizable HTTP APIs when more automated serving frameworks do not provide enough flexibility.
How deep it goes
Demonstrates a local model-serving endpoint and discusses production integration, but does not develop FastAPI internals.
Examples
Uses a DeciCoder endpoint, Python server, stop tokens, and a curl request generating a Hello World function.
What you can do after
Operate a local model API by running a Python server and calling its generation endpoint with curl.

Read how LLMs in Production explains FastAPI →

Domain-Specific Small Language Models

A Python web framework for building APIs with automatic documentation, asynchronous request handling, and data validation support.

How it is used
Deploys Python APIs, microservices, and machine-learning inference endpoints behind HTTP routes.
How deep it goes
Explains application setup, routes, validation, asynchronous inference, server startup, and generated documentation without descending into framework internals.
Examples
Uses root and POST routes, validated generation requests, GPT-2 inference, interactive documentation, and a Docker deployment.
What you can do after
Build a validated asynchronous inference API and expose it locally or in a container with generated documentation.

Read how Domain-Specific Small Language Models explains FastAPI →

Road to Kubernetes

FastAPI is a Python web framework for building APIs.

How it is used
Builds simple Python web applications and REST APIs that handle request/response cycles.
How deep it goes
Explains setup, application structure, JSON responses, route handlers, and development serving, but defers production deployment details.
Examples
Demonstrates a Hello World endpoint, a versioned hello-world route, and Uvicorn running on port 8011.
What you can do after
Build it from scratch by creating a FastAPI application, adding route handlers, returning JSON, and running it with Uvicorn.

Read how Road to Kubernetes explains FastAPI →

AI Agents in Action, Second Edition

FastAPI is a Python web framework for building APIs with type-based request validation and automatic interface documentation.

How it is used
Wraps an agent in a callable HTTP service that accepts messages and returns a simple payload.
How deep it goes
Demonstrates typed input, asynchronous POST handling, binary responses, launch commands, and missing-output errors.
Examples
Uses an image-generator endpoint, curl and PowerShell requests, saved PNG files, and Dockerized service runs.
What you can do after
Operate/configure a FastAPI agent service, call its POST endpoint, verify image output, and run it in Docker.

Read how AI Agents in Action, Second Edition explains FastAPI →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.