Install

Works with Drupal: ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 39.39 KB
MD5: b0eec680475265a4c3b0ad6b52e0a3b9
SHA-1: e5f0c6388296bcf14f7d2d1672ab00c8cc4518b1
SHA-256: 99053b25a9608c0dc480e4e69af8c1a9fa206accb9e57da05c20dbcec99ae522
Download zip 61.15 KB
MD5: d9fa099ace11a765525ab95fd9f235ef
SHA-1: 4722d61219963b2d310b194f6e68aadc3b9df48c
SHA-256: ba43ed96bfc63be81a79b23bcf59fea910367470596c369fdf1f214afb2b282d

Release notes

First stable release of AI Request Reports. The module tracks token usage, estimated cost, request duration, and errors for calls made through Drupal AI. It does not store prompts or generated response bodies.

  • View usage at /admin/reports/ai-usage. Configure how long records are kept and which token rates are used to estimate costs. Default rates cover selected OpenAI GPT and Anthropic Claude models.
  • Use ai-usage:check-prices to compare configured rates with published provider pricing. The command leaves the active configuration and historical records intact.
  • Pause new OpenAI requests made through Drupal AI and let integrations resume deferred work through Drupal cron or ai-usage:run-queues.

Requires PHP 8.5, Drupal 11.3+ or 12, and Drupal AI 1.5.3 or later in the 1.x series. The commands are available through Drush 13.7+ and the Drupal Core CLI from Drupal 11.4.

Created by: mtomek
Created on: 3 Dec 2026 at 16:59 UTC
Last updated: 3 Dec 2026 at 17:00 UTC
New features

Other releases