@Juan Velázquez Romera Thanks for the question. You can use the azure consumption api, but specifically for Azure open ai we don't have.
Azure product pricing is available on the Azure pricing page, in the Azure portal when you create a new resource, and through individual product pages. To estimate your costs, see the pricing calculator.