Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Geocoder 8.x-4.37 Minor update available for module geocoder (8.x-4.37). Release: Paragraphs Editor Enhancements 10.2.0 Minor update available for module paragraphs_ee (10.2.0). Release: Paragraphs Editor Enhancements 10.1.1 Minor update available for module paragraphs_ee (10.1.1). Release: Trash 3.0.34 Minor update available for module trash (3.0.34). Release: Paragraphs Editor Enhancements 10.0.9 Minor update available for module paragraphs_ee (10.0.9). Release: Trash 3.1.0 Minor update available for module trash (3.1.0). Release: MCP Sentinel 2.22.1 Minor update available for module mcp_sentinel (2.22.1). Release: Menu Autopilot 1.3.2 Minor update available for module menu_autopilot (1.3.2). Module Revived: Decorative Images 1.3.6 Module decorative_images updated after 7 months of inactivity (1.3.6). Security Coverage: Pixie Dark Theme pixie_dark now has official Drupal security advisory coverage.

AI Costs

4 sites No security coverage

Part of the AI ecosystem · 308 projects

View on drupal.org

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Releases

Version Type Core Release date
1.0.0-alpha3 Pre-release 10–11 Aug 4, 2026