Vapi · Schema

VapiCost

AIVoiceAgentsRealtimeCPaaS

Properties

Name Type Description
type string This is the type of cost, always 'vapi' for this class.
subType string This is the sub type of the cost.
minutes number This is the minutes of Vapi usage. This should match `call.endedAt` - `call.startedAt`.
cost number This is the cost of the component in USD.
View JSON Schema on GitHub

JSON Schema

vapi-vapicost-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/VapiCost",
  "title": "VapiCost",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "This is the type of cost, always 'vapi' for this class.",
      "enum": [
        "vapi"
      ]
    },
    "subType": {
      "type": "string",
      "description": "This is the sub type of the cost.",
      "enum": [
        "normal",
        "overage"
      ]
    },
    "minutes": {
      "type": "number",
      "description": "This is the minutes of Vapi usage. This should match `call.endedAt` - `call.startedAt`."
    },
    "cost": {
      "type": "number",
      "description": "This is the cost of the component in USD."
    }
  },
  "required": [
    "type",
    "subType",
    "minutes",
    "cost"
  ]
}