Documentation Index
Fetch the complete documentation index at: https://apidocs.scripe.io/llms.txt
Use this file to discover all available pages before exploring further.
spend_cap_exceeded
HTTP status: 402 Payment Required
The workspace has hit its daily AI spend cap for the current UTC
day. The cap is plan-dependent and resets at 00:00 UTC.
Why we shipped a hard cap
Every AI-cost endpoint (post generation, KB ingest with summarisation, source ingest from file) calls into a third-party provider whose pricing the customer doesn’t see directly. A runaway loop on the customer side could rack up several hundred dollars before they notice. The hard cap puts a clear ceiling on how much pain a misbehaving integration can cause in a single day, scoped per workspace so it doesn’t penalise co-tenants.Per-plan caps
| Plan | Daily cap |
|---|---|
SOLO | $5 (500¢) |
ADVANCED | $20 (2,000¢) |
BUSINESS | $50 (5,000¢) |
ENTERPRISE | unlimited |
How to handle it
- Don’t retry blindly. A retry will hit the same cap. Either wait for the bucket to reset or pre-flight-check usage on your side.
- Surface the
metato your end users so they understand they need to wait — or upgrade — before more AI work can be queued. - Pre-allocate manually. If you know you need to push 200 posts through tomorrow, work backwards from the cap and plan the cadence.
- Need more headroom? Upgrade to
BUSINESS(5,000¢/day) or talk to us about anENTERPRISEplan with no cap.
What we count
Each AI-cost job pre-reserves an estimate against the bucket at submit time, then reconciles to the provider-reported actual cost on the worker side. Negative deltas (we overestimated) are credited back to the bucket within a few seconds of the job finishing. Failed jobs that never reached a provider also get their estimate refunded. You’ll never get billed for the same cents twice.Related
- Jobs — long-running operations.
- Conventions — error envelope shape.