Skip to main content

wagtail-ai

Wagtail AI

Get help with your content using AI superpowers.

License: MIT PyPI version ai CI

Wagtail AI integrates Wagtail with AI's APIs (think ChatGPT) to help you write and correct your content.

Right now, it can:

  • Give you suggestions for titles and meta descriptions based on your page content
  • Suggest titles and descriptions for your images
  • Generate relevant alt text for your images based on both the image and surrounding page content
  • Provide qualitative feedback on your content with actionable improvement suggestions
  • Suggest related pages based on semantic similarity using vector embeddings
  • Work with multiple LLM providers including local models, OpenAI, Mistral, Claude and many others
  • Let you add your own custom prompts
  • Correct your spelling/grammar
  • Finish what you've started - write some text and tell Wagtail AI to finish it off for you

Demos

Page title and meta description suggestions

https://github.com/user-attachments/assets/4fcd543f-50fd-4687-b6ba-0715338bb92a

Image title, description, and contextual alt text suggestions

https://github.com/user-attachments/assets/7f9d86f4-f4b0-41c1-bc13-f9c37368570c

Content feedback

https://github.com/user-attachments/assets/45d1de20-8143-4572-ba5e-1cf4b350e121

Rich-text integration

https://user-images.githubusercontent.com/27112/223072938-8cb5ccff-4835-489a-8be4-cca85001885e.mp4

Requirements & Costs

Wagtail AI supports many different LLMs, with OpenAI models available by default. To use these, you'll need an OpenAI account and an API key. There'll also be some cost involved.

For the OpenAI API used here (gpt-3.5-turbo), the cost is

  • $0.0005 per 1000 tokens for input tokens (prompt)
  • $0.0015 per 1000 tokens for output tokens (answer)

Here is an estimated cost breakdown for the correction prompt on a 1000-word paragraph.

We assume that:

  • Prompt is 30 words and the existing paragraph is 1000 words (Input)
  • Each word is 1.3 tokens (Tokens multiplier)
  • We get back 1000 words back (Output)

Then:

  • Input tokens : (35 + 1000) x 1.3 = 1345.5 tokens.
  • Output tokens : 1000 x 1.3 = 1300
  • Input tokens cost : 1345.5 / 1000 * $0.0005 = $0.00067275
  • Output tokens cost : 1300 / 1000 * $0.0015 = $0.00195
  • Total cost : $0.00262275

Links

Supported Versions

  • Wagtail 7.1+
  • Django 4.2+
  • Python 3.11+

Release files for wagtail-ai 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-ai 3.1.1
File Size Uploaded
wagtail_ai-3.1.1.tar.gz 113.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wagtail-ai 3.1.1
File Interpreter ABI Platform
wagtail_ai-3.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 444.4 kB

Release files / wagtail_ai-3.1.1.tar.gz

Download URL wagtail_ai-3.1.1.tar.gz
Size 113.8 kB
Tags Source
SHA-256 checksum
How to use checksums
00154266beb4434d8173a648b1b0fcdecf57df47b2262fece1bb406d27977551
BLAKE2b-256 checksum
How to use checksums
338e4b9331e5298f2c78be076da6549e1beb7da279aaeaf22d1b1e8ba19070dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release files / wagtail_ai-3.1.1-py3-none-any.whl

Download URL wagtail_ai-3.1.1-py3-none-any.whl
Size 330.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e53a17069ffe67f3db8837269baa5327475ab797cf9716898f1e7bf479adf32
BLAKE2b-256 checksum
How to use checksums
9c9cd435f256a73696ef3acf0461e495437b9d5b0c703961185a2ebeab98602a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.1.1 This release

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page