Get user credit balance

get /text/Credit
This method retrieves detailed information about the authenticated user's credit balance, including total available credits, premium status, and whether free premium credits have been used.

Requirements

Authentication Required
Bearer access_token
Request Headers
Authorization: Bearer access_token

Response

200
401
500
//This status is returned if the API key is missing or invalid.
//The server encountered an error when processing the request.
Parameter Name Type Description
totalCredits integer The total number of credits the user has.
availableCredits integer The number of credits that are currently available for use.
isPremium boolean Indicates whether the user has a premium account (true if premium, false otherwise)