fastapi-genai-boilerplate

A clean and modular FastAPI boilerplate designed to kickstart your GenAI project.

templateboilerplatefastapillmgenerative-aiai-projectsgenai
FreeRepo

Preview

fastapi-genai-boilerplate preview

Overview

FastAPI-GenAI-Boilerplate is a production-ready starter template for building scalable FastAPI applications with built-in support for AI workflows, observability and DevOps practices. It includes FastAPI, Uvicorn, Gunicorn, Docker, Pydantic configuration, structured logging with Loguru, rate limiting, Redis caching, Prometheus metrics and pre-commit hooks for code quality, designed for teams building maintainable APIs with environment-aware settings and full request tracing.

Features

modular-architecturelangraph-workflowsmulti-agent-supportrequest-tracingstructured-loggingrate-limitingdocker-deploymentgunicorn-uvicornredis-cachingprometheus-metricsgrafana-dashboardslangfuse-integrationenvironment-aware-configx-request-id-headersbrute-force-protection

Feature Flags

userDashboardauthenticationecommerceloggingErrorTrackingjobsQueuecmsaiapiDocscachingrateLimitingloggingmonitoringdockercitracing

Recommended Use Cases

genai-applicationsllm-projectsai-workflow-orchestrationscalable-api-servicesproduction-ready-deployments

Frontend

None

Backend

fastapiuvicorngunicornpydanticlogurufastapi-limiteraiocachelangfuse

Auth Providers

None

Deployment Targets

dockergunicorn

Payment Providers

None

Quick Facts

โญ Stars
118
๐Ÿด Forks
19
๐Ÿงพ License
mit
๐Ÿ”„ Active
Unknown

Stack

Framework
fastapi
Language
python
Database
redis
Monitoring
prometheus, grafana, langfuse
Logging
loguru
CI
pre-commit

Data Layer

Databases
redis

UI Stack

Developer Experience

Docker
Yes
Tests
No
Quickstart
Yes
env.example
Yes
CI
pre-commit

Pricing

Classification
free
Selected
โ€”
Notes
Open source MIT licensed project
Get Started with this Boilerplate