DocsAPI referenceAccount
The account's credits
The balance as of the last change in the billing ledger, less the credits of jobs that ended since; the credits running jobs hold; the grants with credits left and when they expire; for a subscriber, the cycle and its overage.
GET /v1/credits
Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.
Request
bash
curl "$VIDEXO_API_URL/v1/credits" \
-H "Authorization: Bearer $VIDEXO_API_KEY"Copy failed. The text is selected; copy it with your keyboard.
JavaScript
const response = await fetch(`${process.env.VIDEXO_API_URL}/v1/credits`, {
headers: { Authorization: `Bearer ${process.env.VIDEXO_API_KEY}` },
});
const credits = await response.json();Copy failed. The text is selected; copy it with your keyboard.
Response
200 JSON
{
"plan": "payg",
"balance": 26950.5,
"reserved": 660,
"available": 26290.5,
"as_of": "2026-11-04T11:58:20.000Z",
"buckets": [
{
"id": "cgr_free_9xk2",
"kind": "free",
"granted": 500,
"remaining": 120.5,
"granted_at": "2026-10-28T08:14:02.000Z",
"expires_at": "2026-11-27T08:14:02.000Z"
},
{
"id": "cgr_pack_4m7q",
"kind": "top_up",
"granted": 27500,
"remaining": 26830,
"granted_at": "2026-11-02T16:40:11.000Z",
"expires_at": "2027-11-02T16:40:11.000Z"
}
],
"cycle": null,
"overage": null
}Copy failed. The text is selected; copy it with your keyboard.