How can I calculate Twilio costs when using VAPI?
# general-english
a
Hi team, quick urgent question: ❗ ❗❗ What price should I use for Vonage and Twilio? Both show $0.014 on VAPI, but their websites list different prices (see attached images). Which one should I follow? Just to clarify, this price difference happens because the calls will be made in Brazil, so Vonage and Twilio have specific rates for the country. But since I’ll actually be paying VAPI (not Vonage or Twilio directly), which price should I consider in my calculations, the $0.014 from VAPI or the local rates from Vonage/Twilio? https://cdn.discordapp.com/attachments/1211484481848873020/1386373156528324749/image.png?ex=6859781e&is=6858269e&hm=47a995d5765809ec0f9c902f231d9941237c09e2af6cc60b247f23a1b86ce909& https://cdn.discordapp.com/attachments/1211484481848873020/1386373156737912933/image.png?ex=6859781e&is=6858269e&hm=4cbae74684451fc9ecba876e1630ea93b02b99ac3fa31ebfae3302acc9750dc7& https://cdn.discordapp.com/attachments/1211484481848873020/1386373156977246298/image.png?ex=6859781e&is=6858269e&hm=878b7e1f5eb3a95aebc11d6fb4735cd9b1e53d9a279cb731255ec854cb0826a9&
a
I am interested as well. You can ping the Twilio API and get the call costs but this is after the call is done and remember on transfers you accrue costs while the transfer is active, while they are on the call after transfer.
a
Yeah, will need to check that
a
plus you wont get the full twilio call cost back until any transfers are completed so you need a delayed process to get and update the twilio prices for each API call.. @Vapi might be cool if you could do this for us 🙂 by providing the twilio total call cost if we hit the VAPI call details api.
j
@AiTitus :) do you btw understand why it's still active on transfers ? I'd expect the twilio / vonage leg to close while it is transferred to another number ?
a
The incoming call leg does close but when you initiate a transfer it then turns into an outgoing leg
j
Understood, but why does it have to go through Twilio / Vonage ? Can it not simply get back on pstn network and avoid the infra altogether ?
a
not sure but this is the flow from Twilio incoming -> VAPI Assistant -> Assistant forwards call using Twilio -> Cutomer on forwarded call -> Call end.. this is the full flow for Twilio the transferred call is a Child call of the Parent ...
This entire leg is billed by Twilio
Incoming and Outgoing rates so the transfer call is more expensive than the incoming call btw
need to make sure you factor this into your costs
3 Views