AI Economics & Cost
Prompt Costs
- Definition
- Prompt costs are the total charges incurred when a commercial LLM processes a prompt, composed of input tokens, output tokens, and optional surcharges for caching or priority processing. Providers bill input and output differently: the text you send (system prompt, context, documents) typically costs a fraction of the generated output. Prices are quoted per 1 million tokens — a convention that became standard in 2024/2025. Anthropic charges roughly $3 per million input tokens and $15 per million output tokens for Claude Sonnet 4 on AWS Bedrock; OpenAI and Google tier their models by context length and quality class. A 10,000-token prompt with a 2,000-token response therefore accumulates about $0.03 of input plus $0.03 of output charges. Prompt costs are distinct from token-window management, which optimizes how context is assembled to reduce the cost per call — the prompt cost is the resulting bill for that assembly. Prompt caching also affects the invoice directly: reused prefix tokens are billed at a significant discount from the second call onward, which is why cache-aware prompt design is one of the strongest levers in LLM cost control.
- Category
- AI Economics & Cost
- Related terms
- Prompt CachingToken Window ManagementContext Budget
Production-Ready Guardrails