AI Budget

Tracks AI API token spend and stops jobs when daily, monthly or per-job budgets run out

Community 0 246/wk MIT v0.1.0

Installation

pnpm add @extantape/payload-plugin-ai-budget

About

AI Budget keeps a ledger of every AI API call made from a Payload site, recording the tokens and cost of each call. You set spending caps per background job, per day and per month, and a job that reaches a cap stops cleanly instead of running up the bill. Calls are priced from a dated price table that you supply.

When prepaid credits run out, calls pause rather than failing one by one, and a single notice goes to the people you name. The plugin checks periodically and resumes on its own once credits return. A spend summary shows month-to-date totals, a projection to month end and the most expensive jobs.

Package info

Package name
@extantape/payload-plugin-ai-budget
Latest version
0.1.0
Unpacked size
43 kB
License
MIT
Weekly downloads
246
Last publish
Nov 13, 2026

More from ExtantApe

View profile

Birth month and year check at sign-up that flags minors by country and region

Linked accounts and role hats, with a second factor before switching to a sensitive role

Builds site and admin themes from color harmonies, with contrast checks in light and dark

Browses large nested document trees one level at a time with live counts

Stores DNA reference panels and reviewed sample results in Payload collections

Studbook numbers, kinship and inbreeding analysis for managed animal populations

Similar plugins

More in AI

Visual drag-and-drop page builder for Payload collections with live canvas editing

Chat agent that composes and edits Payload pages from your block library

Translates default-locale content into secondary locales with OpenAI or a custom provider

Translates localized content fields with an AI provider from the admin panel

Works out EU VAT on Payload orders, with reverse charge and OSS totals

Writes product titles, descriptions and translations with Claude, ChatGPT, Gemini or Kimi