# InferenceIndex > Compiled Agent Models are much cheaper and faster than frontier models for agent work you already run. The pages below are the full agent docs for InferenceIndex. The API is in early access, a private preview. --- Source: https://inferenceindex.com/docs/index.md # 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) --- Source: https://inferenceindex.com/docs/how-it-works.md # How it works > Workflow Compilation turns a workflow your agent already runs into a Compiled Agent Model, with your current model as the fallback. 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](/docs/figures/how-it-works.svg) ## 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 your agent's completed runs. It is specific to your job. It is not a general-purpose model. 3. **Next run.** You send the next request to `workflow/auto`. 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.** When a request isn't the job it knows, it goes to your [fallback model](/docs/fallback-models), the frontier model you already use. You get the result you would have gotten today. 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](/docs/figures/new-values.svg) ## What it is not People usually compare it to one of these. Here is how each one differs. | Approach | What you get | Where it stops | | --- | --- | --- | | Prompt caching | Cheaper cached input and a faster first token | Output, reasoning, and a frontier call on every step are still paid | | Response or semantic cache | An instant stored answer | Misses, or returns the old answer, when the values change | | A cheaper open-weight model | A lower price per token on a general model | It'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 model | A model shaped to your data | You collect the data, train, evaluate, host, and keep it current, and there is no fallback unless you build one | | Compiled Agent Model | A faster, cheaper run of a job your agent already does | Anything new goes to your current model | The comparison with caching is covered in more depth in [what caching saves for AI agents](/blog/caching-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](/blog/ai-agent-repeat-costs). ## Related - [Quickstart](/docs/quickstart) - [Fallback models](/docs/fallback-models) - [Cookbook](/docs/use-cases) --- Source: https://inferenceindex.com/docs/quickstart.md # Quickstart > Get a key, set the base URL and model, and make your first call in about five minutes. A Compiled Agent Model takes the same OpenAI-compatible chat completions request you already send. You set three values: the API key, the base URL, and the model name. ![A key, the base URL, and model workflow/auto on one request](/docs/figures/quickstart.svg) ## Get a key 1. Open https://inferenceindex-app.web.app. 2. Sign in with the same Google account as the InferenceIndex site, and enter your invite code. 3. Get an API key in the dashboard. Each invite code works once. The base URL is `https://api.inferenceindex.com/v1`. The model is `workflow/auto`. ## Python ```python from openai import OpenAI client = OpenAI( api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1", ) response = client.chat.completions.create( model="workflow/auto", messages=[ {"role": "user", "content": "Triage this support ticket and name the queue."}, ], ) print(response.choices[0].message.content) ``` ## TypeScript ```typescript import OpenAI from "openai"; const client = new OpenAI({ apiKey: "YOUR_KEY", baseURL: "https://api.inferenceindex.com/v1", }); const response = await client.chat.completions.create({ model: "workflow/auto", messages: [ { role: "user", content: "Extract the invoice total, vendor, and date." }, ], }); console.log(response.choices[0].message.content); ``` ## curl ```bash curl https://api.inferenceindex.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "workflow/auto", "messages": [ {"role": "user", "content": "Reply to this lead with a short first touch."} ] }' ``` ## What stays the same Python clients set the base URL on `base_url`. TypeScript clients set the base URL on `baseURL`. curl posts to the chat completions path on that base URL. Every sample above uses the model `workflow/auto`. ## Next Point one real job at it. The [cookbook](/docs/use-cases) has recipes for contract review, inbox actions, support triage, invoice reconciliation, and meeting notes. ## Related - [How it works](/docs/how-it-works) - [API keys](/docs/api-keys) - [Using with coding agents](/docs/coding-agents) --- Source: https://inferenceindex.com/docs/coding-agents.md # Using with coding agents > Point Cursor, Claude Code, and Codex at the OpenAI-compatible base URL. You need the key from the dashboard, one base URL, and one model name. ![Cursor, Claude Code, and Codex pointed at one base URL](/docs/figures/coding-agents.svg) | Setting | Value | | --- | --- | | Base URL | `https://api.inferenceindex.com/v1` | | Model | `workflow/auto` | | API key | The key from the dashboard at https://inferenceindex-app.web.app | Leave `/chat/completions` off the base URL. The client adds that path. ## Cursor 1. Open Cursor Settings, then Models. 2. Paste the dashboard key into the OpenAI API key field. 3. Turn on Override OpenAI Base URL and set `https://api.inferenceindex.com/v1`. 4. Add the model name `workflow/auto` and select it. Cursor sends OpenAI-compatible chat completions to that base URL for local Chat and Agent requests that use this model. ## Claude Code Claude Code's own base URL, `ANTHROPIC_BASE_URL`, speaks the Anthropic Messages API. Leave that unset for this host. `https://api.inferenceindex.com/v1` is the OpenAI-compatible base URL. For OpenAI-compatible clients in the project Claude Code is editing, set: ```bash export OPENAI_BASE_URL="https://api.inferenceindex.com/v1" export OPENAI_API_KEY="YOUR_KEY" ``` Use the model `workflow/auto` in the client, as in the quickstart. You can paste this into the session: ```text Call the Compiled Agent Model at base URL https://api.inferenceindex.com/v1 with model workflow/auto. The API is OpenAI-compatible chat completions. Read the key from the environment. Do not print the key. ``` ## Codex Codex reads the user file `~/.codex/config.toml`. A project-local config file cannot change the provider. Put the base URL in the user file: ```toml model = "workflow/auto" model_provider = "inferenceindex" [model_providers.inferenceindex] name = "InferenceIndex" base_url = "https://api.inferenceindex.com/v1" env_key = "OPENAI_API_KEY" wire_api = "responses" ``` Put the dashboard key in `OPENAI_API_KEY`. Current Codex sends OpenAI Responses requests to that base URL plus `/responses`. The early-access call documented in the quickstart is chat completions: `POST /v1/chat/completions` with model `workflow/auto`. Use the quickstart from code when you want that call directly. ## Related - [Quickstart](/docs/quickstart) - [API keys](/docs/api-keys) --- Source: https://inferenceindex.com/docs/use-cases.md # Cookbook > Worked recipes for agent jobs that come back: the same job on a new input, called as a Compiled Agent Model. Each recipe is a job a vertical agent product runs thousands of times, with a new input each time. They all use the same call: the base URL `https://api.inferenceindex.com/v1`, the model `workflow/auto`, and the chat completions request you already send. Only the prompt and the fields you read back change. ![Three lanes for support triage, data extraction, and tool-calling loops](/docs/figures/use-cases.svg) ## Recipes | Recipe | Built for | New input | What comes back | | --- | --- | --- | --- | | [Contract review](/docs/cookbook/contract-review) | Legal and compliance agents | A contract | Clause fields as JSON | | [Inbox actions](/docs/cookbook/inbox-actions) | Assistant and ops agents | An email | One action and a reply draft | | [Support triage](/docs/cookbook/support-triage) | Support agents | A ticket | Queue, tags, and a reply | | [Invoice reconciliation](/docs/cookbook/invoice-reconciliation) | Finance agents | An invoice and a purchase order | A match decision | | [Meeting notes to CRM](/docs/cookbook/meeting-notes) | Sales and success agents | A call transcript | CRM fields | ## Every recipe has the same parts 1. **The job.** What your agent does today, and what stays the same from run to run. 2. **The call.** A Python request you can paste, with the fields your system already stores. 3. **What comes back.** The shape of the reply, so you can parse it. 4. **In production.** How to route the job, and what happens when an input doesn't fit. The client setup is the same in every recipe: ```python from openai import OpenAI client = OpenAI( api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1", ) ``` ## Data extraction Most recipes are a form of extraction: a new invoice, form, or email in, and the same fields out. If your job is "read this and return these fields," start from [contract review](/docs/cookbook/contract-review) and change the field list. ## Agent tool-calling loops The same tools, in the same kind of loop, with a new input. Your code still runs the tools and decides which result to keep. The model name stays `workflow/auto`, and the base URL stays the same. ## More jobs that fit - Lead follow-up. A new lead, the same kind of first touch. - Weekly reporting. The same metrics, sources, and write-up. - Onboarding new customers. The same accounts and welcome steps, a new name. - Content repurposing. One post becomes the same set of follow-on posts. If a job comes back with new values and the same steps, it fits. A one-off question can stay on a frontier model. ## Related - [How it works](/docs/how-it-works) - [Quickstart](/docs/quickstart) --- Source: https://inferenceindex.com/docs/cookbook/contract-review.md # Contract review > Pull the same clause fields out of every new contract, as JSON your product already stores. A legal agent reads a new contract and fills in the same fields every time: governing law, term, renewal, notice period, and liability cap. The contract changes each time, but the fields don't, so it's a good fit for a Compiled Agent Model. ![A new contract in, the same clause fields back](/docs/figures/cookbook-contract-review.svg) ## The job - **New each run:** the contract text, the counterparty, and the values in each clause. - **Same each run:** the fields you extract, the definitions you apply, and the JSON shape your product stores. ## The call ```python import json from openai import OpenAI client = OpenAI(api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1") FIELDS = """Return JSON with exactly these keys: governing_law (string), term_months (integer), auto_renewal (boolean), termination_notice_days (integer), liability_cap (string, or null if none). Use null when the contract is silent.""" def review(contract_text: str) -> dict: response = client.chat.completions.create( model="workflow/auto", messages=[ {"role": "system", "content": "You review commercial contracts. " + FIELDS}, {"role": "user", "content": contract_text}, ], ) return json.loads(response.choices[0].message.content) ``` ## What comes back An example reply for a master services agreement: ```json { "governing_law": "Delaware", "term_months": 24, "auto_renewal": true, "termination_notice_days": 60, "liability_cap": "12 months of fees" } ``` ## In production - Keep the system prompt and field list fixed. That fixed definition is what makes it the same job each time. - Validate the JSON before you store it, the same way you do today. - A contract type your agent has never handled goes to your [fallback model](/docs/fallback-models), so you get today's answer at today's price. ## Related - [Cookbook](/docs/use-cases) - [Invoice reconciliation](/docs/cookbook/invoice-reconciliation) --- Source: https://inferenceindex.com/docs/cookbook/inbox-actions.md # Inbox actions > Read a new email, choose one of your known actions, and draft the reply. An assistant agent sorts incoming email into a short list of actions, such as reschedule, reply, file, or hand off to a person, and drafts the response. Each email is new, but the set of actions and the way you handle each one stay the same. ![A new email in, one action back](/docs/figures/cookbook-inbox-actions.svg) ## The job - **New each run:** the sender, the request, and the dates and names in it. - **Same each run:** your list of actions, your tone, and the fields your product needs to carry out the action. ## The call ```python import json from openai import OpenAI client = OpenAI(api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1") ACTIONS = """Choose one action: reschedule, reply, file, handoff. Return JSON with keys: action, reason, reply_draft, and for reschedule also proposed_window (string).""" def handle(email: str, calendar_summary: str) -> dict: response = client.chat.completions.create( model="workflow/auto", messages=[ {"role": "system", "content": "You manage a busy founder's inbox. " + ACTIONS}, {"role": "user", "content": f"Calendar:\n{calendar_summary}\n\nEmail:\n{email}"}, ], ) return json.loads(response.choices[0].message.content) ``` ## What comes back An example reply for "Can we move Thursday to next week?": ```json { "action": "reschedule", "reason": "Client asked to move Thursday's call.", "proposed_window": "Tue or Wed next week, 10:00-12:00", "reply_draft": "Happy to move it. Does Tuesday or Wednesday morning next week work?" } ``` ## In production - Your code still does the action itself: it sends the email, moves the event, or files the thread. The model picks the action and drafts the text. - Keep the action list fixed. Requests for an action that isn't on the list can go to your fallback model. - An email that doesn't fit any action goes to your [fallback model](/docs/fallback-models). ## Related - [Cookbook](/docs/use-cases) - [Support triage](/docs/cookbook/support-triage) --- Source: https://inferenceindex.com/docs/cookbook/support-triage.md # Support triage > Send a new ticket, get back the queue, the tags, and the reply you would send. The same kinds of tickets come in all day, and they get sorted and tagged the same way. On our tests, one repeat of this job took about 0.5s and $0.00009, versus about 10s and $0.012 for a frontier agent. ![A new ticket in, queue, tags, and reply back](/docs/figures/cookbook-support-triage.svg) ## The job - **New each run:** the customer, the order, and what went wrong. - **Same each run:** your queues, your tags, and your reply policy. ## The call ```python import json from openai import OpenAI client = OpenAI(api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1") POLICY = """Queues: billing, shipping, account, bug, other. Return JSON with keys: queue, tags (list), priority (low|normal|urgent), reply_draft.""" def triage(ticket: str) -> dict: response = client.chat.completions.create( model="workflow/auto", messages=[ {"role": "system", "content": "You triage support tickets. " + POLICY}, {"role": "user", "content": ticket}, ], ) return json.loads(response.choices[0].message.content) ``` ## What comes back An example reply for "I was charged twice for order 1842": ```json { "queue": "billing", "tags": ["refund", "duplicate-charge"], "priority": "normal", "reply_draft": "Sorry about that. I can see two charges on order 1842 and have started a refund for the duplicate." } ``` ## In production - Route by `queue` in your own code, the same way you do today. - Keep the queue list in the system prompt fixed. If you change it, those tickets can go to your fallback model. - Tickets about something new go to your [fallback model](/docs/fallback-models). ## Related - [Cookbook](/docs/use-cases) - [Inbox actions](/docs/cookbook/inbox-actions) --- Source: https://inferenceindex.com/docs/cookbook/invoice-reconciliation.md # Invoice reconciliation > Match a new invoice to its purchase order and get back a decision your finance team can act on. A finance agent checks each invoice against its purchase order: vendor, line items, quantities, prices, and totals. Vendors and amounts change on every run, but the matching rules don't. This is the job behind the measured run in the [repeat-cost essay](/blog/ai-agent-repeat-costs): about 450x cheaper and 16x faster than Opus 5.5 on one run of each. ![A new invoice and purchase order in, a match decision back](/docs/figures/cookbook-invoice-reconciliation.svg) ## The job - **New each run:** the vendor, the invoice and purchase order numbers, the line items, and the amounts. - **Same each run:** your tolerance, your match rules, and the decision fields your system records. ## The call ```python import json from openai import OpenAI client = OpenAI(api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1") RULES = """Match the invoice to the purchase order line by line. Tolerance: 1% per line. Return JSON with keys: status (matched|variance|mismatch), variance (number), lines_checked (integer), issues (list of strings).""" def reconcile(invoice: str, purchase_order: str) -> dict: response = client.chat.completions.create( model="workflow/auto", messages=[ {"role": "system", "content": "You reconcile invoices for accounts payable. " + RULES}, {"role": "user", "content": f"Invoice:\n{invoice}\n\nPurchase order:\n{purchase_order}"}, ], ) return json.loads(response.choices[0].message.content) ``` ## What comes back An example reply when every line matches: ```json { "status": "matched", "variance": 0.0, "lines_checked": 6, "issues": [] } ``` ## In production - Approve `matched` automatically, and send `variance` and `mismatch` to a person, as your process does today. - The invoice values are new on every run. This is the case a response cache gets wrong, because it returns yesterday's total. See [how it works](/docs/how-it-works#same-job-new-values). - An invoice format your agent has never handled goes to your [fallback model](/docs/fallback-models). ## Related - [Cookbook](/docs/use-cases) - [Contract review](/docs/cookbook/contract-review) --- Source: https://inferenceindex.com/docs/cookbook/meeting-notes.md # Meeting notes to CRM > Turn a new call transcript into the summary, next steps, and CRM fields you update after every call. A sales or customer success agent reads each call transcript and updates the same CRM fields: a short summary, next steps, deal stage, and a follow-up date. The call is new every time, but the fields aren't. ![A new call transcript in, CRM fields back](/docs/figures/cookbook-meeting-notes.svg) ## The job - **New each run:** the account, the people on the call, and what was agreed. - **Same each run:** your deal stages, your summary format, and the CRM fields you write. ## The call ```python import json from openai import OpenAI client = OpenAI(api_key="YOUR_KEY", base_url="https://api.inferenceindex.com/v1") FIELDS = """Deal stages: discovery, evaluation, proposal, negotiation, closed. Return JSON with keys: summary (3 sentences max), next_steps (list), deal_stage, follow_up_date (YYYY-MM-DD or null).""" def notes(transcript: str, today: str) -> dict: response = client.chat.completions.create( model="workflow/auto", messages=[ {"role": "system", "content": "You write CRM updates after sales calls. " + FIELDS}, {"role": "user", "content": f"Today is {today}.\n\nTranscript:\n{transcript}"}, ], ) return json.loads(response.choices[0].message.content) ``` ## What comes back An example reply after an evaluation call: ```json { "summary": "Northwind wants to pilot on their EU support queue. Security review is the main blocker.", "next_steps": ["Send security questionnaire", "Book pilot kickoff"], "deal_stage": "evaluation", "follow_up_date": "2026-10-23" } ``` ## In production - Write the fields to your CRM from your own code, the same way you do today. - Pass today's date in, as shown above, so the model can work out relative dates like "next Friday". - A call that doesn't fit your usual format goes to your [fallback model](/docs/fallback-models). ## Related - [Cookbook](/docs/use-cases) - [Inbox actions](/docs/cookbook/inbox-actions) --- Source: https://inferenceindex.com/docs/api-keys.md # API keys > Create a key in the dashboard and send it as a bearer token. You need an API key to call a Compiled Agent Model. ![A key card and a bearer token on a request](/docs/figures/api-keys.svg) ## Create a key 1. Open https://inferenceindex-app.web.app. 2. Sign in with the same Google account as the InferenceIndex site, and enter your invite code. 3. Get an API key in the dashboard. Each invite code works once. ## Send the key Send the key on the request as a bearer token. ```text Authorization: Bearer YOUR_KEY ``` Python sets it as `api_key`. TypeScript sets it as `apiKey`. Keep the key in an environment variable or a secret store. Do not commit it, and do not paste it into a chat. If a key is exposed, stop using it and get a new key in the dashboard. ## Related - [Quickstart](/docs/quickstart) - [Logs](/docs/logs) --- Source: https://inferenceindex.com/docs/fallback-models.md # Fallback models > A fallback model handles any request a Compiled Agent Model isn't a fit for. You choose it in the dashboard. Your fallback model is what keeps quality where it is today. When a request to `workflow/auto` is the job a Compiled Agent Model knows, the Compiled Agent Model answers it. When it isn't, the request goes to your fallback model, usually the frontier model your agent uses now. ![Model workflow/auto with fallback models chosen beside it in the dashboard](/docs/figures/fallback-models.svg) ## When a request falls back - The input is a kind of job the Compiled Agent Model hasn't been built for. - The request is a one-off question rather than a repeat of a workflow. - You changed the job itself, for example by adding a new field or a new queue. A request that falls back gets the result you would get today, at about what you pay today. The [lifecycle in How it works](/docs/how-it-works#the-lifecycle-of-a-request) shows where this fits. ## Choose them in the dashboard 1. Open https://inferenceindex-app.web.app. 2. Sign in with the same Google account you use on the InferenceIndex site. 3. Choose your fallback models in the dashboard. Fallback models are chosen in the dashboard, not in the request body. The model name in your request stays `workflow/auto`. ## What you still send The request stays the quickstart call. The base URL is `https://api.inferenceindex.com/v1`, the model is `workflow/auto`, and the key goes in as a bearer token from the dashboard. You don't need a second code path for fallback. ## Related - [How it works](/docs/how-it-works) - [Quickstart](/docs/quickstart) - [Logs](/docs/logs) --- Source: https://inferenceindex.com/docs/credits.md # Credits and billing > Calls spend credits. The dashboard shows your balance and usage. Every call to `workflow/auto` spends credits. Your balance and usage are in the dashboard while the API is in early access. ![A short credit meter beside a tall frontier meter](/docs/figures/credits.svg) ## What the tests show These are published test results, not a rate card. Savings depend on the workflow. - Repeat runs are often 10-100x cheaper on our tests. - Invoice reconciliation, one measured run per model: about 450x cheaper and 16x faster than Opus 5.5. See the [repeat-cost essay](/blog/ai-agent-repeat-costs). - Support ticket triage: about 0.5s and $0.00009 per repeat, versus about 10s and $0.012 for a frontier agent. A request that goes to your [fallback model](/docs/fallback-models) costs about what that model costs you today. ## Where to look Open https://inferenceindex-app.web.app and sign in. Your credits and usage are shown in the dashboard. ## Related - [Fallback models](/docs/fallback-models) - [Logs](/docs/logs) --- Source: https://inferenceindex.com/docs/logs.md # Logs > Logs list the calls you made. Open them in the dashboard. Each call you make to the API shows up in your logs. Open the dashboard to read them. ![A log list with time, model, and status columns](/docs/figures/logs.svg) ## What a log shows Each line in the logs is one call: - When it ran - The model name, `workflow/auto` - Whether the call completed ## Where to read them Open https://inferenceindex-app.web.app and sign in. Logs are in the dashboard. Logs are for reviewing your own calls. SOC 2 is in progress. ## Related - [API keys](/docs/api-keys) - [Credits and billing](/docs/credits) --- Source: https://inferenceindex.com/docs/faq.md # FAQ > Short answers for teams evaluating Compiled Agent Models. The questions teams ask most before they try a Compiled Agent Model. ![Four question cards on a dark plate](/docs/figures/faq.svg) ## What is a Compiled Agent Model? A Compiled Agent Model is a model built for one workflow your agent already runs. It does that job again on new inputs, much cheaper and faster than a frontier model, and anything it does not fit goes to your current model. On our tests, repeat runs are often 10-100x cheaper. ## Is this caching? No. A cache returns a stored answer, so it misses or returns the old answer when the values change. A Compiled Agent Model does the job again on the new values. A new invoice with a new vendor and total gets the new total, not yesterday's. ## Is this a cheaper open-source model? No. A cheaper general model lowers the price per token but has never seen your workflow, so quality on your job is whatever it turns out to be. A Compiled Agent Model is built for your workflow, and anything outside it goes to the frontier model you use today, so your quality bar stays where it is. ## How do I get an API key? Open the dashboard at https://inferenceindex-app.web.app. Sign in with the same Google account as the InferenceIndex site, enter your invite code, and get an API key there. Each invite code works once. ## What base URL and model do I send? The base URL is https://api.inferenceindex.com/v1. The model is workflow/auto. The call is OpenAI-compatible chat completions. Python uses base_url. TypeScript uses baseURL. ## What happens when a request is not a fit? It goes to your fallback model, which you choose in the dashboard. You get the result you would get today, at about today's cost, with no second code path. ## Can I use it from Cursor, Claude Code, or Codex? Cursor takes the OpenAI-compatible base URL in Settings, then Models. Codex takes it in ~/.codex/config.toml. Claude Code's own base URL speaks the Anthropic Messages API, so use the quickstart call from the code you are writing. The coding-agents page is https://inferenceindex.com/docs/coding-agents. ## What do calls cost? Calls spend credits, and the dashboard shows the balance. Published tests are the figures to quote: repeat runs are often 10-100x cheaper on our tests, and one measured invoice reconciliation run was about 450x cheaper than Opus 5.5. ## Where are logs? Logs are in the dashboard. They list your API calls: when the call ran, the model name, and whether it completed. ## Is the API generally available? The API is in early access. It is a private preview. Get a key at https://inferenceindex-app.web.app. The home page waitlist is https://inferenceindex.com/#waitlist. ## What about security reviews? SOC 2 is in progress.