Structured Response Pricing Detail
# support
k
I experienced structured output cost spike. The cost was fine before and I didn't add anything new to the structured output but suddenly today the cost is really high just for a 3:47 duration call, no additional detail also makes it hard to debug. How am i supposed to check the detail? https://cdn.discordapp.com/attachments/1482220649819930695/1482220650146824353/image.png?ex=69b6290d&is=69b4d78d&hm=4426b139b8c28115e9355f320e868ecce72b6d6acdf29011d78635693c359e91&
v
To check the detailed cost breakdown for your structured output, use the following API call to retrieve the call details:
Copy code
bash
curl -X GET "https://api.vapi.ai/calls/{call_id}" -H "Authorization: Bearer YOUR_API_KEY"
Look for the
costBreakdown.analysisCostBreakdown
fields in the response, such as
structuredOutputPromptTokens
and
structuredOutputCompletionTokens
, to see exactly where the cost spike occurred. This will help you compare token usage with previous calls and identify any anomalies. According to the documentation, this is the most direct way to debug structured output cost issues when the dashboard lacks detail. Source: - [API reference for calls/get](https://docs.vapi.ai/api-reference/calls/get)
c
Hi, Call costs in Vapi can vary based on several factors, and you can now use
call.costs[type=vapi].subType
to determine if a Vapi cost is
normal
or an
overage
. This helps identify if your call exceeded normal usage limits. How to Get Cost Details To get a detailed breakdown of your call costs: 1. Access your call logs by navigating to [https://dashboard.vapi.ai/calls](https://dashboard.vapi.ai/calls) 2. Find your specific call using the Call ID 3. Review the cost breakdown in the call details, which should show the different cost components