Overview

AI Usage & Cost Statistics

Monitor how your AI features are being used and estimate the costs associated with each AI request.

What You'll See#

The AI Usage panel displays:

Metric Description
AI Requests Total number of AI chat questions asked by readers
Monthly Limit Maximum requests allowed on your current plan
Daily Trend Graph showing request volume over time
Cost Breakdown Estimated costs per AI provider and model used
Total Cost Cumulative estimated cost for all AI requests
Translation Usage Number of document translations completed

How to Open#

  1. Open any page of your documentation site
  2. Click the Analytics tab in the floating toolbar at the bottom
  3. Select the AI Usage section to view your AI metrics

Cost Estimation#

Docsbook estimates costs based on:

  • Token counts: Approximated from text length (~4 characters per token)
  • Model pricing: Current market rates for popular models (OpenAI, Anthropic, Gemini, etc.)
  • Per-request breakdown: Input tokens (question) × input price + output tokens (answer) × output price

Supported pricing models:

Provider Models
OpenAI GPT-4, GPT-4o, GPT-4o mini, GPT-3.5 Turbo
Anthropic Claude 3 Opus, Sonnet, Haiku
Google Gemini Pro, Gemini Pro Vision
Others OpenRouter and custom models (default rates)

Note: Estimated costs are approximate and may differ from actual provider invoices due to token counting differences, special pricing, and volume discounts.

Monthly Limits#

Your AI request limit depends on your plan:

Plan AI Requests/Month Cost per Extra
Free 0 requests N/A (upgrade required)
PRO 200 requests $0.01 per request
PRO+ 2000 requests $0.01 per request

When you exceed your monthly limit, additional requests are charged at the overage rate (if enabled).

Translation Usage#

Translation requests use a separate monthly quota:

Plan Translations/Month
Free 0 translations
PRO 50 translations
PRO+ 500 translations

Learn more: AI Translations

Cost Breakdown by Model#

The cost breakdown table shows your spending by AI provider and model:

  • Provider: Which AI service (OpenAI, Anthropic, Gemini, etc.)
  • Model: The specific model used (e.g., gpt-4o-mini)
  • Count: Number of requests using this model
  • Estimated Cost: Total cost for requests using this model

The models are sorted by total cost, so you can quickly see which models are driving your AI expenses.

Custom API Keys#

If you've set your own API keys for OpenAI, Anthropic, or Gemini, the costs are:

  • Calculated by the provider (not estimated by Docsbook)
  • Visible in your provider's billing dashboard (OpenAI Platform, Anthropic Console, Google Cloud)
  • Not included in Docsbook usage limits (you manage costs separately)

Learn more: Using Your Own API Keys

Time Ranges#

AI usage metrics are available for:

Range Plan required
Last 30 days Free
Historical data PRO / PRO+

Start using AI chat today. Create a documentation site →

Updated