Accessing model pricing programmatically

Given the latest announcement that announces some pricing changes (Function calling and other API updates), pricing information is found in a variety of different places. It would be nice to be able to programmatically access the cost of different models.

Thanks!

2 Likes

Nope. There’s not even any way of retrieving the context length or endpoint allowed, which would seem to be a basic required operation if you are making multi-model selection available in client chat software and would like it to be future-proof against such changes of features or model names.

2 Likes