The Axiom

Web Frameworks

5 pages

Django

Django is batteries-included Python web — ORM with pgvector support, DRF for REST APIs, Channels for WebSocket LLM streaming, and Admin as a free internal AI operations tool; use over FastAPI when you need relational data, auth, or management commands out of the box.

djangopythonormdrf

Django REST Framework (DRF)

Django REST Framework (DRF) is the industry-standard toolkit for building REST APIs with Django. ModelSerializer + ModelViewSet + DefaultRouter is the standard CRUD pattern; custom @action decorators extend it for AI service endpoints.

djangodrfrest-frameworkapi

FastAPI

FastAPI is the standard async Python framework for AI backends — Pydantic-native, SSE streaming built-in, auto-generated OpenAPI docs, and the right choice when you need a Python service to expose an LLM API.

fastapipythonapiasync

Next.js App Router

Next.js App Router is the standard full-stack framework for AI web apps — Server Components keep API secrets server-side, Suspense enables token-by-token streaming UI, and the Vercel AI SDK provides first-class LLM streaming hooks.

nextjsreactapp-routerserver-components

Vercel AI SDK

Vercel AI SDK is the standard library for LLM-powered web apps — unified provider interface (Anthropic, OpenAI, Google), streaming primitives (streamText, useChat), and automatic tool-call cycles without SSE boilerplate.

vercelai-sdkstreaminguseChat