Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,9 @@ navigation:
- page: Manage
path: observability/simulations-manage.mdx
icon: fa-light fa-sliders
- page: Pricing
path: observability/simulations-pricing.mdx
icon: fa-light fa-receipt
- page: Boards
path: observability/boards-quickstart.mdx
icon: fa-light fa-chart-line
Expand Down
2 changes: 2 additions & 0 deletions fern/observability/simulations-manage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ To catch slow responses, add a [**latency limit**](/observability/simulations-ad
| Receive call-specific webhook data | Voice (`vapi.websocket`) | Start and end webhooks fire in both modes, but chat payloads omit call-specific fields. |
| Check representative voice journeys before launch | Voice (`vapi.websocket`) | Adds voice coverage. Also make controlled calls through the real phone path and sandbox integrations. |

A voice simulation is billed as two calls, the AI tester's and your assistant's, while a chat simulation is billed per turn. See [**Simulation pricing**](/observability/simulations-pricing).

Review failures and sample passing runs. Compare automated judgments with human-reviewed examples, and listen to voice recordings when available. Follow [run and maintain tests](/test/run-and-maintain-tests) for release checks and failure triage.

## Maintain simulation coverage
Expand Down
3 changes: 3 additions & 0 deletions fern/observability/simulations-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@ tools into one coverage plan.
<Card title="Manage simulations" icon="gear" href="/observability/simulations-manage">
Edit suites, review and rerun results, and maintain test coverage.
</Card>
<Card title="Simulation pricing" icon="receipt" href="/observability/simulations-pricing">
Understand what a simulation run costs and how to keep costs down.
</Card>
</CardGroup>
88 changes: 88 additions & 0 deletions fern/observability/simulations-pricing.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
title: Simulation pricing
subtitle: Understand what a simulation run costs and how to keep costs down
slug: observability/simulations-pricing
description: Learn how Vapi bills simulations as ordinary calls and chats plus an evaluation, what each charge covers, and how to reduce what your simulation runs cost.
---

## Overview

Simulations have no fee of their own. Each simulation runs a real conversation between an AI tester and your assistant or squad, and you pay for that conversation at the same rates as any other call or chat. You also pay for the model that grades the result.

A run's cost is the sum of its simulation iterations. A suite of 10 simulations run with 3 iterations costs as much as 30 single simulations.

## What a simulation costs

<Tabs>
<Tab title="Voice">

A voice simulation places two calls in your organization: the AI tester calls your assistant or squad.

| Charge | What it covers | Price |
| --- | --- | --- |
| **Tester call** | The AI tester's side of the conversation: its transcriber, model, and voice, as set by the simulation's [**personality**](/observability/simulations-configure-ai-tester) | Same as any call: Vapi's per-minute fee plus provider costs |
| **Target call** | Your assistant's or squad's side of the conversation, including the tools it runs | Same as any call: Vapi's per-minute fee plus provider costs |
| **Evaluation** | The tokens used to grade the conversation against the scenario's evaluations | Provider cost |

</Tab>
<Tab title="Chat">

A chat simulation exchanges text messages, with no speech generation or transcription.

| Charge | What it covers | Price |
| --- | --- | --- |
| **Tester turns** | Each response from the AI tester | $0.005 per turn plus model cost |
| **Target turns** | Each response from your assistant or squad | $0.005 per turn plus model and tool costs |
| **Evaluation** | The tokens used to grade the conversation against the scenario's evaluations | Provider cost |

</Tab>
</Tabs>

When the tester or your assistant uses your own provider API key for a model, voice, or transcriber, Vapi doesn't charge for that provider, and your provider bills you directly. Vapi's per-minute fee and the $0.005 chat fee still apply.

The evaluation always runs on Vapi's provider keys, so it is charged even when your organization has its own keys.

## Worked example

One voice simulation that passed cost **$0.0565** in total:

| Charge | Cost |
| --- | --- |
| Tester call | $0.0272 |
| Target call | $0.0274 |
| Evaluation | $0.0019 |
| **Total** | **$0.0565** |

Your costs depend on the providers and models on each side, and on how long each conversation runs. Run 100 times a month, for example on every change to the assistant, this simulation would cost about $5.65.

## Find the charges for a run

- **Voice calls:** both calls appear in your [**call logs**](/observability/logs/call-logs), each with its own cost breakdown. The run item's `callId` is the target call. The tester call's ID is in the `simulation.run.started` and `simulation.run.ended` [**webhooks**](/observability/simulations-advanced#send-webhooks-on-run-start-and-end), alongside the target's.
- **Chat simulations and evaluations:** these are charged to your organization's usage when each simulation iteration finishes.

## Billing checks

Before a run starts, Vapi checks that your organization can pay for it. If it can't, `POST /eval/simulation/run` returns `402` with a `reason`, such as `payment_method_missing`, `insufficient_credits`, or `billing_limit`. Pay-as-you-go organizations that have credits can run chat simulations without a card on file.

<Note>
Simulation charges don't trigger auto-reload. Before a large run, check that your credit balance covers it. If the balance runs out partway through, the remaining simulation iterations fail.
</Note>

## Keep simulation costs down

- **Iterate in chat mode.** Chat simulations skip speech generation and transcription, so they cost less and finish faster. Switch to voice to test audio behavior, interruptions, and latency. See [**Choose voice or chat mode**](/observability/simulations-manage#choose-voice-or-chat-mode).
- **Use fewer iterations while you iterate.** Raise `iterations` when you need confidence in a flaky flow, not on every change.
- **Give each scenario a clear stopping condition**, so the AI tester ends the conversation once the outcome is decided. See [**Configure an AI tester**](/observability/simulations-configure-ai-tester).
- **Choose a smaller model and a lower-cost voice for the AI tester** in its personality, or run them on your own provider API keys.
- **Cancel runs you no longer need.** Canceling a run stops its remaining iterations. See [**Cancel a run**](/observability/simulations-manage#cancel-a-run).

## Related

<CardGroup cols={2}>
<Card title="Manage simulations" icon="sliders" href="/observability/simulations-manage">
Review, rerun, and cancel simulation runs.
</Card>
<Card title="Pricing and Success Packages" icon="receipt" href="/billing/pricing-and-success-packages">
Understand usage-based charges across Vapi.
</Card>
</CardGroup>
Loading