Ask AI — Cost Calculator

du Pont Circle · API Usage & Scaling Projections

Per-Request Token Breakdown

Every time someone asks a question, these tokens are sent to and received from the AI:

ComponentTokensDirectionNotes
System prompt~500InputInstructions for the AI historian role
Database context~2,000InputMatched family records (capped at 15 people)
Site help (sometimes)~400InputOnly included for "how do I" questions
User's question~50-100InputThe actual question text
Conversation history~0-1,500InputUp to 6 prior exchanges for follow-up questions
Total Input (typical)~2,600InputFirst question, no history
Total Input (follow-up)~4,000InputWith conversation history
AI response~400Output2-4 paragraph answer

Model Comparison — Cost per Request

Sonnet 4

Previous

Input: $3.00 / MTok

Output: $15.00 / MTok

Cost per question:

$0.0138

~72 questions per dollar

Opus 4

Premium

Input: $5.00 / MTok

Output: $25.00 / MTok

Cost per question:

$0.023

~43 questions per dollar

Why Haiku? For a genealogy Q&A where we pre-gather the relevant family records from the database, Haiku 4.5 gives answers that are just as good as Sonnet — but it's 3.7x cheaper and responds noticeably faster. We switched from Sonnet to Haiku in this update.

Scaling Calculator

100 users
3 questions

Cost at Scale — All Models (3 questions/user/week)

Weekly UsersQ/WeekHaiku 4.5 /moSonnet 4 /moOpus 4 /mo

API Credit → Real Dollars

Anthropic bills in dollars directly (no credit system). Here's how far each dollar goes:

$25 / month

Before vs After This Update

MetricBefore (Sonnet 4)After (Haiku 4.5)Improvement
Cost per question$0.0138$0.00463x cheaper
100 users/week (monthly)$16.56$5.52Saves $11.04/mo
1,000 users/week (monthly)$165.60$55.20Saves $110.40/mo
First-token latency~3-5 seconds~0.5-1 second3-5x faster
Context payloadUncapped (50-100KB)Capped at 8KB6-12x smaller
DB queries per requestUnlimited per-termCapped at 15 matches totalMuch fewer queries