Building Generative AI Services with FastAPI

Building Generative AI Services with FastAPI

by Alireza Parandeh
Publication Date: 15/04/2025

Share This eBook:

  $51.99

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.



  • Build generative AI services that interact with databases, filesystems, websites, and APIs

  • Manage concurrency in AI workloads and handle long-running tasks

  • Stream AI-generated outputs in real time via WebSocket and server-sent events

  • Secure services with authentication, content filtering, throttling, and rate limiting

  • Optimize AI performance with caching, batch processing, and fine-tuning techniques


Visit the Book's Website.

ISBN:
9781098160265
9781098160265
Category:
Web services
Publication Date:
15-04-2025
Language:
English
Publisher:
O'Reilly Media

This item is delivered digitally

Reviews

Be the first to review Building Generative AI Services with FastAPI.