Openai and claude are the major ones will charge you per api call based on tokens used. They will return you the cost in each api response. You can handle it at your app level.
Both are now prepay if i am not mistaken claude is for sure, min deposit is 5$.
Groq ai is free at the moment, you can use the api fro free: console.groq.com/login