While the pricing calculator docs still say that no API exists, it's worth noting their does seem to be an SDK. https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bcm-pricing-calculator/