Every AI agent in production makes model calls continuously, and without a routing layer those calls land on whatever model the developer hardcoded first. Model pricing shifts daily. Peak-hour rates spike. A task that needs a basic model gets sent to the most expensive one, and nobody catches it until the invoice arrives. The result is token spend that grows faster than the engineering output it is supposed to fund.
In this interview on TFiR, Suresh Mathew, CEO and Founder at Sedai, walks through how intelligent AI model routing works in production, why tokenomics is the correct financial lens for AI infrastructure, and how enterprises enforce governance without slowing down their agents.
Guest: Suresh Mathew, CEO and Founder at Sedai
Show: TFiR
Here is what every platform engineer and AI infrastructure team needs to know.
Technical Deep Dive
Q: Why is AI agent token spend so hard to predict and control in production?
Suresh Mathew, CEO and Founder at Sedai, explains that unpredictability comes from two compounding factors: model pricing changes on a daily or even hourly basis, and agents make many model calls inside a single task without any routing logic to match call type to model cost. Without visibility into what is being called and why, teams cannot distinguish necessary spend from waste. The first question to ask is not how to cut cost but whether each task is being completed by the right model at all.
“The first question is really it’s not just about the token cost, it’s really about is it being used right?”
Suresh Mathew, CEO and Founder, Sedai
Q: How do you measure ROI on AI token spend when there is no obvious baseline?
Mathew acknowledges there is no settled philosophy yet, but the most practical starting point is knowing organizational productivity before AI adoption and measuring the delta after. He warns that number of code check-ins and number of pull requests are poor proxies and create the wrong incentives. The correct measure is the amount of product reaching customers and generating revenue for the company, since code generation is a relatively simple task for an LLM and volume alone does not indicate value.
“Number of check ins is not a good productivity measure. The real productivity is the amount of creativity or product release that happens that is now in customers hands.”
Suresh Mathew, CEO and Founder, Sedai
Q: What does tokenomics actually mean for a company running AI agents in production?
Tokenomics, in Mathew’s framing, covers three operational disciplines: gaining visibility into exactly where tokens are being consumed, measuring the efficacy and ROI of that consumption, and then deploying routing and other mechanisms to improve both. As agents mature toward greater autonomy and make more calls before reaching a decision, the token footprint grows. Mathew is emphatic that decision-making itself should involve zero LLM calls, since LLMs are not the right tool for that step.
“In decision making there should be zero LLM in play for decision making because LLMs cannot play a role there.”
Suresh Mathew, CEO and Founder, Sedai
Q: Router vs. single model for an AI agent: which approach is correct and why?
Mathew is direct: never lock an agent to a single model. Models improve continuously, and an agent built on hardcoded model assumptions accumulates workflow guardrails and harness logic that made sense for the older model but become liabilities when a newer, smarter model makes them redundant. The correct architecture keeps the model as a variable, maintains a harness to evaluate efficacy on an ongoing basis, and preserves the ability to switch models as the landscape evolves.
“Never stick to a model. Always make sure that you have choices of models to pick from.”
Suresh Mathew, CEO and Founder, Sedai
Q: Where is the LLM arms race heading and who bears the cost when a model hallucinates?
Mathew does not expect a single winner in the model arms race. More importantly, he reframes hallucination as a structural feature of how large language models work, not an anomaly or a defect to be eliminated. Because the engineering behind LLMs produces hallucination by design, the correct response is to architect agents that expect and handle hallucination rather than to chase a model that will never hallucinate. When a model makes a mistake, the team pays additional tokens to recover, unlike a human contractor who is accountable for corrections at no extra charge.
“Hallucination is normal. The agent should be able to adapt and perform even when the backend model hallucinates.”
Suresh Mathew, CEO and Founder, Sedai
Q: How does Sedai route model calls without becoming a single point of failure?
Sedai uses local SLMs to classify the domain and context of each incoming call before routing it to the appropriate model. Teams can layer their own rules on top of this classification, for example directing all test calls to a local model and all production calls to a specific hosted model. Mathew highlights that the hardest engineering challenge is inserting Sedai into the call graph in a way that does not make the router itself a reliability risk, and that Sedai has specifically solved for that constraint.
“We have figured out how to get into that call graph and be there without being a single point of failure.”
Suresh Mathew, CEO and Founder, Sedai
Q: How do you balance cost and quality when routing AI model calls?
Mathew’s approach is to evaluate answer quality using a consensus of multiple models acting as judges. Rather than optimizing for token price alone, the system assesses whether the response is accurate before accepting it. Some tasks, such as simple factual lookups, can be answered correctly by a basic model, while complex reasoning tasks may actually cost more tokens on a cheaper model than on a powerful one. The governing principle is spend relative to outcome, not raw token price.
“It’s never about just the cost. It’s about how much are you spending to get the outcome right.”
Suresh Mathew, CEO and Founder, Sedai
Q: How do enterprise approved model lists and governance rules work inside an AI router?
Sedai and comparable routers allow teams to supply an explicit list of approved models, including both on-premises and externally hosted options, and attach spend-based or domain-based routing rules. For example, a rule can prevent routing to a high-cost model until a spend threshold is crossed, or restrict certain request domains to a specific approved model. This means enterprise security and procurement governance integrates at the router configuration layer rather than requiring changes to individual agent code.
“You can bring your rules and your custom models into a router like Sedai.”
Suresh Mathew, CEO and Founder, Sedai
Q: Do AI routing platforms effectively decide which models win market share?
Mathew acknowledges the influence but qualifies it: routing platforms make selections within the guardrails customers define. Large enterprises typically come with their own approved model lists, and the router operates inside those constraints. Where a customer has not specified preferences, Sedai will select the best-performing model from available options. The customer retains final authority; the platform optimizes within that boundary.
“We make choices as long as it is in the guardrail of yours.”
Suresh Mathew, CEO and Founder, Sedai
Q: How far will autonomous AI systems go in model selection versus human teams?
Mathew draws a clear line between discrete and non-discrete actions. For discrete, well-defined decisions, Sedai uses its own AI models to act autonomously. For non-discrete decisions with ambiguous boundaries, the system defers to customer-supplied rules rather than LLM-based reasoning. The decisioning layer is explicitly non-LLM, reinforcing his earlier point that LLMs should not be in the critical path of consequential decisions.
“On the decisioning side it’s always a non-LLM model in play.”
Suresh Mathew, CEO and Founder, Sedai
Resources & Documentation
- Sedai, AI model routing and token cost optimization platform for enterprise AI infrastructure
- Amazon Bedrock, managed service for accessing foundation models on AWS, referenced as a common enterprise model source
***
👇 Click to Read Full Raw Transcript
Swapnil Bhartiya: As we all know that we all run almost everything on AI and every AI agent in production makes model calls all day long. And every one of those calls costs money. And there is no fixed license here. So the more agents you ship, the bigger and less predictable that bill becomes. And if you look at the model market, it keeps shifting like a goal post. New model keeps coming up and also their pricing change, pricing event change by week and day and peak time and slow time. So it’s really hard and challenging to track at the same time. Sometimes X model may be suitable for a wipe job. Sometimes we get obsessed with bigger model is always better hallucination happens. Then also you have to pay the price for that. So the it all boils down to who decides which model each call should use and what should that cost. Not what, what it should cost for that model, but what it should cost for that specific task. This is a very complicated kind of situation right now and today we have with us Suresh Mathew, CEO and founder of Sidai, to talk about that and to go deeper into that. First of all, Suresh, it’s great to have you on the show.
Suresh Mathew: Thank you Sapna for having me.
Swapnil Bhartiya: Yeah, it’s my pleasure. And as I myself is, you know, this is a pain point for almost every enterprise today because companies are spending a lot of money on AI in France right now. And unlike other budget items where cost is relatively predictable, here the cost is hard to predict. So when a leader walks and asks you how to get this under control, what do you tell them? Where to start?
Suresh Mathew: Even I think the first question is really it’s not just about the token cost, it’s really about is it being used right? So if you’re getting your task done quickly, then it’s all okay. Now can you get the task done with a cheaper model? In some cases, yes. Answer is always yes. So the first thing you always measure is the productivity or the ROI of this expense. As long as this cost is tied to an ROI or an outcome, things are good. Now coming to now cost and making it easier, better and safer. You have routers available. Sarai offers one router too. So all of us have routers. Now what they typically do is they’ll figure out what exactly is the context and then route it to the right model. You can plug your rules in and some routers go by those rules as well. One option is free to use cheaper models or locally hosted, not using hosted models, local models, and figure out some of these tasks if that can be done with the local models. Now if you look at the cost per token. So that is going down, not like, like going down, it’s going to, it’s really falling down. Right. It is coming down from $10 Million to like a dollar or maybe a couple of cents. Right. So that’s where things are good. So cost is not going to be a problem eventually. But the most important thing is are the right models answering your question? Do you have the right efficacy for every request that’s coming in and generally the vector search around it? Right. That would be one cost aspect there. So do you have enough context showed in a vect and is that vector search itself costing a lot of money for you? So the answer is really putting a smart router in there and figuring out what request should go to which router, which model.
Swapnil Bhartiya: Sorry. No. So very true. Thank you for that. One more thing is when you said, you know you have to also look at roi, but what is the point of reference that if a human was doing this task versus AI is doing that, when you do talk about roi, what is the benchmark? What’s the base for that to actually measure that roi? Because sometimes when we use start AI AI agents, it can automate a lot of things. Can do a lot of things. So what is the frame of reference there for ROI to measure? Actually, where do we start?
Suresh Mathew: There are a couple of theories here. I don’t think there is a solved philosophy yet. Okay, so start with are we or the teams using AI or not? For MTS engineer or an engineer who was at the mid level there are, there is a school of thought that says you should spend at least the same amount that you pay to that engineer. He should consume that amount as tokens. Right? That’s the school of thought. And it’s okay to consume it now when you consume it, what you measure is the productivity out of that. If you were able to measure the productivity of your organization before AI, then the task becomes a lot easier because you know your productivity now after AI you know your new productivity, things are getting better. One thing that I or a few things that I know is number of check ins is not a good productivity measure. I see a lot of people doing that. I think it’s miserably wrong. It is not right in any way, shape or form. It’s more of a liability than an outcome. So number of PRs now, amount of code generally written. No. The products released also to some extent it’s no. I think the real productivity is the amount of creativity or productivity or product release that happens. That is now in customers hands, right, where the company is making money, the products that you’re building are making money for the company. What does the amount that’s getting contributed there is really the measure. Because you can use AI for a lot of things and code generation is such a simple use case for a large language model. People think it’s mad. I mean it’s not even a difficult problem for an LLM. Creating, generating code is such an easy problem for an LLM.
Swapnil Bhartiya: Now another issue here is that when we start talking about, of course, let’s just focus on whole token cost, optimizing it. In our industry we like to coin new terms. Of course tokenomics is there. Now what does that term actually mean in practice for a company running AI agents in production.
Suresh Mathew: This is such an important term. So tokenomics is probably the front, right and center for everything that people do, especially on the finop side, that is where the focus should be. Because people are going to consume a lot of tokens and you have to figure out how exactly is it being consumed and are we getting the right resources for everyone and the quality of the resources too. So there are a few ways that one could manage it. One, getting visibility into the token usage. What exactly is going on? Where is the money being spent? Second is the efficacy of this token usage. What is the ROI here? And the second third is how can you improve those? That’s when your routers and a few other things come into play. And when it comes to agents, yes, of course, today people are trying to march towards autonomy where agents don’t even have to consult with a human for taking an action. Now once it gets there, it’s going to be a lot of token usage before it gets to decision making. And remember, in decision making actually there is zero. I mean, I emphasize on that word, at zero usage of tokens, there should be zero LLM in play for decision making because LLMs cannot play a role there. Right? So when you graduate your maturity of usage of AI, what you essentially see is ideally your usage should come down, it becomes a lot more productive. You understand that these are the areas where you could use it, these are the areas where you cannot use it and you have to rely on something else.
Swapnil Bhartiya: You’re really talking about router and that is becoming a practice. But not everybody is using it. Also within organizations, people use things in a different way. Teams organize individuals, they all do things differently. And since most of the things are getting automated, an AI agent can make many model calls inside a single task. Of course, using router, what is the pros and cons versus choosing the model for each individual call instead of just picking one model. Well, maybe generic model, one specialized model for the whole agent.
Suresh Mathew: Never do that. In my mind, never do that. Because models are first up. They are all getting smarter every day. So never stick to a model. Always make sure that you have choices of models to pick from. You have some hardness to test the efficacy of the model too. Now, sometimes these workflows become a liability for you because initially, for example, in 2023, if you have started building an agent, you had a lot of workflows and guardrails that was helping you get to that automated task with the help of these models. And you would think that these tasks and hardness are helping you now, but they are real reliability. Now when you move to the new model, you don’t even need those guardrails and hardness anymore because those models are a lot smarter than what you had before. So it’s all about ripping that out and making sure that now you can use vanilla calls and you can rely on the answer too. So the answer to that question really is pick. Always have a framework to pick the smart model. Always have your hardness to see if that is a right model. And you have an efficacy evaluation mechanism. Right? Any evaluation that is working for you, that in place. And you should have the ability to switch models as they advance. So the variable there should be the model. Never stick to the model. In other words, you can stick to anything else around it, but not the model.
Swapnil Bhartiya: And of course you deal with this every day because you also see which model is doing what. What is your take on this arms race? Where is it heading for how long? You would want it to be a arms race because what happens is that most of the time customers are the ones suffering. You put a lot of investment in one model. And also the way models are changing and also there’s no accountability if a model hallucinates or if a model makes a mistake. You will actually pay more tokens to fix a model’s mistake. When I have a contract with you, you made a mistake, your team will come and fix it for free. I mean, that is how it works. But the model is actually opposite. So what is your take on this arms race and who is going to be the winner in the end here?
Suresh Mathew: Yeah, I don’t think there’ll be a clear winner there. That’s my view of things. So I don’t get or one should not get carried away by model’s capability at all today because it is improving and it’ll continue to improve. It is all about now slowing stuff down. People are talking about slowing it down. So improving it is not a surprise. It’s not easy, it’s not hard. And it is happening. So it’s clear now. Now, if you look at the large language models, people think hallucination is a problem, right? As the reality is it is there by design, right? The models are designed or the work. The hallucination is such a normal thing, so we try to treat it as an abnormal thing and try to fix for it. The only thing you have to do is when you write something around the model, expect hallucinations and write your code around it. If you go into a loop, make sure that you come out of the loop. You can assume that the answers are not going to be right and they are all going to be recent and made right. And you need to have someone to evaluate the efficacy or the precision of that answer before saying yay or nay. And trying to improve in that segment is almost. It’s a moot point, right? That eventually you will have a model that will never hallucinate and will not ever make a mistake in giving you an answer is a moot point. It will never happen. And I’m not saying as a prediction. I’m saying it because I understand the engineering behind it, right? The way the model works, it will hallucinate. And hallucination is normal, right? And most of us treat it as an anomaly. It is not an outlier. It’s not an anomaly. It’s the way it works. So you just write your agents around it. The agent should be able to adapt and perform even when the backend model hallucinate. And when it hallucinates, the agent will have to figure out, yes, that is what is happening now. So harness is probably the most important thing.
Swapnil Bhartiya: I will talk a bit about the platform itself. How do systems like Sedai actually work and how do they help their customers to choose the right model for each call. Let’s get a bit into the technical. Let’s get our hands dirty a bit and talk about how does Sedai work and how do you help people to choose the right model to optimize the cost? Of course, cost is not everything. It’s also about the quality optimization. A lot of things are there.
Suresh Mathew: So in essence what we do is when we get a call, we use our local SLMs to figure out what kind of context are you trying to use? Or what is the context of the domain of that call. Once we have the domain of the call, we’ll figure out what is the right model to answer this call. And you could very well participate in the decision making. You can have your rules there saying, you know what this kind of domain, I want this model to be called, for example, for all test purposes, I want just my local model. For all production purposes, I want it to be Claude or something else. It is perfectly okay. The key here is that it is generally understanding what you’re trying to call. We figure out where exactly what exactly is the domain and then we route it to the right one and your rules can participate in that flow. One thing that is hard is being on that call graph. And we have figured out how to get into that call graph and be there in that without being a single point of failure. So when you get the call, we understand the call without being the standalone or a single point of failure router.
Swapnil Bhartiya: Should we focus too much on cost optimization and totally ignoring the quality? So how does your system maintain the balance between the cost and the quality that that specific task may need? Because some tasks may be mundane, low level task, they don’t need quality. And then some tasks are very, very sophisticated, they do need specific. So it’s not just the daughter is going to route through that also. So what I’m trying to understand is that how to maintain that balance of quality and cost and not obsess too much on the cost only.
Suresh Mathew: Yeah, so that’s exactly what we do as a company and we try to really look at the cost and not just from a cost angle, the cost and efficacy angle. Now the second part of the question is a million dollar question, right? How do we evaluate if the answer is right or wrong? So that is a very hard problem statement. And there are multiple ways to do it or multiple ways that I have seen people doing it. And the one that I have seen working pretty well is having a consensus of a couple of models to evaluate the answers. Eval is really the deal here, right? When you get an answer you figure out, or when you get the response, you figure out, you know, what is this? Are the rest of the models happy with the answer? Right. So are you, you can use those as the judge or the evaluation models and they can tell you if it’s right or wrong. So it’s never about just the cost, it’s about the cost or unavoid unnecessary spend. For example, if you’re asking what is the most, what is the easiest way to get into MIT, right. That can be answered by could be answered by a basic model. So you don’t really have to burn the most advanced model tokens on that. But there are complex questions where it is easier for a very powerful large model to get stuff done in that case those cases you can get there because you will be burning a lot more tokens with a cheaper model that probably even at times with a more expensive model. So it’s never about just the cost. It’s about how much are you spending to get the outcome right. Picking the cheapest model is easy. The router just have to show you what is the token cost and just send it. Of course there are dynamicity in the token price and things like that so that everything is dynamic in nature.
Swapnil Bhartiya: One more thing is that enterprises they have a list of approved models that they’re allowed to use. But when you are using platform like Sedai or other autonomous platforms or routers that can pick models on their own because they have their own list of models, how do they maintain that balance? How does that stay within the security review governance of that organization?
Suresh Mathew: So generally for us in the settings we will ask you what are the approved models and what are the type of rules that you would want to have in this router. So that is. And most of the routers will do that. We’ll let you put the list of models, approved models, list of on prem models and list of approved outside models too. Right? And in some cases they’ll also say unless you spend this kind of money, do not ever go to this model or when the request comes from these kind of domains, just send it to these guys and things like that. So there’s. It’s a lot. It’s a bit more complex than that. But yes, you can bring your rules and your custom models into a router like Sedai.
Swapnil Bhartiya: If you look at Sedai and platforms like yours, which are always measuring which model performs in what way and what that model cost. Does that also mean that AI systems like yours, not model apps, are going to decide who is going to win the model arms race? Because the influence you folks have versus model apps, you are the kingmaker.
Suresh Mathew: Yeah. So the answer there. See at the end of the day, the choice is always the customer’s choice and somebody is on AWS generally they would use something on Bedrock too. So they will have their own choices of what to use. And we generally inject if you don’t have any choice like a large enterprise not having that is kinda unusual. They will have those choices when they don’t have it and if they let us pick it we will be more than happy to do that. So yes, we make choices as long as it is in the guardrail of yours. As long as you have specified list of models and among those models we are smart enough to pick what model works the best and that’s what Sedai does.
Swapnil Bhartiya: And we always talk about human in the loop. Most companies these days rely on human teams also at times to evaluate the models, pick the models and manage the cost. How far will autonomous systems go to not replace human but to help decide which model to use versus humans deciding?
Suresh Mathew: Yeah. So autonomous systems generally it would need some help. And that help could come from its own AI or it could come from humans supplying that intelligence. So for us we generally for discrete actions we use our models and our AI for non discrete actions we generally rely on your rules and you as I said, you can plug your rules in and replace our decisioning. So on the decisioning side it’s always a non-LLM model in play.
Swapnil Bhartiya: Suresh, thank you so much for joining me and going in details with this conversation because this is a very very kind of hot topic these days and I look forward to chat with you again. Thank you.
Suresh Mathew: Thank you. That’s great.





