Kling4 API
API reference

Get available credits

Shows the balance your API tasks spend from: `total` unexpired credits, the part `reserved` by videos still in progress (web app included), and what is left `available` for the next task.

GET/v1/credits
AuthorizationBearer <token>

A secret key from Settings → API keys, sent as a Bearer token. Call the API with it from your own server only.

In: header

Response Body

curl "https://kling4.video/v1/credits" \  -H "Authorization: Bearer sk_sd_example"
{
  "total": 300,
  "reserved": 15,
  "available": 285
}
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key is invalid, expired, or revoked.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "API rate limit exceeded. Try again later.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "The request could not be completed.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}