GET /v1/billing/credits/balance

Tags: billing

Responses

200 — Three-bucket credit balance

JSON
{
  "$ref": "#/components/schemas/CreditBalance"
}

Code samples

TypeScript

TypeScript
import { firecase } from "@firecase/sdk";

const result = await firecase.get("/billing/credits/balance");
console.log(result);

Python

Python
import firecase

result = firecase.get("/billing/credits/balance")
print(result)

curl

Bash
curl -X GET https://api.firecase.ai/v1/billing/credits/balance \
  -H "Authorization: Bearer $FIRECASE_API_KEY" \
  -H "Content-Type: application/json"