For the complete documentation index, see llms.txt. This page is also available as Markdown.

Credits

Check your credit allowance, usage, and reset date for the current billing period. This call requires an API key, costs no credits, and keeps answering after the allowance is spent. For prices and charging rules, see Credits and pricing.

Get your credit balance

get

API key only.

Never consumes credits.

Your API credit allowance and consumption for the current billing period. period_start, period_end and resets_at state it.

Each successful call costs the credits on the price list. A call that costs more than you have left is refused before it runs, and once your credits are spent every v1.2 endpoint — the free ones included — returns 429 with code credit_limit_exceeded until resets_at; retrying does not help before then.

Authorizations
AuthorizationstringRequired

Your credential, sent as Authorization: Bearer <credential>. Two kinds reach this API, and the prefix tells them apart.

API key (sk-…) — created in the Developer Dashboard, it authenticates your whole account. Use it only where you control the machine — never inside a mobile app or a browser. Every endpoint accepts it.

Client token (ct-…) — a short-lived credential bound to one of your end users, minted from your API key by POST /v1.2/auth/client-tokens on your backend and relayed to the device. Safe to hold on a phone: it expires within 2 hours and acts only as the user it was minted for. Endpoints that open with API key or client token accept one and name the scope it must carry; endpoints that open with API key only refuse it.

Responses
200

Your credit balance for the current billing period: the plan, the period bounds and reset instant, used_credits, and included_credits/remaining_credits — always present, and null for an uncapped partner whose plan has no ceiling.

application/json
planstring · enumRequired

The plan this allowance comes from. unlimited is a partner with no ceiling, for whom both ceiling fields are null.

Example: freePossible values:
period_startstring · dateRequired

First day of the current billing period (UTC), inclusive. In the month of a plan change that starts no new billing period (a move to Free, say), the day of the change, when the allowance restarted.

Example: 2026-08-01
period_endstring · dateRequired

Last day of the current billing period (UTC), inclusive.

Example: 2026-08-31
resets_atstring · date-timeRequired

When the billing period ends and the next begins: used_credits and the free-call count return to 0 and the request allowance reopens.

Example: 2026-09-01T00:00:00.000Z
included_creditsinteger · nullableRequired

Credits included in the plan for this period, or null when the plan has no ceiling.

Example: 1000
used_creditsintegerRequired

Credits used so far this period. Each successful call costs the credits on the price list; failed calls cost nothing.

Example: 342
remaining_creditsinteger · nullableRequired

Credits left in this period, or null when the plan has no ceiling.

Example: 658
get/v1.2/credits
GET /v1.2/credits HTTP/1.1
Host: partners.january.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "plan": "free",
  "period_start": "2026-08-01",
  "period_end": "2026-08-31",
  "resets_at": "2026-09-01T00:00:00.000Z",
  "included_credits": 1000,
  "used_credits": 342,
  "remaining_credits": 658
}

Last updated

Was this helpful?