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

A look at the structure and key facts of the book

Publication date

Publication date

April 22, 2025

Edition

Edition

1 edition

Total chapters

Total chapters

12 chapters

Total pages

Total pages

530 pages

Level

Level

Intermediate to advanced

Building Generative AI Services with FastAPI

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.

Browse this section to get a quick overall picture of the book's content.

AI Model Integration

This section focuses on how to connect various AI models to web services. Readers learn how to manage text, audio, image, and video models within FastAPI.

  • Strategies for loading models into memory.
  • Using Lifespan to manage model lifecycles.
  • Connecting to external resources like databases and APIs.

Service Optimization and Security

This topic addresses operational challenges in production environments. The main focus is on securing services and increasing their efficiency at scale.

  • Implementing authentication and access control.
  • Using Rate Limiting to prevent abuse.
  • Optimization techniques like caching and Batch Processing.

The authors behind this book are among the most prominent experts and pioneers of their field. Their work is the result of years of hands-on experience, deep research and collaboration with the world's largest technology organizations and companies.Each of these authors, through specialist books and articles, has played an important role in shaping and advancing technical knowledge worldwide.

Comments

Readers' experience with this book - comments from buyers and other users

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