Hello Test Admin,
Thanks for your question.
For Azure Speech to Text, you are billed on transcription minutes. If failure occurs before transcription starts you will not be billed, if it fails after transcription you will be billed for the successful transcription minutes,
With Azure OpenAI Completions API, token usage metric captures the resources consumed up to the point of failure. The cost for the input tokens that were utilized before the failure will be billed.
See:
https://azure.microsoft.com/en-us/pricing/details/cognitive-services/speech-services/
https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola