Track AI Prompt Costs
Per Conversation
Embed one script tag and instantly see exactly how much each customer chat session costs you. Set budget alerts before your AI bill explodes.
Start Tracking — $19/moEmbed in your app
import { PromptCost } from '@promptcost/sdk';
const tracker = new PromptCost({ apiKey: 'YOUR_KEY' });
await tracker.track({
conversationId: session.id,
model: 'gpt-4o',
inputTokens: 512,
outputTokens: 128
});Per-session cost
Drill into every chat
Budget alerts
Email + webhook
All LLM models
GPT, Claude, Gemini
Simple Pricing
Pro
$19/mo
Everything you need to control AI costs
- ✓Unlimited conversations tracked
- ✓Real-time cost dashboard
- ✓Budget alerts via email & webhook
- ✓All major LLM models supported
- ✓JavaScript SDK + REST API
- ✓30-day data retention
FAQ
How do I integrate the tracker?
Install our npm package, initialize with your API key, and call tracker.track() after each LLM response. Takes under 5 minutes.
Which AI models are supported?
All OpenAI, Anthropic, Google Gemini, Mistral, and Cohere models. We auto-calculate cost from token counts using current pricing.
How do budget alerts work?
Set a daily or monthly spend limit per conversation or globally. We send email and webhook notifications the moment a threshold is crossed.