Vapi · Schema

AnalysisCostBreakdown

AIVoiceAgentsRealtimeCPaaS

Properties

Name Type Description
summary number This is the cost to summarize the call.
summaryPromptTokens number This is the number of prompt tokens used to summarize the call.
summaryCompletionTokens number This is the number of completion tokens used to summarize the call.
summaryCachedPromptTokens number This is the number of cached prompt tokens used to summarize the call.
structuredData number This is the cost to extract structured data from the call.
structuredDataPromptTokens number This is the number of prompt tokens used to extract structured data from the call.
structuredDataCompletionTokens number This is the number of completion tokens used to extract structured data from the call.
structuredDataCachedPromptTokens number This is the number of cached prompt tokens used to extract structured data from the call.
successEvaluation number This is the cost to evaluate if the call was successful.
successEvaluationPromptTokens number This is the number of prompt tokens used to evaluate if the call was successful.
successEvaluationCompletionTokens number This is the number of completion tokens used to evaluate if the call was successful.
successEvaluationCachedPromptTokens number This is the number of cached prompt tokens used to evaluate if the call was successful.
structuredOutput number This is the cost to evaluate structuredOutputs from the call.
structuredOutputPromptTokens number This is the number of prompt tokens used to evaluate structuredOutputs from the call.
structuredOutputCompletionTokens number This is the number of completion tokens used to evaluate structuredOutputs from the call.
structuredOutputCachedPromptTokens number This is the number of cached prompt tokens used to evaluate structuredOutputs from the call.
View JSON Schema on GitHub

JSON Schema

vapi-analysiscostbreakdown-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AnalysisCostBreakdown",
  "title": "AnalysisCostBreakdown",
  "type": "object",
  "properties": {
    "summary": {
      "type": "number",
      "description": "This is the cost to summarize the call."
    },
    "summaryPromptTokens": {
      "type": "number",
      "description": "This is the number of prompt tokens used to summarize the call."
    },
    "summaryCompletionTokens": {
      "type": "number",
      "description": "This is the number of completion tokens used to summarize the call."
    },
    "summaryCachedPromptTokens": {
      "type": "number",
      "description": "This is the number of cached prompt tokens used to summarize the call."
    },
    "structuredData": {
      "type": "number",
      "description": "This is the cost to extract structured data from the call."
    },
    "structuredDataPromptTokens": {
      "type": "number",
      "description": "This is the number of prompt tokens used to extract structured data from the call."
    },
    "structuredDataCompletionTokens": {
      "type": "number",
      "description": "This is the number of completion tokens used to extract structured data from the call."
    },
    "structuredDataCachedPromptTokens": {
      "type": "number",
      "description": "This is the number of cached prompt tokens used to extract structured data from the call."
    },
    "successEvaluation": {
      "type": "number",
      "description": "This is the cost to evaluate if the call was successful."
    },
    "successEvaluationPromptTokens": {
      "type": "number",
      "description": "This is the number of prompt tokens used to evaluate if the call was successful."
    },
    "successEvaluationCompletionTokens": {
      "type": "number",
      "description": "This is the number of completion tokens used to evaluate if the call was successful."
    },
    "successEvaluationCachedPromptTokens": {
      "type": "number",
      "description": "This is the number of cached prompt tokens used to evaluate if the call was successful."
    },
    "structuredOutput": {
      "type": "number",
      "description": "This is the cost to evaluate structuredOutputs from the call."
    },
    "structuredOutputPromptTokens": {
      "type": "number",
      "description": "This is the number of prompt tokens used to evaluate structuredOutputs from the call."
    },
    "structuredOutputCompletionTokens": {
      "type": "number",
      "description": "This is the number of completion tokens used to evaluate structuredOutputs from the call."
    },
    "structuredOutputCachedPromptTokens": {
      "type": "number",
      "description": "This is the number of cached prompt tokens used to evaluate structuredOutputs from the call."
    }
  }
}