API Platform

Get Remaining Credits

GET /chat/credit — query your ModKie account credit balance.

GET /chat/credit

Query your remaining credit balance. Works with a session cookie or Authorization: Bearer YOUR_API_KEY.

Request

curl "https://modkie.com/api/v1/chat/credit" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "code": 200,
  "msg": "success",
  "data": {
    "credit": 1000
  }
}
FieldTypeDescription
data.creditintegerRemaining credits on the account

Error responses

HTTPcodeMeaning
401-1Missing or invalid API key / session
500-1Server error

Notes

  • Credits never expire on ModKie accounts.
  • Per-model costs are listed on the pricing page and Market Models.
  • Credits are deducted only when async jobs complete with state=success (see recordInfo).