Skip to main content

Model Pricing & Budget

Pawz tracks token usage and costs across all AI providers, enforces daily budgets, and can automatically route tasks to cheaper models when appropriate.

Per-model pricing

Pawz uses built-in pricing data to estimate costs in real time. Prices are per 1 million tokens. :::info Prices are based on each provider’s published rates. Local models (Ollama) have zero cost. For providers not listed (custom, OpenRouter, etc.), costs are estimated based on the closest matching model name. :::

Cost comparison

To put these numbers in perspective, here’s the approximate cost for a 10,000-token conversation (5K input + 5K output):

Cache token accounting

When providers support prompt caching (e.g., Anthropic), Pawz applies reduced rates for cached tokens: :::tip Anthropic’s prompt caching can dramatically reduce costs for repetitive tasks. Long system prompts and skill instructions benefit the most from caching since they remain constant across turns. :::

Daily budget

Pawz can enforce a daily spending limit to prevent runaway costs.

Configuration

Set to 0 to disable budget enforcement entirely. Configure the budget in Settings → Agent Defaults or directly in the engine config:

Budget enforcement

The budget is checked before each API call. Pawz provides progressive warnings as spending increases: :::warning When the daily budget is reached, all AI API calls are blocked until the next day (midnight UTC). Ongoing conversations will stop receiving responses. Set a budget that accommodates your expected daily usage. :::

DailyTokenTracker

Pawz maintains per-model cost tracking through the DailyTokenTracker:
  • Tracks input and output tokens separately per model
  • Calculates costs using the pricing table above
  • Applies cache token discounts automatically
  • Resets daily at midnight
The tracker enables the budget enforcement system and powers the cost display in the chat interface (shown in complete events with usage stats).

Auto-tier model selection

The auto_tier feature automatically routes tasks to cheaper or more expensive models based on complexity.

Task complexity classification

Pawz analyzes each message to determine if it’s simple or complex: The classification uses keyword signals and heuristics to decide. When auto_tier is enabled in your model routing config, simple messages skip the expensive default model entirely.

Model routing configuration

Resolution order (highest priority first):
  1. Per-agent override (agent_models)
  2. Per-specialty override (specialty_models)
  3. cheap_model (if auto_tier enabled and task is simple)
  4. default_model

Tips for cost optimization

:::tip Cost optimization strategies
  1. Use auto_tier: Enable automatic model selection so simple queries use cheap models. This alone can cut costs 50%+.
  2. Set a daily budget: Even a generous budget prevents accidental runaway costs from automated tasks or cron jobs.
  3. Use Ollama for development: Local models are free. Use them for testing agent configurations before switching to paid providers.
  4. Match model to task: Don’t use Claude Opus for simple questions. Create chat modes (see Foundry) for different tiers.
  5. Enable session compaction: Long sessions consume more tokens per turn. Use /compact or let auto-compaction manage context size.
  6. Leverage prompt caching: Anthropic’s cache reads cost only 10% of normal input tokens. Consistent system prompts and skill instructions benefit most.
  7. Use worker_model for orchestration: In multi-agent projects, the boss agent should use a capable model, but workers can use cheaper alternatives.
  8. Monitor the complete events: Each response includes token usage stats (input/output/total tokens and model name) so you can track spending in real time.
:::