The Claude API cost optimizer

Stop overpaying
for tokens you
don't need.

Drop-in Python SDK that routes between Haiku, Sonnet, and Opus automatically. Same API. Smarter spending. ~60% less on your bill.

01 / The problem

Most teams use
Sonnet for everything.

Every “Hi”. Every classification. Every short answer — all routed to a $3/M-token model. It works, but you're torching budget on tasks Haiku could handle for a fraction.

// per 1M input tokens
haiku-4.5
$1.00
sonnet-4.6
$3.00
opus-4.7
$15.00
Sonnet for a Haiku task = 3× overspend.
02 / How it works

Three lines. That's it.

01

Install

pip install nimer-optimizer
02

Swap one import

from nimer import Anthropic
03

Ship

Same SDK signature. Smart routing under the hood.

03 / Drop-in

Your code barely changes.

before.py$$$
from anthropic import Anthropic

client = Anthropic()
resp = client.messages.create(
  model="claude-sonnet-4-6",
  max_tokens=1024,
  messages=[{"role":"user",
             "content":"Hi"}]
)
after.py~60% less
from nimer import Anthropic

client = Anthropic()
resp = client.messages.create(
  model="claude-sonnet-4-6",
  max_tokens=1024,
  messages=[{"role":"user",
             "content":"Hi"}]
)
# routed to haiku-4.5 automatically

Routing rules are configurable. Privacy-first logging — token counts only, never your prompts.

04 / Pricing

Pay a fraction of what you save.

Free
$0forever

SDK + community routing rules

Propopular
$29/ month

Dashboard, analytics, custom rules

Scale
$99/ month

Team seats, audit log, priority