Guides
Spending limits and billing alerts, provider by provider
What each cloud, AI and API provider offers to cap spend, from hard limits to budget alerts and prepaid balances, with the steps to set them up and links to the provider's own docs.
AWS
- Can I set a hard spending limit on my AWS account?
AWS has no account-wide spending cap. Learn what AWS Budgets can stop, how the 8-12 hour delay affects bills, and which levers halt charges.
- How do I keep Amazon Bedrock spend under control?
Amazon Bedrock has no native spend limit. Learn how Bedrock bills, how 50% batch discounts work, and how to block access immediately with IAM deny policies.
- How do I stop a runaway AWS Lambda bill?
Stop a runaway AWS Lambda function immediately by setting reserved concurrency to 0. Learn how 16-call loop detection works and monitor GB-seconds.
- How to set up AWS billing alerts that actually warn you early
Set up AWS billing alerts using AWS Budgets and CloudWatch. Follow step-by-step setup, 6-hour metric delays, $0 budget alerts, and where native tools lag.
- Is the AWS Free Tier actually free?
Learn how AWS Free Tier billing works, why new accounts get $100 in credits, and what triggers unexpected charges like public IPv4 and NAT gateways.
- Why AWS Cost Explorer doesn't show today's spend
AWS Cost Explorer only shows data through yesterday and refreshes every 24 hours. Here is how its 14-day hourly data and API costs work.
- Why is your AWS NAT gateway bill so high, and how do you cut it?
AWS NAT gateways charge $0.045 per hour and $0.045 per GB processed. Learn how S3 and DynamoDB drive up costs and how free gateway endpoints fix it.
- Will AWS Cost Anomaly Detection catch a runaway bill in time?
AWS Cost Anomaly Detection runs about 3 times a day on data that lags up to 24 hours. Here is how it works, what it misses, and how to stop runaway bills.
Google Cloud, Firebase and Gemini
- Can I cap Google Cloud spend, and how do spend caps work?
Google Cloud spend caps pause new usage automatically across 4 eligible services when costs hit 100%. Here is how spend cap budgets work and what they cover.
- How do I avoid a surprise Firebase bill on the Blaze plan?
Avoid unexpected Firebase Blaze invoices. Understand your 50K free daily Firestore reads, set spend caps on Cloud Functions, and catch billing spikes early.
- How do I export Google Cloud billing to BigQuery?
Learn how to export Google Cloud billing data to BigQuery, choose between standard and detailed exports, and understand delays from a few hours to 5 days.
- How do I limit what I spend on the Gemini API?
Learn how to cap Gemini API costs using Prepay balances from $5, project spend limits, and Cloud Billing spend caps to avoid surprise invoices.
- How to set up Google Cloud budget alerts that reach you in time
Set up Google Cloud budget alerts on actual and forecasted spend. Learn why alerts arrive hours late and how to wire notifications to Slack using Pub/Sub.
- What does the Gemini API cost per million tokens?
Compare Gemini API costs per million tokens across paid and free tiers. See rates for Gemini 4 Argon from $2.00, thinking token billing, and spend caps.
Azure
- Does Azure have a spending limit on pay-as-you-go?
Azure offers no spending limit on pay-as-you-go accounts. Learn how the $200 credit limit works on free tiers, what happens when it hits, and your options.
- How to keep Azure OpenAI spend under control
Learn how Azure OpenAI bills tokens, why it has no hard caps, how to turn off API keys, and how to cut batch rates by 50% to stop surprise cloud bills.
- How to set up Azure budget alerts and why they fire late
Azure budget alerts evaluate every 24 hours, but cost data takes 8 to 72 hours to post. Here is how to configure thresholds and avoid late billing surprises.
Cloudflare
- Can I put a spending limit on Cloudflare?
Cloudflare offers usage blocks for 2 products via API, but leaves R2 uncapped. Here is how spend policies, budget alerts, and per-request CPU limits work.
- How are Cloudflare Durable Objects billed?
Cloudflare bills Durable Objects on compute and storage. Learn how 128 MB duration, the 20:1 WebSocket ratio and SQLite limits work to avoid surprise bills.
- How does Cloudflare D1 pricing work?
Cloudflare D1 charges by rows read and written, not compute hours. Learn how the 5M daily free tier works and how indexes cut query costs.
- How does Cloudflare Workers pricing work?
Cloudflare Workers starts with a free tier and a $5 monthly paid plan that includes 10 million requests and zero egress fees. Here is how billing works.
- How much does Cloudflare R2 cost?
Cloudflare R2 pricing explained: $0.015 per GB-month for Standard storage, zero egress fees, $4.50 per million Class A writes, and a 10 GB free tier.
- How much does Cloudflare Workers KV cost?
Cloudflare Workers KV includes 100,000 reads and 1,000 writes a day for free. Paid plans charge $0.50 per million reads and $5.00 per million writes.
- How to get alerted when Cloudflare usage-based billing jumps
Set up Cloudflare budget alerts to track account spend and send webhook notifications across port 80 or 443 to avoid surprise usage-based charges.
GitHub Actions
- How do I stop GitHub Actions from billing past my budget?
Stop GitHub Actions spending past your budget by setting a hard limit, tracking your $12 or $18 included compute, and triggering stops on GitHub-hosted runners.
- How much do GitHub Actions minutes cost in 2026?
Standard GitHub Actions minutes run from $0.002 to $0.062 per minute in 2026, with free tiers for public repos and $12 to $18 in monthly included compute.
- How to stop a runaway GitHub Actions workflow
Learn how to stop runaway GitHub Actions runs, kill active jobs, and replace the 360-minute default timeout to avoid draining your monthly compute budget.
Vercel
- How do I set a spending limit on Vercel?
Learn how to set an On-Demand Budget on Vercel, trigger 503 pauses at $200 or custom limits, and understand exactly what spend management does not cover.
- How to stop bots and DDoS traffic on Vercel
Stop bot spikes on Vercel without paying for blocked traffic. Turn on Attack Mode for $0 and use Spend Management to pause builds on 503.
- What does Vercel actually cost on Hobby vs Pro?
See what Vercel actually costs across Hobby and Pro. We break down the $20 monthly fee, seat pricing, serverless execution rates, and overage limits.
- Why is my Vercel bill so high?
Track down unexpected Vercel costs from Fluid compute starting at $0.128 per CPU-hour, unoptimized image pipelines, and unblocked traffic on your Pro plan.
OpenAI
- How to get notified about OpenAI API spend before it surprises you
Configure OpenAI spend alerts and hard limits before bills spike. Learn how prepaid credits, $5 reloads, and project budgets prevent surprise invoices.
- How to set a hard spending limit on the OpenAI API
Learn how to cap OpenAI API spend with prepaid credits from $5, disable auto-reload, and enforce monthly project limits to prevent unexpected bills.
- How to track OpenAI API costs with the Usage and Costs APIs
Query OpenAI's Completions Usage and Costs APIs with an Admin key. Pull token counts in 1h buckets or daily dollar amounts broken down by project and model.
- What does the OpenAI API cost per million tokens?
OpenAI API rates range from $0.05 per million tokens on nano up to $50.00 for flagship output, with 50% discounts available on Batch and Flex runs.
Anthropic (Claude)
- How Claude API credits work, and what happens when they run out
Learn how Claude API credits work, how auto-reload prevents downtime, when credits expire after 1 year, and what HTTP errors trigger when you hit zero.
- How much does Claude Code cost, and how do you control it?
Claude Code costs around $13 per active day or $150 to $250 monthly. Learn how subscriptions, API billing, /usage, and spend limits work to avoid high bills.
- How to cap your Claude API spend
Learn how to set monthly Claude API spend limits from $500 tier caps to custom workspace controls, and what happens when you reach them.
- What does the Claude API cost per million tokens?
Claude API pricing ranges from $0.10 to $50 per million tokens. Compare base rates, prompt caching, Batch discounts, and tool overheads across every model.
OpenRouter
- How to set a credit limit on an OpenRouter API key
Learn how to set an OpenRouter API key credit limit, configure daily resets, avoid 402 and 403 errors, and handle the 10,000 daily key-management limit.
- What does OpenRouter charge on top of model prices?
OpenRouter passes through model token rates directly. You pay a 5.5% or 8% fee when buying credits, plus 5% on BYOK usage over $25,000 each month.
xAI (Grok)
- How do I limit spend on the xAI API?
Control your xAI API spend using prepaid credits, a $0 monthly invoiced limit, and auto top-up caps with a $5 minimum purchase threshold.
- What does the xAI Grok API cost?
Current xAI Grok API pricing across text, voice, and vision. Text models start at $1.00 per 1M tokens with prompt caching down to $0.20 per million.
DeepSeek
- Track DeepSeek API spend and get warned before balance hits zero
Query the DeepSeek balance endpoint with a 60-second timeout, inspect total_balance and is_available, and prevent 402 errors before production calls halt.
- What does the DeepSeek API cost?
DeepSeek API tokens cost between $0.003 and $3.96 per million. Learn model rates for flash and pro, off-peak pricing windows, cache discounts, and limits.
Moonshot AI (Kimi)
- What does the Kimi (Moonshot AI) API cost?
Moonshot AI bills the Kimi API pay-as-you-go per 1 MTok. Learn K3 series 1,048,576-token limits, 60% batch discounts, cache TTLs, and balance tracking.
DataForSEO
- How DataForSEO pricing works and how to track spend
Understand DataForSEO pay-as-you-go pricing, from the $50 deposit and per-task rates to tracking your live balance with the free user data endpoint.
Apify
- How Apify pricing work, and how do I cap monthly usage?
Apify includes $5 to $999 in prepaid usage, charges $0.20 per compute unit, and lets you set hard usage limits in the Limits tab to prevent overages.
Vast.ai
- How Vast.ai billing works and what stopped instances cost
Stopped Vast.ai instances still bill for storage down to the second. Learn how the 3 pricing tiers, bandwidth, and $0 balance rules affect your bill.
RunPod
- Does a stopped RunPod pod still cost money?
A stopped RunPod pod cuts compute fees, but volume disks jump to $0.20/GB/month. Learn how stop vs terminate works and avoid surprise storage invoices.
- How does RunPod pricing work for Pods and Serverless?
RunPod bills Pods and Serverless by the second, from $1.19/hr on Community Cloud up to $5.29/hr on Secure Cloud. Learn how storage and idle fees work.
Railway
- How do I set a hard usage limit on Railway?
Set a hard usage limit on Railway to shut down workloads before surprise bills hit. Configure Compute and Agent caps starting at $5 per month.
- How does Railway pricing work?
Railway plans start at $0 with $1 in monthly credit, while paid tiers start at $5. Here is how CPU, RAM, and volume billing work without invoice surprises.
Neon
- How does Neon Postgres pricing work?
Learn how Neon Postgres pricing works across Free, Launch, and Scale plans, from $0.106 CU-hours to storage rates and scale-to-zero limits.
Supabase
- How Supabase pricing works and what the spend cap covers
Understand Supabase pricing across Free and Pro, what the spend cap covers, and why an unmanaged $25 Pro plan can still bill you for hourly compute add-ons.
Turso
- How does Turso pricing work?
Understand Turso pricing, from the 500 million free row reads to overages, storage costs, and the BLOCKED errors that hit when you exceed monthly quotas.
fal.ai
- How does fal.ai pricing work?
Learn how fal.ai pricing works across images, video, and GPUs. Compare output costs starting at $0.003 per megapixel, billing rules, and balance locks.
Twilio
- How to set up Twilio usage alerts before a bill spikes
Set up Twilio usage triggers via the REST API before your bill spikes. Learn how to configure 1,000 triggers, handle webhooks, and monitor usage records.
- How to stop Twilio SMS pumping and toll fraud
Stop Twilio SMS pumping and toll fraud by locking SMS geo permissions, cutting voice verification, and setting Verify Fraud Guard to 1% or 2% limits.
ElevenLabs
- How do I limit ElevenLabs API spend per key?
Set hard credit quotas on your ElevenLabs API keys, restrict scopes, and track spend via analytics endpoints. Learn how to configure 3 key guardrails.
- How does ElevenLabs pricing work for the API?
ElevenLabs API costs run from $0.04 to $0.08 per 1,000 characters across paid plans starting at $6 a month. Learn how credits and overages work.
Comparisons
- Alternatives to AWS Budgets for catching cost spikes fast
AWS Budgets updates every 8 to 12 hours. Compare native CloudWatch alarms, Cost Anomaly Detection, and fast 5-minute monitors to catch runaway spend early.
- Best Vantage alternatives for indie developers and small teams
Vantage tracks spend across 40+ providers starting at $0, but report delays can leave you exposed. Here are the best alternatives for small teams.
- Neon vs Supabase: Which is cheaper for a small app?
Compare Neon and Supabase pricing for small apps. See how Neon's $0.106/CU-hour pay-as-you-go compares to Supabase's $25/mo Pro plan and spend caps.
- What are the alternatives to CloudZero for small teams?
Compare CloudZero with alternatives for small teams. Evaluate custom enterprise pricing against multi-provider monitoring tools starting at $0 to $12 a month.
- Which cloud and AI providers let you set a hard spending cap?
Compare hard spending limits across 23 cloud and AI providers. Learn what gets blocked, what keeps billing, and why an 8-hour delay can blow your budget.
Playbooks
- How do I send cloud billing alerts to Slack or Discord?
Route AWS, Google Cloud, Azure, and Cloudflare billing alerts directly to Slack or Discord webhooks to stop surprise bills across 4 clouds and 2 platforms.
- How to forecast your cloud bill before the month ends
Estimate your month-end cloud spend before the invoice arrives. Understand 24-hour reporting lag, provider prediction tools, and automated forecast alerts.
- How to monitor any API's credit balance and get alerted when it drains fast
Watch any API's prepaid balance through one HTTPS JSON endpoint. Costbrake turns the drop between checks into spend and alerts on spikes and budgets.
- How to monitor spend across OpenAI, Anthropic, and Gemini
Track spend across OpenAI, Anthropic, and Gemini in one place. Learn how usage APIs, 10-minute delays, and credit limits work across 23 providers.
- What is a cloud killswitch, and should I have one?
A cloud killswitch stops runaway spend before bills pile up. Learn how native caps work on AWS, Google Cloud, and Vercel, and why full automation is risky.
- What is a denial-of-wallet attack and how do you defend against it?
Learn what a denial-of-wallet attack is and how to defend against it across serverless, LLMs, and SMS. Stop spikes before your bill clears $0.20 per million.
- What to do in the first hour after an API key leaks
Leaked an API key? Follow this first-hour checklist to deactivate credentials, check AWS across all regions, set spend limits, and activate up to 8 MFA devices.