Skip to content

GET /v1/me/credits

Summary

Returns the total remaining credit balance for the authenticated user. Credits are consumed when you create runs. Use this endpoint to check your balance before executing prompts or to monitor usage.

HTTP Request

http
GET /v1/me/credits

Response

Success (200 OK)

Returns a JSON object whose status is "SUCCESS" and a data object containing:

FieldTypeDescription
creditsintegerTotal active credits remaining on the account.

Example response

json
{
  "status": "SUCCESS",
  "data": {
    "credits": 4250
  }
}

Error responses

HTTP statusstatus codeDescription
401UNAUTHORIZED_ERRORMissing or invalid API key.

See also