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
}
}| Field | Type | Description |
|---|---|---|
data.credit | integer | Remaining credits on the account |
Error responses
| HTTP | code | Meaning |
|---|---|---|
| 401 | -1 | Missing or invalid API key / session |
| 500 | -1 | Server 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).