🌐 فراتر از مرزها؛ مسیر بین‌المللی CardDev

Book Building Generative AI Services with FastAPI

142 Flashcards
123 Gallery cards
265 Audio
142 Prompts
142 Glossary

Ready to build production-grade applications with generative AI? This practical guide takes you through designing and deploying AI services using the FastAPI web framework. Learn how to integrate models that process text, images, audio, and video while seamlessly interacting with databases, filesystems, websites, and APIs. Whether you're a web developer, data scientist, or DevOps engineer, this book equips you with the tools to build scalable, real-time AI applications. Author Alireza Parandeh provides clear explanations and hands-on examples covering authentication, concurrency, caching, and retrieval-augmented generation (RAG) with vector databases. You'll also explore best practices for testing AI outputs, optimizing performance, and securing microservices. With containerized deployment using Docker, you'll be ready to launch AI-powered applications confidently in the cloud.

Cover of Building Generative AI Services with FastAPI
O’Reilly

Book chapters

Browse the chapters to quickly get to know the structure and content of the book.

By browsing the chapters of this book you can quickly see what each part teaches, how the whole is structured and where to start. Each chapter focuses on one concept or skill, and you see its main topics so your choice is more informed. Whether you follow the whole book or just one part, this view helps you find your way.

Developing AI Services

This part covers a gentle introduction to GenAI concepts and FastAPI with the necessary steps to set up a FastAPI project that will power your generative service. You will integrate various generative models into your FastAPI app and expose endpoints to interact with these models.

Cover of Building Generative AI Services with FastAPI
Chapter 1

Introduction

7 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 2

Getting Started with FastAPI

12 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 3

AI Integration and Model Serving

16 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 4

Implementing Type-Safe AI Services

8 flashcards

Communicating with External Systems

In this part, you will build endpoints that are capable of handling concurrent AI workloads and processing real-time data generated by AI models. This is also where you will handle the application’s lifecycle, long-running tasks such as AI model inference, and integrating databases with AI services.

Cover of Building Generative AI Services with FastAPI
Chapter 5

Achieving Concurrency in AI Workloads

16 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 6

Real-Time Communication with Generative Models

13 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 7

Integrating Databases into AI Services

9 flashcards

Securing, Optimizing, Testing, and Deploying AI Services

In this part, you will learn about security, optimizing, testing, and deployment best practices when building GenAI services.

Cover of Building Generative AI Services with FastAPI
Chapter 8

Authentication and Authorization

15 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 9

Securing AI Services

8 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 10

Optimizing AI Services

13 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 11

Testing AI Services

11 flashcards
Cover of Building Generative AI Services with FastAPI
Chapter 12

Deployment of AI Services

14 flashcards
Book release

Published

Produced on
September 22, 2026
Rating
5.0
Prerequisites
None

Reading time

12:39

Book type

Subscription

Participants

Be the first

Last updated

Nov 16, 2026