Topic: Getting started

How AI token pricing works with your own API key

How AI token pricing works when you bring your own API key: input and output tokens, what drives the cost of a reply and how to pick a provider and model.

A soft golden key beside a row of rounded token chips that flow into a green chat bubble, with a small gauge suggesting a budget, on a pale blue background.

AI token pricing means you pay your AI provider for the text a model reads and the text it writes, counted in small pieces called tokens. When you bring your own API key, the provider bills you directly, so the cost of each reply depends on how much the model reads, how long its draft is and which model you pick.

In short:

  • A token is a small chunk of text, roughly three quarters of an English word.
  • Providers price input tokens (what the model reads) and output tokens (what it writes) separately, usually per million tokens.
  • Most of a reply's input is your instructions, knowledge and the recent chat, not the customer's new message.
  • Short always-on documents, the right model and a daily budget keep spending predictable.

What does bringing your own AI key mean?

Bringing your own AI key means you open an account with an AI provider, create an API key there and paste it into the app that drafts your replies. The provider then bills you directly for what your assistant uses.

An API key is a long secret code that lets software use your provider account. Anyone who has the key can spend on your account, so treat it like a password.

In Convowell, you add the key to your workspace, check it with Test connection and choose the model that writes your drafts. The key is stored encrypted, and the full key is never shown again after you save it. If you are new to how the drafts themselves work, start with our introduction to AI drafts for WhatsApp.

Paying the provider directly means you see every charge on its own dashboard and can switch models later without rewriting your assistant.

What is a token?

A token is a chunk of text that an AI model reads or writes as one piece. Models do not count words or characters: they split text into tokens, and providers count those tokens to bill you.

A rough rule of thumb for English is that one token is about four characters, or about three quarters of a word. By that rule, a 40-word reply is around 50 to 60 tokens, and a one-page document of 500 words is around 650 to 700 tokens.

The rule is only a guide. Long or unusual words, numbers and emojis can take several tokens, and other languages often need more tokens than English for the same meaning. Each provider also splits text its own way, so the same message can count differently from one model to the next.

How does token pricing work?

Token pricing charges separately for input tokens, the text the model reads, and output tokens, the text it writes. Prices are usually quoted per million tokens, and output tokens usually cost more than input tokens.

Output costs more because writing new text takes the provider more computing work than reading it. For one reply, the sum looks like this:

Cost of a reply = (input tokens × input price + output tokens × output price) ÷ 1,000,000, with both prices quoted per million tokens.

The formula has four levers you control: shorter always-on documents, the right model size, fewer regenerations and a budget.

Cost of a reply equals input tokens times input price plus output tokens times output price, per million tokens. Four levers: shorter always-on documents, the right model size, fewer regenerations and a budget.

Some providers charge less for recently processed input, often called cached input, which suits instructions that repeat on every draft. Check your provider's current pricing page for how it applies.

Every call counts: regenerated drafts, follow-up drafts, connection tests and questions to an in-app assistant all use tokens. Auto-reply, which is off by default in Convowell until you turn it on, sends the draft that was already written, at a human pace, so it adds no AI calls of its own.

What goes into one AI reply?

One AI reply is built from far more than the customer's message. Before the model writes a word, it reads your instructions and documents, the matching knowledge passages, the recent messages and the new message. Only the draft it writes is output.

The instructions and documents say who the assistant is, its rules, its tone and your short fact sheet, and they are read with every draft. The knowledge passages are only the parts of your approved knowledge documents that match the question.

The table below shows a made-up example: a question to Bloom Bakery about a birthday cake. The token counts are an illustration, not a measurement. Yours depend on your documents, your chats and your model.

Part of the reply Side Example tokens
Instructions and documents Input 1,500
Knowledge passages Input 600
Recent messages Input 400
New message Input 40
The draft Output 80

In this example, the always-on instructions are the biggest slice and the customer's message the thinnest. That is why trimming what is read with every draft usually saves more than shortening replies.

One AI reply as a stacked bar, not to scale: input is instructions and documents, knowledge passages, recent messages and the new message; output is the draft.

Photos and voice notes follow each provider's own billing rules, such as a price per image or per minute of audio. In Convowell, a model needs those prices before it reads photos or voice notes, so the budgets can count every media call. Documents customers send are read on the server without a model, but their text then goes into the draft as input.

What makes AI replies cost more?

AI replies cost more when the model reads more, writes more or runs on a pricier model. Five habits drive most of the bill.

  • Long always-on documents. Anything read with every draft is paid for on every draft. A full price list pasted into the fact sheet costs you on every "Are you open today?".
  • Very long chats. A long conversation gives the model more recent messages to read for each new draft.
  • Larger models. The most capable models usually cost more per token, and many everyday questions do not need them.
  • Regenerating drafts. Each new draft is a fresh call, paid in full. Editing a nearly right draft by hand costs nothing.
  • Media. Reading a photo or transcribing a voice note is an extra call on top of the draft.

Lumen Hair Studio is a typical case. Its owner had pasted the full price list and every policy into the document read with every draft. Moving them into separate knowledge documents meant each draft read a short fact sheet plus only the passages that matched the question. Our guide on how to build a knowledge base for your AI assistant shows how to split them.

How do you choose a provider and model?

Choose a provider and model by testing a few on your real conversations, then picking the cheapest one whose drafts you would happily send. Price per token matters, but a model that needs fewer edits often saves you more time than a cheaper one.

You can connect OpenAI, Anthropic, DeepSeek, OpenRouter or any OpenAI-compatible API. An OpenAI-compatible API is a service that accepts requests in the same format as OpenAI's, so it works with the same settings and a different address. OpenRouter gives you one key for models from many makers.

What to compare How to check Why it matters
Quality in your languages Real messages in each language Awkward drafts cost you edits
Speed How long a draft takes Customers wait while you wait
Price Input and output price Sets the cost of every reply
Images and audio Photos and voice notes it reads Needed for media understanding
Data terms How it keeps API data Customer messages pass through

Not every model reads images or transcribes audio, so you can draft with one model and pick another for each kind of media under Media understanding.

A simple way to test:

  1. Collect 10 to 20 real customer messages, including the awkward ones.
  2. Run the same messages through each model with the same instructions. In Convowell, Test connection only checks that a key and model work, and the Playground previews drafts with the model chosen for drafts. To compare models there, choose each one in turn with Use for drafts, which also switches the model writing your live drafts, so pick a quiet hour. You can also compare models outside the app first, with your provider's own tools.
  3. Count how many drafts you would send with little or no editing.
  4. Estimate the cost of each model with the formula above.
  5. Pick one, use it for a week, then review drafts and costs together.

Whichever model you choose, the habits that keep AI replies safe stay the same. Our guide to AI for WhatsApp customer service covers them, and our privacy policy explains how Convowell handles your data.

How do you keep spending predictable?

Keep spending predictable with two layers of limits: one in your provider account and one in the app that uses your key. Then check usage weekly for the first month.

At the provider, look for spending limits, prepaid credit or usage alerts, which vary from one provider to the next.

In Convowell, Usage and budgets shows the tokens used today and this month and the estimated cost this month. You can set a Daily token budget, a Monthly token budget and a Monthly cost budget.

Cost figures are estimates from the prices you enter. Turn on Track cost for your model and fill in its Input price and Output price per million tokens from your provider's pricing page. The estimates can differ a little from your invoice, so your provider's bill is the final word.

When a daily budget is used up, new drafts and other AI calls stop with a budget message until the next day, and a used-up monthly budget stops them until the next month. A budget never cuts off a draft that is already being written. Without a draft, auto-reply has nothing to send either, so those chats wait for you. Once the budget resets, regenerate any draft that failed in the meantime, or write that reply yourself. With a daily token budget, follow-up drafts pause once half of the day's budget is used, which keeps the rest for replies to customers who wrote to you.

For more answers about setup and the product, see the FAQ on our home page.

Frequently asked questions

How much do AI replies cost with my own key?

AI replies with your own key cost what your provider charges for the tokens each reply reads and writes: input tokens times the input price plus output tokens times the output price, with prices per million tokens. Check your provider's current pricing page, then enter its prices on your model to see estimated costs.

Which AI providers can I connect?

You can connect OpenAI, Anthropic, DeepSeek, OpenRouter or any OpenAI-compatible API to Convowell. Each workspace uses its own key, and the provider bills you directly. Test connection checks that the key and the model work. Once you choose the model with Use for drafts, you can try it on real customer messages in the Playground, which previews drafts without sending anything.

Is my API key stored safely?

Your API key is stored encrypted in Convowell, and the full key is never shown again after you save it. The key is used only for your workspace's AI calls. Still treat it like a password: if you think it leaked, revoke it with your provider and paste in a new key.

Do I need a model that can read images and audio?

You need a model that reads images and audio only if you want the assistant to understand the photos and voice notes customers send. Text drafts work with any supported model. Some models read images but cannot transcribe audio, so you can choose a separate model for each kind of media under Media understanding.

Can I change the model later?

Yes, you can change the model at any time. Add the new model, run Test connection, then choose Use for drafts, ideally at a quiet hour. Try it straight away on real customer messages in the Playground, and if you prefer the old model's drafts, choose Use for drafts on it again. Your assistant's documents and knowledge stay as they are. Enter the new model's prices too, so cost estimates and the cost budget stay accurate.

All your WhatsApp numbers in one inbox

Link the numbers you already use and teach the assistant your business once. It drafts replies for you to send. Turn on auto-reply (off by default) and it answers new messages at a human pace, handing orders, bookings and anything it is unsure about to you.

Keep reading