Installation
Requirements
- Python 3.11+
- Django 4.2+
- Wagtail 7.1+
Quick start
-
Install Wagtail AI:
-
Add to INSTALLED_APPS:
-
Configure an AI Provider and Backend:
WAGTAIL_AI = { "PROVIDERS": { "default": { "provider": "openai", "model": "gpt-4.1-mini", }, }, # For legacy rich text editor integration "BACKENDS": { "default": { "CLASS": "wagtail_ai.ai.llm.LLMBackend", "CONFIG": { # Model ID recognizable by the "LLM" library. "MODEL_ID": "gpt-3.5-turbo", }, } }, } -
If you're using an OpenAI model, specify an API key using the
OPENAI_API_KEYenvironment variable, or pass it in a provider setting asapi_key. Refer to the AI Providers and AI Backends documentation for more details. -
Run migrations:
-
Enable specific features: