diff --git a/fern/docs.yml b/fern/docs.yml index c10f36f6b..26e70d807 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -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 diff --git a/fern/observability/simulations-manage.mdx b/fern/observability/simulations-manage.mdx index cdd893d8f..6899039fc 100644 --- a/fern/observability/simulations-manage.mdx +++ b/fern/observability/simulations-manage.mdx @@ -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 diff --git a/fern/observability/simulations-overview.mdx b/fern/observability/simulations-overview.mdx index 9e0378f5f..91247aea3 100644 --- a/fern/observability/simulations-overview.mdx +++ b/fern/observability/simulations-overview.mdx @@ -109,4 +109,7 @@ tools into one coverage plan. Edit suites, review and rerun results, and maintain test coverage. + + Understand what a simulation run costs and how to keep costs down. + diff --git a/fern/observability/simulations-pricing.mdx b/fern/observability/simulations-pricing.mdx new file mode 100644 index 000000000..dc7bb3f80 --- /dev/null +++ b/fern/observability/simulations-pricing.mdx @@ -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 + + + + +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 | + + + + +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 | + + + + +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. + + + 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. + + +## 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 + + + + Review, rerun, and cancel simulation runs. + + + Understand usage-based charges across Vapi. + +