Drupal is a registered trademark of Dries Buytaert
Release: Dynamic Entity Reference 3.2.3 Minor update available for module dynamic_entity_reference (3.2.3). Release: Charts 5.2.3 Minor update available for module charts (5.2.3). Release: amazee.ai Private AI Provider 1.3.5 Minor update available for module ai_provider_amazeeio (1.3.5). Release: Search and Replace Scanner 2.0.0-beta5 New beta version released for module scanner (2.0.0-beta5). Release: Database Info Schema 1.3.1 Minor update available for module database_info_schema (1.3.1). Release: Easy LQP 2.0.4 Minor update available for module easy_lqp (2.0.4). Usage Milestone: Media entity Twitter Module media_entity_twitter crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs. Module Revived: Message 8.x-1.9 Module message updated after 17 months of inactivity (8.x-1.9).

This module offers a neutral pricing catalog and a best-effort cost estimator for various AI integrations within Drupal. It supports popular AI models like OpenAI, Anthropic, and Google Gemini, allowing administrators to review and override pricing schedules. The module provides estimates for different AI tasks, including token usage, image generation, and speech-to-text.

AI Costs provides a shared, provider-neutral pricing catalogue and best-effort cost estimator for Drupal AI integrations.

Features

  • Packaged OpenAI, Anthropic, Google Gemini, and Grok/xAI model pricing.
  • Administrator-editable JSON overrides with validation.
  • A preview-before-save updater for the maintained pricing schedule.
  • Model aliases, provider aliases, effective dates, cached input rates, and long-context pricing.
  • Cost estimates for tokens, images, video, text-to-speech, and speech-to-text.
  • A reusable ai_costs.pricing_catalog service.

Post-installation

Visit /admin/config/ai/costs to review or edit the active pricing catalogue. The packaged schedule is used until an administrator saves a local override. Estimates are informational; provider-reported request costs should take precedence.

Additional requirements

Requires the AI module 1.4 or later. Compatible with Drupal 10.3 and Drupal 11.

Community documentation

Source code and documentation are available at GitHub.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
2 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-alpha3 Pre-release Aug 4, 2026