AIHow to estimate and cut your LLM API costs
How to estimate and cut LLM API costs: token pricing, a worked monthly estimate, and a table of savings from caching, routing, batching and trimming.
Bilal Khursheed8 min read
AI service
Model routing, caching and prompt work that cut spend without hurting answers.
The problem
AI features are cheap to prototype and surprising to run at scale. Token spend rises with every user, every long prompt and every retry.
The usual cause is not one expensive call. It is the largest model used for every task, the same context sent again and again, and no view of which feature is spending what.
Cutting cost blindly damages quality. You need to know what each change does to the answers as well as the bill.
Our approach
We instrument your calls so you can see cost per feature, per request and per user.
We review prompts, context size, model choice, retries and retrieval to find where tokens are spent for no benefit.
Smaller models for simple tasks, prompt and response caching, shorter prompts, tighter retrieval and batch processing where a delay is acceptable.
Each change is run against an evaluation set, so a saving that harms answers is caught before release.
Delivery process
Every engagement follows the same seven stages, from requirements to post-launch support.
Workshops with your stakeholders to define goals, users, scope and constraints, captured in clear written requirements.
User flows, wireframes and interface design, reviewed with you until the product feels right before it is built.
Data model, system design, integrations and security are settled, and the work is broken into sprints.
Short iterations with code review on every change and a demo of working software each week.
Manual and automated testing across functionality, devices, APIs and performance, followed by user acceptance testing.
Release through a CI/CD pipeline onto monitored cloud infrastructure, with a go-live checklist and rollback plan.
Close monitoring and priority fixes straight after launch, then ongoing support, maintenance and improvement.
Deliverables
Technology
Related work

AI / LegalTech
Client name withheld
Turns 500 to 1,000 page legal contracts into a queryable knowledge base that answers with cited sources.

AI / Sales
Lead Rescue
Transcribes customer calls, scores lead intent with GPT and NLP, and alerts sales teams to hot opportunities in real time.
From the blog
What we have written about llm cost optimisation: cost, timelines and the trade-offs behind each decision.
AIHow to estimate and cut LLM API costs: token pricing, a worked monthly estimate, and a table of savings from caching, routing, batching and trimming.
Bilal Khursheed8 min read
FAQ
We will not quote a figure before looking at your usage. The saving depends on how the feature was built. The first step is measurement, and you see the findings before any change is made.
Not for every task. Classification, extraction and routing often work well on smaller models. The evaluation set shows where a smaller model holds up and where it does not.
Providers can store the unchanging part of a prompt, such as instructions or a long document, and charge less when it is reused. It suits features that send the same context many times.
After the feature works and you can see real usage. Optimising too early wastes effort on calls that may change. Basic cost tracking, though, is worth having from the first release.
Sometimes. Self-hosting can pay off at high, steady volume or when data must stay in your environment. It also brings infrastructure and maintenance work. We compare both options with your real numbers.

Share a short brief and we will reply with next steps, usually within one working day.