Kensa
API Reference

Credits API

Read your Kensa credit balance and credit transaction history with the API.

Every generation costs credits. When a generation starts, its price is reserved (frozen). It is charged when the video completes and returned if the generation fails. Credits that expire soonest are used first. Prices per model are on AI Models.

All paths are relative to https://www.kensa.cc/api/v1 and need an API key (see API Overview).

Get your balance

GET /credit/balance
{
  "success": true,
  "data": {
    "availableCredits": 2452,
    "frozenCredits": 13,
    "usedCredits": 400,
    "totalCredits": 2865,
    "expiringSoon": 0,
    "plan": "BUSINESS"
  }
}
FieldDescription
availableCreditsCredits you can spend now
frozenCreditsCredits reserved for generations that are still running
usedCreditsCredits already charged from your current credit packages
totalCreditsCredits granted in your current credit packages
expiringSoonAvailable credits that expire within 7 days
planYour plan: FREE, BASIC, PRO or BUSINESS (Ultimate)

The response also includes your subscription's activeProductId, subscriptionStatus and currentPeriodEnd.

Get your transactions

GET /credit/history?limit=20&offset=0
ParameterDefaultDescription
limit20Transactions per page
offset0Number of transactions to skip; pass the previous page's nextCursor
typeOnly one type: NEW_USER, ORDER_PAY, SUBSCRIPTION, VIDEO_CONSUME, REFUND, EXPIRED or SYSTEM_ADJUST
{
  "success": true,
  "data": {
    "transactions": [
      {
        "id": "1024",
        "userId": "usr_123",
        "credits": -13,
        "balanceAfter": 2452,
        "transType": "video_generate",
        "videoUuid": "vid_V1StGXR8_Z5jdHi6B-myT",
        "remark": null,
        "createdAt": "2026-09-28T10:03:00.000Z"
      }
    ],
    "total": 57,
    "hasMore": true,
    "nextCursor": "20"
  }
}

Transactions are sorted newest first. In the response, transType is lowercase:

transTypeFilter valueMeaning
new_userNEW_USERFree credits for a new account
order_payORDER_PAYCredit pack purchase
subscriptionSUBSCRIPTIONCredits from a subscription
video_generateVIDEO_CONSUMECredits charged for a generation
video_refundREFUNDCredits returned
expiredEXPIREDCredits that expired
admin_adjustSYSTEM_ADJUSTManual adjustment by Kensa