InferenceIndex

Private beta · Early access

Start here

How it works

Workflow Compilation turns a workflow your agent already runs into a Compiled Agent Model, with your current model as the fallback.

Private beta. InferenceIndex is changing fast. Models, endpoints, pricing and these docs may change without notice, so check back before you build on a detail.

A Compiled Agent Model comes from Workflow Compilation. Your agent runs a workflow today on a frontier model. Workflow Compilation builds a model for that one workflow, so the next run of the same job, with new values, doesn't need to go back through a frontier model.

Your agent today, a Compiled Agent Model for the same job, and a fallback for anything new

The lifecycle of a request

  1. Today. Your agent runs the job on the model you use now, with your prompts, tools, and checks.
  2. Built. Workflow Compilation produces a Compiled Agent Model for that workflow from its skill: one you write or bring as a standard SKILL.md, or one written for the request from your tools. It is specific to your job. It is not a general-purpose model. See Skills.
  3. Next run. You send the next request to inferenceindex-0.1/skl_…, the job's skill in the model name. When it's the same job with new values, the Compiled Agent Model handles it, faster and for a fraction of the cost.
  4. Not a fit. Writing a step needs, such as an email body or the closing reply, goes to your fallback model, the frontier model you already use. So does the rest of a run the Compiled Agent Model can't finish, and any request that names no skill. You get the result you would have gotten today.

Routine messages and writes defined in the skill can run without calling your fallback model.

Your client doesn't change between steps 3 and 4. Both use the same endpoint, model name, and response format.

Same job, new values

This is where it differs from a cache. Tomorrow's invoice has a different vendor, different amounts, and a different date. A response cache either misses, or it sees a request that looks familiar and returns yesterday's total. A Compiled Agent Model does the job again on today's values.

A cache returns the old total on a new invoice; a Compiled Agent Model returns the new one

What it is not

People usually compare it to one of these. Here is how each one differs.

ApproachWhat you getWhere it stops
Prompt cachingCheaper cached input and a faster first tokenOutput, reasoning, and a frontier call on every step are still paid
Response or semantic cacheAn instant stored answerMisses, or returns the old answer, when the values change
A cheaper open-weight modelA lower price per token on a general modelIt's a general model, so quality on your workflow is whatever you get, and you have to evaluate and maintain it yourself
Fine-tuning your own modelA model shaped to your dataYou collect the data, train, evaluate, host, and keep it current, and there is no fallback unless you build one
Compiled Agent ModelA faster, cheaper run of a job your agent already doesAnything new goes to your current model

The comparison with caching is covered in more depth in what caching saves for AI agents.

What stays yours

  • Your quality bar. Your current model is the fallback, so a request the Compiled Agent Model doesn't fit gets the answer you get today.
  • Your workflow. Your prompts, tools, and checks still define the job. A Compiled Agent Model runs that job. It doesn't replace your product logic.
  • Your client code. It's the OpenAI-compatible chat completions request you already send, with a different base URL and model name.

What the numbers look like

Repeat runs are often 10-100x cheaper on our tests. On one measured invoice reconciliation run, a Compiled Agent Model was about 450x cheaper and 16x faster than Opus 5.5. That is one run of one task per model, not a claim about every workflow. See the repeat-cost essay.