This project is not covered by Drupal’s security advisory policy.
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_catalogservice.
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.
Project information
- Project categories: Administration tools, Artificial Intelligence (AI), Developer tools
1 site reports using this module
- Created by torneoz on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0-alpha3
released 4 August 2026
Works with Drupal: ^10.3 || ^11
Adds Google Gemini pricing and maintained pricing-schedule updates.
