Use case
LLM API for coding assistants and developer tools
Coding tools are token-heavy: long files go in, patches and explanations come out. That makes the price per million tokens the number that matters, and it makes a tiered setup (small model for most steps, large model for the hard ones) pay off.
Prices checked Nov 26, 2026
What you can build
- An in-editor assistant or pull request reviewer
- A background agent that opens fixes for failing tests
- A commit message and changelog writer
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 |
|---|---|---|---|
| Agentic coding and long tasks | Claude Opus 5.5 | $1.60 in, $8.00 out per 1M tokens | Anthropic's frontier model for agentic coding and long multi-step work, at the highest price of the three picks. |
| Everyday coding | Claude Sonnet 5.5 | $0.80 in, $4.00 out per 1M tokens | The balanced model, at half the Opus price per token. |
| Cheap passes: lint explanations, commit messages | Claude Haiku 5.5 | $0.06 in, $0.30 out per 1M tokens | The lowest price, for steps where a small model is enough. |
Worked cost example
One agent day: 5M tokens in, 1M out. The same workload priced on each model, as one request of 5,000,000 input and 1,000,000 output tokens.
| Item | Model and tier | Quantity | Cost |
|---|---|---|---|
| On Claude Opus 5.5 | Claude Opus 5.5 | 1 requests, 5,000,000 in and 1,000,000 out tokens each | $16.00 |
| On Claude Sonnet 5.5 | Claude Sonnet 5.5 | 1 requests, 5,000,000 in and 1,000,000 out tokens each | $8.00 |
| On Claude Haiku 5.5 | Claude Haiku 5.5 | 1 requests, 5,000,000 in and 1,000,000 out tokens each | $0.60 |
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
- Write a test set of 20 real tasks from your repo.
- Run each tier on it and see which tasks the cheaper model passes.
- Route by task type, and keep the expensive model for the steps that fail.
- Set a spend limit on each key so a loop cannot run away.
A request to Claude Opus 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-opus-5-5",
"messages": [
{
"role": "user",
"content": "Plan a zero-downtime migration of a 40M-row table."
}
],
"max_tokens": 1024
}'Frequently asked questions
Can I use it in Cursor or another editor?
Editors that accept a custom OpenAI-compatible base URL and key can point at our endpoint. See the guide for Cursor.
How do I avoid a runaway bill?
Set spend_limit_credits on the API key. The API returns 402 key_limit_reached once the limit would be exceeded.
Keep reading
- Use Claude in Cursor with an API key: how custom keys and endpoints work
- Claude Code cheaper: seven ways to cut the bill, including a custom endpoint
- Claude Opus vs Claude SonnetPrice, limits and which to pick
- Claude Opus API pricingWhat Claude Opus costs per million tokens, with a worked example
- AI video API for ecommerce product videos
- AI image and video API for ad creative