Javascript
import { AISearchAPIClient } from 'aisearchapi-client'; const client = new AISearchAPIClient({ apiKey: 'YOUR_API_KEY' }); const response = await client.balance(); console.log(response);
{ "available_credits": 123 }
Get account balance
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Balance response
The response is of type object.
object