🌐 فراتر از مرزها؛ مسیر بین‌المللی 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 preface

Before you start, a short look at what you will learn in this book

In the preface, settle the general questions you have at a glance, so your view widens and your choice is more informed. Questions such as: Why was this book written and what problem does it solve? Who can use the book? A summary of the chapters and the learning goals of each part? The important changes and new improvements added across editions, and so on — we cover all of these for you.

Target audience

Web developers intending to add AI capabilities to their applications. This book helps them work with modern Python tools.

Data scientists who want to turn their models into production-ready services. This book bridges the gap between modeling and deployment.

DevOps engineers responsible for maintaining and scaling AI infrastructure. The containerization and deployment topics are crucial here.

Software architects looking for standard design patterns for AI services. This book teaches layered and modular design patterns.

Why the book was written

This book addresses the gap between AI models and real-world production applications. The author provides a standardized way to deploy models using FastAPI.

Focusing on scalability and performance enables developers to build services that perform well in high-load environments. The book thoroughly examines concurrency management techniques.

Comprehensive coverage of security and moderation topics makes this book an essential resource for engineers. Security in generative AI services is a primary concern addressed here.

Practical projects in each section facilitate learning complex concepts. This approach ensures the reader is capable of implementing their ideas immediately after reading.

Content overview

This book is a comprehensive and practical guide for anyone wanting to implement generative AI professionally on the web. Its project-based approach is highly valuable.

The author's explanations regarding concurrency and model management in FastAPI simplify the complexities of this field well. This book is a must-have for technical teams.

Combining security, testing, and deployment topics alongside model development distinguishes this work from similar books. A complete resource for the AI development lifecycle.

The book teaches advanced concepts like RAG and real-time processing in simple yet technical language. This work is excellent for advancing AI engineering knowledge.

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