Twitter (Musk I assume) has it backward. Their API isn’t just providing value to apps. The apps provide value to Twitter.

They want to charge for API access, but they're only hurting themselves because they risk losing a lot of third-party functionality that Twitter users enjoy.