Skip to main content
GET
/
api
/
v1
/
client
/
account
/
balance
Check your account remaining credits balance
curl --request GET \
  --url https://api.crun.ai/api/v1/client/account/balance \
  --header 'x-api-key: <api-key>'
{
  "code": 200,
  "message": "success",
  "data": {
    "balance": 1000
  }
}
Retrieve the current balance of credits available in your account.

Usage Guide

  • Use this endpoint to check your current credit balance
  • Monitor usage to ensure sufficient credits for continued service
  • Plan credit replenishment based on your usage patterns

Developer Notes

  • Credit balance is required for all generation services
  • Service access will be restricted when credits are depleted
  • Credits are consumed based on the specific service and usage volume

Authorizations

x-api-key
string
header
required

All APIs require authentication via API Key.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header:

x-api-key: YOUR_API_KEY

Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately in the management page

Response

get successfully.

code
integer
required

Response status code

  • 200: Success - Request has been processed successfully
  • 401: Unauthorized - Authentication credentials are missing or invalid
  • 402: Insufficient Credits - Account does not have enough credits to perform the operation
  • 404: Not Found - The requested resource or endpoint does not exist
  • 422: Validation Error - The request parameters failed validation checks
  • 429: Rate Limited - Request limit has been exceeded for this resource
  • 455: Service Unavailable - System is currently undergoing maintenance
  • 500: Server Error - An unexpected error occurred while processing the request
  • 501: Generation Failed - Content generation task failed
  • 505: Feature Disabled - The requested feature is currently disabled
message
string
required

Response message

data
object

result information.