Get user credit balance

get /text/Credit
This method retrieves information about the authenticated user's credit balance and subscription type, including total available credits, current balance, premium status, and membership tier.

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 in their account (used + unused).

availableCredits integer The number of credits currently available for use.
isPremium boolean Indicates whether the user has a premium plan (true if premium, false otherwise).
membershipType string The user’s subscription tier. Possible values: FreeTrial, Starter, Professional, Enterprise.