Skip to content

Using AI · Working

Subscription or API: how AI is priced, tokens, keys, and when each pays off

Two ways to pay for AI: a flat subscription with a usage ceiling, or an API meter billed per token.

By Oregon Healing Updated 11 min read Lesson 7 of 20 in Using AI Take the quiz Study guide

Subscription or API: how AI is priced, tokens, keys, and when each pays off

There are two ways to pay for AI, and most of the confusion I hear from colleagues comes from mixing them up. One is a subscription: a flat monthly fee for an app you open and type into. The other is the API: a meter that charges for every piece of text a program sends and receives. I use both every week, for different jobs, and this lesson explains how each one counts your money, what an API key is, and how to tell which one a job calls for.

Two columns. Left, Subscription, a flat fee: you in a chat app, one monthly price such as $20 with usage limits, best for daily work with you in the loop. Right, API, a meter: your code or tool with a key, priced as tokens in times a price plus tokens out times a price per million tokens, best for work that runs without you, volume, or mixing vendors. A bar along the bottom: one answer that reads 3,000 tokens and writes 300 costs about $0.00045 on Haiku 5.5, about $0.009 on Sonnet 5.5 and about $0.018 on Opus 5.5.
The same model can be reached either way. Prices as of November 2026.

First, the unit: tokens

Models do not read words. They read tokens, which are chunks of text, often a short word or part of a longer one. Everything on the meter is counted in tokens, and so are the limits on a subscription, even when the app does not show you the number.

Anthropic gives a handy rule of thumb in its pricing notes: a web page of about 10 kilobytes of text comes to roughly 2,500 tokens. A typical progress note or a one-page policy is in that range. A long PDF of a book chapter can run to tens of thousands.

Two details matter for cost:

  • Input and output are counted separately. Input is everything the model reads: your question, any document you attached, the instructions behind the scenes, and the earlier turns of the chat. Output is what it writes back.
  • Output costs more. On Anthropic's current models, a token of output is priced at five times a token of input. A short question about a long document is cheap. A long report written from a short prompt costs more than you might guess.

That second point surprises people. Pasting in a 20-page handbook and asking for a three-line answer is mostly input, which is the cheap side. Asking for a 4,000-word draft is mostly output.

The subscription: a flat fee with a ceiling

A subscription is what most clinicians already have, or are about to get: you pay a set amount each month, open the app on your phone or computer, and use it. You never see a per-word bill. What you get instead is a usage limit, a ceiling on how much you can do in a window of hours or a week before the app asks you to wait.

Here is Anthropic's lineup for Claude, as of November 2026, from its pricing page:

  • Free, $0. Good for trying things. It does not include Claude Code, the coding tool covered later in this level.
  • Pro, $20 a month, or $17 a month billed yearly.
  • Max, $100 a month, with five times the usage of Pro.
  • Ultra, $200 a month, with ten times the weekly usage of Pro.
  • Team, from $25 a seat a month, for groups that want shared administration.

Other companies sell the same shape of thing. Google's AI plans run from $7.99 to $199.99 a month and are metered by compute. The X Subscription, which covers both Grok and Cursor, runs from $8 to $200 a month and draws from one weekly pool that the two products share. The names differ; the deal is the same. You trade a predictable bill for a ceiling.

The ceiling is the part to watch. If you live in the app all day, drafting, summarizing, rewriting, you will feel it on the lower tiers. If you use it a few times a week, Pro or its equivalent is plenty, and Free may be.

The API: a meter that runs while you sleep

API stands for application programming interface. In practice it means a doorway that programs, not people, use to send text to a model and get text back. Your scheduling tool, a script on your website, or an agent running overnight talks to the model through the API. Nobody opens a chat window. Every call is billed.

The bill is simple arithmetic. Each model has two prices, one for input and one for output, quoted per million tokens. Anthropic's list, as of November 2026:

  • Haiku 5.5: $0.10 per million input tokens, $0.50 per million output (for prompts up to 100,000 tokens; longer prompts are billed at $0.50 and $2.50).
  • Sonnet 5.5: $2 in, $10 out.
  • Opus 5.5: $4 in, $20 out, recently cut from $5 and $25.
  • Fable 5.2: $8 in, $40 out.

Those numbers look tiny until you multiply. Take a job I see often: a program reads about 3,000 tokens (a short document plus instructions) and writes about 300 (a paragraph back). One such answer costs about $0.00045 on Haiku, about $0.009 on Sonnet and about $0.018 on Opus. Run it a thousand times and you are paying roughly $0.45, $9 or $18. The model you pick moves the bill by a factor of forty for the same job, which is why the next lesson is about choosing.

Two discounts are worth knowing about even as a beginner:

  • Batch. If the answers can wait (say, overnight), Anthropic's batch option charges half price.
  • Caching. If many calls start with the same long instructions, the repeated part can be cached. On Opus and Sonnet, a cache hit is billed at a twentieth of the normal input price.

The same structure holds at Google, xAI and the rest. Google's Gemini API publishes its own per-million prices; those change often enough that I check the date on the page before I quote one.

The key: a password that spends money

To use the API, you create an account on the company's developer console and generate an API key. It is a long string of letters and numbers. Any program that holds it can run up charges on your card. I treat a key like a credit card number that can also read whatever the program sends.

The checklist I follow, and the one I hand to anyone starting out:

  1. Set a spend limit on day one, before the first call. Anthropic's console lets you set limits per workspace, below the account's own monthly ceiling.
  2. One workspace per project, so a runaway script in one place cannot drain the budget for another.
  3. One key per app. If a key leaks, you revoke that one and nothing else breaks.
  4. Keep the key on a server, in a private settings file. Never in a web page's code, a screenshot, a shared document, an email or a code repository. Anything a visitor can see, a stranger can copy.
  5. Watch the usage page for the first week. If the numbers surprise you, stop and find out why.

Free tiers deserve a warning of their own. Google's terms for the Gemini API, effective March 23, 2026, say that on the free tier your prompts may be used to improve its products and may be read by human reviewers. On the paid tier they are not. Turning on billing is the switch. For anything touching your practice, that matters more than the price.

Limits on the meter, too

The API has ceilings as well, just different ones. Anthropic counts requests per minute and tokens per minute, and each account sits in a tier with a monthly spend cap: $500 on the starting tier, $1,000 on the next, and up to $200,000 for the largest customers.

When a program hits a limit, it gets an error with the code 429, which means "too many requests". Most of the time that means wait a moment and try again; the response usually says how long. But a 429 caused by your monthly spend cap carries no retry time, because waiting a minute will not help. The program has to stop, or switch to a different model, until the month resets or you raise the cap. Lesson 8 covers how to build that switch.

When each one pays off

This is my own rule of thumb, drawn from how the products are built rather than from any vendor's advice.

Pick a subscription when:

  • A person reads every answer. Drafting an email, rethinking a handout, talking through a business plan.
  • You want to know the bill in advance. A busy month costs the same as a quiet one.
  • You want the app's extras: projects, memory, file uploads, connectors to your calendar. Those live in the app, not in the raw API.

Pick the API when:

  • The work runs without you. A website assistant answering visitors at 2 a.m. cannot use your personal login.
  • The volume is large and repetitive. Tagging a thousand old blog posts, summarizing a stack of public documents. Batch pricing makes that cheap.
  • You want to mix vendors, so one company's outage does not take your tool down.

Many people need only the first list. If you never build anything, you may never need a key. The moment you want something to happen on a schedule or on a website, you have crossed into API territory.

A word on loops, because it catches people. A small job set to run every five minutes runs 8,640 times in a 30-day month. Multiply that by the per-answer cost above before you switch it on. At Haiku prices it is pocket change; at Opus prices it is a monthly bill you will notice.

Neither one makes client data safe

Price and privacy are separate questions. Paying for a plan or an API account does not, by itself, give you a business associate agreement, the contract HIPAA requires before a vendor touches client information. Some companies offer one on specific business plans; most consumer plans have none. Until you have that in writing, keep client details out of both routes. The full picture is in HIPAA-safe AI tools, BAAs, and what not to paste.

My own setup

I pay for one flat Claude plan and do nearly all my daily work inside it: writing, research, the coding I do on this site. I like knowing the number in advance, and I am in the loop for every answer.

Separately, the Ask box and the dashboard helper on this site run on API keys, because they answer visitors when I am asleep. Those keys live in a private settings file on the server, never in the page, and the code is built to move to another model if one hits a limit (more on that in lesson 8). The meter for that part is small, because most questions are short and go to small, inexpensive models first.

Prices, plan names and limits in this lesson were checked against the linked pages on November 24, 2026. They change several times a year, so check the date on any pricing page before you rely on a number.

Further reading

Sources

  1. “Pricing.” Anthropic. Per-million-token prices for Haiku 5.5, Sonnet 5.5, Opus 5.5 and Fable 5.2; batch at 50%; cache hits at 0.05x input; a 10 kB page is about 2,500 tokens. https://platform.claude.com/docs/en/about-claude/pricing (accessed Nov 24, 2026).
  2. “Plans and pricing.” Anthropic. Free, Pro $20 ($17 billed yearly), Max $100, Ultra $200, Team from $25 a seat. Free excludes Claude Code. https://claude.com/pricing (accessed Nov 24, 2026).
  3. “Rate limits.” Anthropic. Requests and tokens per minute; monthly spend caps by tier ($500, $1,000, up to $200,000); workspace limits; 429 errors. https://platform.claude.com/docs/en/api/rate-limits (accessed Nov 24, 2026).
  4. “Gemini API additional terms of service.” Google. Effective 2026-03-23. Unpaid services: prompts may be used to improve products and reviewed by humans. Paid services: not used. https://ai.google.dev/gemini-api/terms (accessed Nov 24, 2026).
  5. “Gemini Developer API pricing.” Google. Free and paid tiers; prices change often. https://ai.google.dev/gemini-api/docs/pricing (accessed Nov 24, 2026).
  6. “Pricing.” Cursor. Plus $8, Premium $30, Super $100, Ultra $200; a weekly pool shared by Grok and Cursor. https://cursor.com/help/account-and-billing/pricing (accessed Nov 24, 2026).
  7. “Google AI subscriptions.” Google. AI Plus $7.99, AI Pro $19.99, AI Ultra $99.99 and $199.99; metered by compute used. https://blog.google/products-and-platforms/products/google-one/google-ai-subscriptions/ (accessed Nov 24, 2026).
  8. Leonardo Grigorio. “Claude's Plan Token Limits vs API Costs.” YouTube, Apr 6, 2026. Video, 11:55. Lesson video. https://www.youtube.com/watch?v=EqM0a2brFcY (accessed Nov 24, 2026).

Study guide

Key ideas

  • Two ways to pay: a subscription (flat fee, usage ceiling, a person in the loop) and the API (a meter, billed per token, used by programs)
  • Tokens are chunks of text. Input (what the model reads) and output (what it writes) are priced separately; output costs about five times more
  • Rough size: a 10 kB page of text is about 2,500 tokens

Prices as of November 2026 (per million tokens, in / out)

  • Haiku 5.5: $0.10 / $0.50. Sonnet 5.5: $2 / $10. Opus 5.5: $4 / $20. Fable 5.2: $8 / $40
  • Batch: half price. Cache hits on Opus and Sonnet: a twentieth of input
  • Claude plans: Free, Pro $20, Max $100, Ultra $200, Team from $25 a seat

Key safety checklist

  • Spend limit before the first call; one workspace per project; one key per app
  • Keys on a server only, never in a web page, screenshot, email or repository
  • Free tiers may train on prompts; neither route gives you a BAA by default

Sources

Open the study guide on its own page

Check what you learned

10 questions from this lesson. Answers are checked as you go; nothing is recorded.

  1. 1 / 10

    What is a token?

    Hint

    It is the unit on the meter.

  2. 2 / 10

    On Anthropic's current models, how does the price of an output token compare with an input token?

    Hint

    Look at Sonnet 5.5: $2 in, $10 out.

  3. 3 / 10

    What do you get with a subscription instead of a per-word bill?

    Hint

    Heavy users feel it on lower tiers.

  4. 4 / 10

    A program reads 3,000 tokens and writes 300 on Sonnet 5.5 ($2 in, $10 out per million). About how much does one answer cost?

    Hint

    3,000 x $2 / 1,000,000, plus 300 x $10 / 1,000,000.

  5. 5 / 10

    Which step should come before your first API call?

    Hint

    Think of the key as a card number.

  6. 6 / 10

    Where should an API key live?

    Hint

    Anywhere public is found by bots.

  7. 7 / 10

    Under Google's Gemini API terms, what is different about the free tier?

    Hint

    Turning on billing changes it.

  8. 8 / 10

    What does a 429 error from the API mean?

    Hint

    It is about pace or budget.

  9. 9 / 10

    Which job most clearly calls for the API rather than a subscription?

    Hint

    Who is at the keyboard?

  10. 10 / 10

    A job set to run every five minutes runs about how many times in a 30-day month?

    Hint

    12 an hour, 24 hours, 30 days.