Query api models and pricing alternatives

I’m looking to use the OpenAI API to retrieve the available models and their associated costs. I understand that this is a requested feature, and as far as I know, it’s not available at the moment.

Do any of you know of alternative methods to achieve this? Are there any third-party APIs or libraries that could help? I’d love to keep this information up-to-date without having to do it manually.

Thanks in advance!