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.

TaskModelPriceWhy start here
Agentic coding and long tasksClaude Opus 5.5$1.60 in, $8.00 out per 1M tokensAnthropic's frontier model for agentic coding and long multi-step work, at the highest price of the three picks.
Everyday codingClaude Sonnet 5.5$0.80 in, $4.00 out per 1M tokensThe balanced model, at half the Opus price per token.
Cheap passes: lint explanations, commit messagesClaude Haiku 5.5$0.06 in, $0.30 out per 1M tokensThe 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.

ItemModel and tierQuantityCost
On Claude Opus 5.5Claude Opus 5.51 requests, 5,000,000 in and 1,000,000 out tokens each$16.00
On Claude Sonnet 5.5Claude Sonnet 5.51 requests, 5,000,000 in and 1,000,000 out tokens each$8.00
On Claude Haiku 5.5Claude Haiku 5.51 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

  1. Write a test set of 20 real tasks from your repo.
  2. Run each tier on it and see which tasks the cheaper model passes.
  3. Route by task type, and keep the expensive model for the steps that fail.
  4. 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.