General AI

AI Cost Control: Tokens and APIs

May 19, 2026 · 9 min read · Burak Serteser

Short Answer

AI cost is managed in two main ways: subscription (fixed monthly) or API (per usage). For individual use, a single subscription at 20-25 USD/month is often enough; for a professional who wants to compare two models, two subscriptions at 40-50 USD. In the API, cost depends on the number of tokens: 1 million input tokens run between 0.5-15 USD, output is 4-5x more expensive. With prompt cache (90% discount), batch API (50% discount), forcing short output, and small-model tiering, API cost typically drops 3-10x. For team use, a Teams plan plus usage limits plus alarms are mandatory; otherwise a single user can generate a 1000 USD/month bill.

Serteser Consulting provides practical support in AI literacy, offering AI cost management consulting for individuals and small teams, subscription vs API decision analysis, token accounting, team usage policy, and surprise-bill prevention strategy, backed by a research infrastructure that manages PROSPERO-registered systematic reviews (Hip OA CRD420261324092, Knee OA CRD420261298163) and has published in an international peer-reviewed journal.

Anatomy of AI billing

AI usage cost falls into two main categories: the user interface (chat) and programmatic access (API). There is a third category as well: self-hosted (running a model on your own server), but this means hardware plus maintenance plus electricity, and it rarely makes sense for individuals or small teams.

In this article I explain cost matrices, optimization techniques, and ways to protect against surprise bills for usage ranging from an individual to a 20-person team.

Individual use: subscription matrix

For a professional working alone (writer, doctor, consultant, developer), the 2026 subscription prices:

PlanMonthly (USD)What's included
ChatGPT Plus20GPT-5 limited, image, voice, custom GPTs
ChatGPT Pro200GPT-5 unlimited, reasoning, video
Claude Pro20Sonnet 4.6 limited, Opus 4.7 30-40 turns daily
Claude Max100/200Opus more generous, team workspace
Gemini Advanced20Gemini 2.5 Pro, 2M context, Google Workspace AI
Microsoft 365 Copilot30Office-integrated AI (personal)
Perplexity Pro20Multi-model + live web search

Practical recommendation (individual):

  • If you want a single subscription: for writing/research-heavy work, Claude Pro or Gemini Advanced. For multi-function work (image, voice), ChatGPT Plus.
  • Two subscriptions (40 USD/month) is the sweet spot for most professionals; when one is weak, you use the other.
  • ChatGPT Pro (200 USD) pays off only with 4+ hours of heavy use per day.

How API cost is calculated

In the API, what you pay for is "tokens." A token is a part of a word, on average 4 characters. 1000 words ≈ 1300 tokens.

The cost of an API call:

total_cost = (number_of_input_tokens × input_price) + (number_of_output_tokens × output_price)

Example: You had 2 pages of text summarized with Claude Sonnet 4.6.

  • Input: 1500 tokens (2 pages of text + prompt) × $3/1M = $0.0045
  • Output: 300 tokens (summary) × $15/1M = $0.0045
  • Total: $0.009 (about 1 cent)

Seemingly cheap. But if you make 100 calls a day, that's $27 a month. With an automated script, 10000 calls = $2700.

Optimization techniques (API cost drops 50-90%)

1. Prompt caching (the biggest win) Anthropic and OpenAI offer prompt caching. If the same system prompt or document is sent repeatedly, it is cached. On a cache hit, input is discounted 90%.

Cache miss: 10000 input tokens × $3/1M = $0.030
Cache hit: 10000 input tokens × $0.30/1M = $0.003

10x cheaper. Critical for repeated large system prompts such as customer support bots and RAG systems.

2. Batch API Anthropic and OpenAI batch APIs offer a 50% discount. The response comes back within 24 hours. For time-insensitive workloads (bulk summarization, data extraction).

3. Keep output length tight Output is 4-5x more expensive than input. Add "short answer, maximum 3 sentences" to the system prompt. The model obeys, and cost drops.

4. Model tiering Large models (Opus / GPT-5) for complex work, small models (Haiku / GPT-5 mini, Gemini Flash) for simple work. 80% of the same task can be done with a small model at 95% success. Route the 20% of complex cases to the large model (router pattern).

5. Wait, don't stream A streaming response (words flowing across the screen one by one) is nice for UX, but the back-end cost is the same. If latency doesn't matter, non-streaming + cache is more efficient.

6. Embedding cache In a RAG system, don't embed the same document repeatedly. Embeddings are generated once and stored in a vector DB. A new incoming query only incurs the query embedding cost.

7. Token counting With OpenAI tiktoken, Anthropic anthropic-tokenizer, and Google Vertex token counter, you can see the estimate before the call. If it exceeds the limit, truncation or chunking.

Preventing surprise bills

The biggest trap of API usage: an uncontrolled cycle. A bug, a loop, a wrong prompt → a 100 USD hourly bill.

Precautions:

  • Hard cap. A "max usage per month" setting in the Anthropic or OpenAI dashboard. If exceeded, the API stops automatically.
  • Soft alert. Email/Slack alarms at $50/100/500 thresholds.
  • Rate limit. Maximum tool calls per minute. With Pydantic or middleware.
  • Per-user budget. In a multi-user system, a daily/monthly limit for each user.
  • Timeout. Maximum 60s per call, maximum 20 turns in a loop.
  • Dry run mode. A flag that returns a mock response instead of the real API in the test environment.

Typical incident: a developer connected the API to an infinite loop for testing, didn't notice over the weekend, and got an 8000 USD bill on Monday. Had there been a hard cap, a maximum of $500 would have been charged and it would have shut off.

Team usage: 3-20 people

The right structure for a small team:

Option A: Individual subscriptions (not recommended for a large team) Each employee buys ChatGPT Plus themselves. 10 people × 20 USD = 200 USD/month. But:

  • No management (you can't see who uses what)
  • No audit log
  • Risk of sensitive data leakage (model-training opt-out is uncertain on personal accounts)
  • Scattered billing

Option B: Teams / Enterprise plan (recommended)

  • ChatGPT Team: $25-30/month per person, minimum 2 users, admin panel, guarantee that data won't be used for training
  • Claude Team: $30/month per person, admin, shared projects
  • Gemini Workspace: Google Workspace Plus + AI add-on

Advantages:

  • Single bill
  • Admin panel (who used what)
  • Data privacy guarantee
  • Shared custom GPT / project

Option C: Your own UI via API For a more technical team. An open-source frontend such as OpenWebUI, Chatbot UI, or Librechat + OpenAI/Anthropic API. User control, audit log, and model selection are all yours. More flexible but requires setup and maintenance effort.

Cost comparison for a 10-person team (monthly):

ApproachCostManagement effort
10x ChatGPT Plus$200None
ChatGPT Team (10 people)$250-300Low
Claude Team (10 people)$300Low
API + OpenWebUI$150-500 (depending on usage)Medium-High
Microsoft Copilot E3+Copilot$400-600Low

Payment from Turkey and KVKK

Company payment:

  • OpenAI and Anthropic accept company payment from Turkey (card + invoice)
  • Invoices are in English, USD-based (per Law No. 7224, the TCMB exchange rate is used for TL)
  • Ministry of Treasury and Finance DST/withholding rules: a 15% withholding tax may apply to purchases of digital services from abroad (have your financial advisor confirm)
  • A reseller (Turkey partner) sells with a 15-25% markup and a TL invoice

The KVKK dimension:

  • For highly sensitive sectors such as a Turkish hospital, law firm, or financial company: an Enterprise plan or self-hosting is essential
  • Keep prompts containing personal data out of logging (Anthropic ZDR, OpenAI ZDR options)
  • Putting patient/customer PII in without a signed DPA (Data Processing Agreement) is a legal risk

Practical budget guide

Individual student / freelancer:

  • Budget: 0-25 USD/month
  • Plan: 1 subscription (Claude Pro or Gemini Advanced) or entirely free tiers
  • Expectation: 1-2 hours of daily use is comfortable

Individual professional / heavy user:

  • Budget: 40-100 USD/month
  • Plan: 2-3 subscriptions + Perplexity
  • Expectation: 3-5 hours daily, multi-model comparison

5-person small team:

  • Budget: 150-400 USD/month
  • Plan: ChatGPT Team or Claude Team + 1 alternative model API
  • Expectation: shared projects, audit, KVKK compliant

20-person mid-size team:

  • Budget: 600-2000 USD/month
  • Plan: Microsoft Copilot E3+Copilot or Enterprise tier
  • Expectation: SSO, usage analytics, custom prompt library

API-based product:

  • Budget: 100-10000+ USD/month depending on usage
  • Plan: Prompt cache + batch + tiering mandatory, hard cap + alarm active
  • Expectation: continuous monitoring, optimization sprints

Three common mistakes

Mistake 1: Not setting a hard cap. Those who say "I use it little, no need" face a 5000 USD surprise bill 3 months later. A hard cap is always active.

Mistake 2: Not using batch and cache. A 50-90% discount is on the table. For an automated workload, it's 1 day of setup, then savings every month.

Mistake 3: Thinking "expensive model = good result." Simple summarization is done for $0.001 with Haiku and $0.05 with Opus. At the same quality. The right model for the right job.

Serteser Consulting for AI cost management

AI cost planning for individuals and small teams saves both time and money. Serteser Consulting:

  • Individual usage pattern analysis and subscription recommendation
  • Token accounting and optimization in API usage
  • Teams/Enterprise plan decision analysis for teams
  • Hard cap, alarm, and rate limit architecture
  • KVKK-compliant usage protocol
  • Guidance on payment and invoicing from Turkey
  • Post-incident audit and prevention plan after a surprise bill

In a 15-minute free introductory meeting, we listen to your current usage and budget and lay out a practical savings roadmap.

To integrate AI into your own workflow, you can take a look at the individual mentoring option.

Next step

Let's talk about your project.

In a free 15-minute intro call we listen to what you need and tell you which service tier fits.