Example: CI/CD Budget Gate
Add this to your GitHub Actions to block deploys that use models exceeding your budget:
# .github/workflows/cost-check.yml
name: AI Cost Check
on: [pull_request]
jobs:
check-cost:
runs-on: ubuntu-latest
steps:
- name: Check model pricing
run: |
MODEL="openai-gpt5"
BUDGET=500 # $500/month max
COST=$(curl -s "https://www.getapipulse.com/api/calculate?model=$MODEL&requests=10000" | jq '.totalMonthlyCost')
if (( $(echo "$COST > $BUDGET" | bc -l) )); then
echo "โ ๏ธ $MODEL costs \$$COST/month โ exceeds \$$BUDGET budget!"
exit 1
fi
echo "โ
$MODEL costs \$$COST/month โ within budget"
Embeddable Pricing Badges
Add a live pricing badge to your README with one line of markdown:

This renders an SVG badge showing the model name and current input/output pricing per 1M tokens. It auto-updates when prices change. Works in GitHub READMEs, documentation sites, and Notion pages.
Full API documentation with all endpoints, parameters, and response schemas:
View API Docs โData Freshness
Pricing data is verified against provider pricing pages regularly. The API response includes a lastUpdated field so you can check freshness programmatically. When providers announce price changes, the data is updated within 24-48 hours.
Models that are deprecated (like Claude 4 Opus, retired June 15, 2026) include a deprecated flag with the deprecation date and replacement model ID, so your tools can handle migrations automatically.
No API Key, No Rate Limits
The API is free to use with no authentication required. It's served from Vercel's edge network with 1-hour caching, so it's fast and reliable. If you're making more than ~1000 requests/minute, consider caching responses locally.
A credit or link to getapipulse.com is appreciated but not required.
Pricing data verified Jul 9, 2026. Prices per 1M tokens. See full API documentation for all endpoints and parameters.
๐ฏ Rate Your API Setup in 30 Seconds
Get an A+ to F grade on your AI API costs. See how you compare and find cheaper alternatives instantly.
Get Your Cost Score โWant to optimize your AI API costs?
APIpulse includes free cost comparisons, exports, and recommendations that can save you up to 40%.
Free Cost Audit โ