# Compiled Agent Models

> Compiled Agent Models are much cheaper and faster than frontier models for agent work you already run.

Your product runs agents. Each run your users start costs you a frontier model call and makes them wait for one. A Compiled Agent Model is a model built for one of your workflows. It does that job again on new inputs, faster and for a fraction of the cost, and anything it doesn't know goes back to the model you use today.

![A tall frontier stack beside a short Compiled Agent Model bar, marked faster and cheaper](/docs/figures/introduction.svg)

## What it does for you

- **Lower cost per run.** Repeat runs are often 10-100x cheaper on our tests. On one measured invoice reconciliation run, it was about 450x cheaper and 16x faster than Opus 5.5. The [repeat-cost essay](/blog/ai-agent-repeat-costs) has the details.
- **Less waiting.** Your users get the result in seconds instead of watching a long agent run.
- **The same quality bar.** A request that doesn't fit the workflow goes to your fallback model, which is the frontier model you already trust. A new kind of request still gets today's result.
- **No new stack.** It is an OpenAI-compatible chat completions endpoint. You change the base URL and the model name, and that's it.

## Why now

If you sell an agent product, you pay for every run, and your costs grow with your customers' usage. The jobs that come back most often, like the same contract review, the same inbox action, or the same ticket triage, are also the ones you're paying full price to rediscover. Moving those runs to a Compiled Agent Model improves your margin on every new customer instead of eating into it.

## What it is not

It is not a cache, and it is not a cheaper open-weight model with your prompt on top. A cache returns a stored answer and fails when the values change. A cheaper general model saves money but loses quality on your work. A Compiled Agent Model handles new values on a job it knows, and anything else falls back to your current model. [How it works](/docs/how-it-works) shows the difference.

## Where it fits

Use it when the job is familiar and the input is new:

- Contract and document review
- Inbox and calendar actions
- Support ticket triage
- Invoice reconciliation and data extraction
- Meeting notes to CRM fields
- Agent tool-calling loops

A one-off question can stay on a frontier model. The [cookbook](/docs/use-cases) has worked recipes for each of these.

## Start in five minutes

1. Get an API key in the dashboard at https://inferenceindex-app.web.app.
2. Set the base URL to `https://api.inferenceindex.com/v1` and the model to `workflow/auto`.
3. Send the chat completions request you already send.

The [quickstart](/docs/quickstart) has the full call in Python, TypeScript, and curl.

## Next

- [How it works](/docs/how-it-works)
- [Quickstart](/docs/quickstart)
- [Cookbook](/docs/use-cases)
- [Dashboard](https://inferenceindex-app.web.app)
