Projects

Get project spend

Returns actual billed credits from project-attributed ledger transactions. The response does not expose account balances, payment methods, or dollar amounts.

get/api/v1/projects/{project_id}/spend

Request

  • Base URL: https://api.studio.kaitoi.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.studio.kaitoi.io/api/v1/projects/{project_id}/spend
  • Auth: HTTP bearer

Path parameters

project_idstring required

Headers

authorizationstring nullable

Response

Project spend summary.

projectIdstring required

Project identifier.

totalCreditsinteger required

Whole billed credits derived from project-attributed ledger transactions.

totalMicrocreditsstring required

Exact total billed amount in millionths of one credit.

byProviderobject required

Provider credit breakdown.

byProviderMicrocreditsobject required

Exact provider breakdown in millionths of one credit.

byChargeTypeobject required

Charge type credit breakdown.

byChargeTypeMicrocreditsobject required

Exact charge-type breakdown in millionths of one credit.

Example response

{
  "byChargeType": {
    "provider": 24
  },
  "byChargeTypeMicrocredits": {
    "provider": "24110000"
  },
  "byNode": [
    {
      "billedRuns": 2,
      "credits": 24,
      "lastUsedAt": "2026-05-24T12:00:00Z",
      "microcredits": "24110000",
      "nodeId": "node_456",
      "nodeTitle": "Generate Image",
      "nodeType": "builtin/image/generate"
    }
  ],
  "byProvider": {
    "fal": 24
  },
  "byProviderMicrocredits": {
    "fal": "24110000"
  },
  "projectId": "project_123",
  "recentRuns": [],
  "totalCredits": 42,
  "totalMicrocredits": "42110000"
}

Changes

No recorded changes to this operation across all 1 revision of this API.