GET
/
api
/
v1
/
chat
/
credit
Get Remaining Credits
curl --request GET \
  --url https://api.kie.ai/api/v1/chat/credit \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "msg": "success",
  "data": 100
}
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

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

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

Usage: Add to request header: Authorization: Bearer YOUR_API_KEY

Response

Request successful

code
enum<integer>
required

Response Status Code

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

Error message when code != 200

Example:

"success"

data
integer
required

Remaining credit quantity

Example:

100