New API enhancements are designed to make the company more profitable, but it’s hard to keep pace with the massive cost of artificial intelligence development.