Get started with Flama documentation

Learn how to build, package, and deploy your modern and robust machine learning APIs.

Flama for your AI assistant

Download the skill.md file and let your AI coding assistant build Flama apps with full framework knowledge.

Download

Quickstart

Follow this guide to develop your first API, and explore the main functionality offered by Flama. Learn how to create a new project, define your first endpoint, and run your API locally.

Fundamentals

Deep dive into the foundational building blocks of Flama. Learn how applications, routes, schemas, components, modules, middlewares, endpoints, and resources work together to form a coherent ASGI application.

ML APIs

Learn how to package your ML models as lightweight binary files, integrate them into your API, and customise the interaction with models through Components and Resources for full control over their lifecycle.

CLI

Discover the Flama command line interface, and uncover the power of serving ML models codeless. This guide shows how to run an API locally, serve ML models, and interact with them, without typing a single line of code.

Advanced

Explore advanced features such as configuration management, pagination, error handling, background tasks, lifespan events, authentication with JWT, and other production-ready patterns for building robust APIs.

Domain Driven Design

Place your business domain at the centre of your architecture. Learn how to apply Domain-Driven Design patterns within Flama, including repositories, workers, and domain models, to build maintainable systems.