Use case
LLM API for a customer support chatbot
A support bot reads a question plus your help content and writes an answer. The bill is tokens in (the question and the help text you pass) and tokens out (the answer), so the model choice and the prompt size set the cost.
Prices checked Nov 26, 2026
What you can build
- A chat widget that answers from your help center
- A triage step that classifies tickets and drafts a reply for an agent to approve
- Routing: a small model for simple questions, a larger one for hard ones
Models to start with
These are starting points to test on your own inputs, chosen by price and listed capabilities. We publish no quality or speed benchmarks.
| Task | Model | Price | Why start here |
|---|---|---|---|
| Triage and simple answers | Claude Haiku 5.5 | $0.06 in, $0.30 out per 1M tokens | The lowest-priced chat model we sell; try it first on your real tickets. |
| Everyday replies | Gemini 4 Hydrogen | $0.60 in, $3.00 out per 1M tokens | Takes text, images, video, audio and PDFs, which helps when customers send screenshots. |
| Hard cases | Claude Sonnet 5.5 | $0.80 in, $4.00 out per 1M tokens | A step up in price for the questions the small model fails on your test set. |
Worked cost example
50,000 conversations a month, 3,000 tokens in and 400 out each. Each conversation includes about 2,500 tokens of retrieved help text. Same traffic priced on three models; split your own traffic between them.
| Item | Model and tier | Quantity | Cost |
|---|---|---|---|
| On Claude Haiku 5.5 | Claude Haiku 5.5 | 50,000 requests, 3,000 in and 400 out tokens each | $15.00 |
| On Gemini 4 Hydrogen | Gemini 4 Hydrogen | 50,000 requests, 3,000 in and 400 out tokens each | $150.00 |
| On Claude Sonnet 5.5 | Claude Sonnet 5.5 | 50,000 requests, 3,000 in and 400 out tokens each | $200.00 |
Each row prices the same workload on a different model. They are alternatives, not a sum.
Prices checked 2026-11-26, in dollars at 100 credits = $1. Failed tasks are not charged. Put your own numbers into the media cost calculator or the LLM cost calculator.
How to build it
- Collect 100 real tickets and write the answer you would want for each.
- Run them on each model and compare answers and token usage.
- Route by difficulty: send what the small model gets right to it.
- Cap max_tokens and set a spend limit on the API key.
A request to Claude Haiku 5.5 looks like this. Same key and endpoint for every model; see the API docs for the full reference.
curl https://api.tapmodels.com/v1/chat/completions \
-H "Authorization: Bearer $TAPMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-5-5",
"messages": [
{
"role": "user",
"content": "Plan a zero-downtime migration of a 40M-row table."
}
],
"max_tokens": 1024
}'Frequently asked questions
How do I keep costs predictable?
Cap max_tokens, trim the help text you pass in, and set a spend limit on the key. The LLM cost calculator shows the monthly total for your token counts.
Is the endpoint OpenAI-compatible?
Yes: POST /v1/chat/completions. There is also an Anthropic-compatible /v1/messages route. See the docs for streaming.
Keep reading
- Claude Haiku API pricingWhat Claude Haiku costs per million tokens, with a worked example
- LLM API cost calculatorFree tool
- Cheapest LLM API in 2026: price per million tokens, ranked
- Claude Haiku vs GeminiPrice, limits and which to pick
- AI video API for ecommerce product videos
- AI image and video API for ad creative