GET
/
v1
/
balance
Node.js SDK
import { AISearchAPIClient } from 'aisearchapi-client';

const client = new AISearchAPIClient({ apiKey: 'YOUR_API_KEY' });
const response = await client.balance();

console.log(response);
{
  "available_credits": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

Balance response

The response is of type object.