# Agent usage is driving sharply higher inference costs

Markdown copy of https://realalpha.app/s/agent-usage-is-driving-sharply-higher-inference-costs/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Gabe Pereyra](https://realalpha.app/builders/gabe-pereyra/) · Co-founder & President, Harvey · Co-founded and leads Harvey, the legal AI platform, after research roles at DeepMind and Meta.
- Host: [Molly O'Shea](https://realalpha.app/people/molly-oshea/) · Founder, Sourcery · Ex-Upfront Ventures investor; has interviewed Alex Karp and Palmer Luckey.
- Show: Sourcery
- Episode: [Harvey Co-Founder Gabe Pereyra on the Token Pricing Reckoning Coming for AI](https://realalpha.app/v/NpZbum0lmlI/), Jun 18, 2026
- Moment: 18:57 to 23:56 of the episode (5 min), playing on https://realalpha.app/s/agent-usage-is-driving-sharply-higher-inference-costs/; the episode from there: https://realalpha.app/v/NpZbum0lmlI/?t=1137

## Quote

> “We have a review product where you can upload 100,000 contracts and ask the models to review them, and **some of those can cost $20,000**.”
> — [Gabe Pereyra](https://realalpha.app/builders/gabe-pereyra/) at [20:02](https://realalpha.app/v/NpZbum0lmlI/?t=1202) · Sourcery

## Takeaways

1. A single query can cost $20; a 100,000-contract review can cost $20,000.
2. Longer-running agents use more tokens as adoption grows.
3. Route tasks to smaller or open models when they are good enough.

## About this segment

Gabe Pereyra describes Harvey's shift from legal copilots to cloud-based agents and gives examples of their costs. More capable models and longer-running tasks make model routing and specialization essential.

From “Harvey Co-Founder Gabe Pereyra on the Token Pricing Reckoning Coming for AI”, Jun 18, 2026. [Watch the full episode](https://realalpha.app/v/NpZbum0lmlI/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[19:04](https://realalpha.app/v/NpZbum0lmlI/?t=1144) So how are you thinking through the agentic layer and building that out? yeah so i think this was like a huge transition we've gone through in like the past six months where exactly like you said the original product we built was kind of this chat-based co-pilot for lawyers and then we built all this product around it that let it work at a law firm on client matters and all these things and then maybe six months ago when these coding models started getting really good and you could do kind of things like cloud code and codex and that started working really well in the command line we started building a bunch of the infrastructure of you know how do you get these agents that were running in your command line and could execute all these tools and work really well and how to move that into the cloud

[19:52](https://realalpha.app/v/NpZbum0lmlI/?t=1192) and i think now you're seeing this with kind of these managed agent solutions and to your point it's like now you need The models use way more tokens. We have simple assistant-type queries where you say, draft me a document that a single query can cost $20. We have a review product where you can upload 100,000 contracts and ask the models to review them, and some of those can cost $20,000. And so it is just getting incredibly expensive.

[20:23](https://realalpha.app/v/NpZbum0lmlI/?t=1223) and I think in parallel what we're seeing is I think even two years ago the models were so good with coding that most programmers would just use them and be like this is super useful I think we're just starting to see in the past six months that inflection for legal where the models can now generate entire documents and they're starting to work in a way where most lawyers who aren't using this technology just for fun they're like this needs to be so much better than the way that i'm used to doing things for me to change my routine to do it that like we're starting to see that absorption and so a combination of like the models are getting more expensive and they're getting better they're using more tokens because they're running for longer and they work so much better that users are using them more we're just seeing kind of

[21:12](https://realalpha.app/v/NpZbum0lmlI/?t=1272) this huge explosion of like usage cost tokens everything we need to talk about tokens i mean there's like so many different ways to take this question because there's obviously the margin sentiment on it and then there's also the internal usage and efficiency on tokens and like I think Winston mentioned you guys got up to 13 trillion so how are you thinking through that and the cost optimization and then we can also talk about like efficiency internally like how do you yeah so I think it's this is kind of that inflection point I was talking about where up until recently we've always been capability constrained and so we always wanted to use the largest model because for the most of our tasks and like if you look on the like legal agent benchmark even the best models weren't good enough to complete those tasks and so and then the usage you know and we weren't

[22:08](https://realalpha.app/v/NpZbum0lmlI/?t=1328) at a scale that the usage you know it was it wasn't something like cursor where it was so expensive to serve these things and we didn't kind of have the latency requirements but that has changed in the past six months where now we are consuming like a huge number of tokens i think for some of the labs we are like the largest consumer of embeddings we are consuming a ton of tokens for just serving all this stuff and so i think it's a good problem to have in the sense of like the usage is so high we obviously need to think through you know how do we serve these customers because if we kind of look at our usage uh like plots right now it's like this is just the start and it's like there's still so much room where it's like if everyone starts using this long horizon agent stuff the way some of our powers are power users are using it

[23:00](https://realalpha.app/v/NpZbum0lmlI/?t=1380) um there is just going to be a lot of like cost optimization you need to do and so i think there's like a couple of things we're thinking through. I think the most obvious is just doing better and better routing of models. So like as the largest models get better, not every task needs to be sent to the largest models. And so that's like a great use case of the legal agent benchmark. Increasingly, like serving more traffic from open source models, post-training models, like a lot of these like very large frontier models are large because they're good at everything.

[23:30](https://realalpha.app/v/NpZbum0lmlI/?t=1410) And so I think a lot of the opportunity for these like specific verticals will be, okay, I probably don't need a trillion parameters if I just need the system to be good at diligence. And so how do you build products and models in a way that you can get that frontier performance without kind of all of the frontier costs? What do you think the biggest question is people are not asking?
