How can I buy message credits to use for API
You will have to buy message credits in ChatFAI for API usage. To buy them, click on your Avatar at the top-right corner and then click on Billing.
Scroll down to the bottom of this page, where you can find message credits to buy or to check remaining message credits.