Galon Cloud
Galon API v1

/costs

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

GET /costs

Get the recognised monthly spend of the project bound to the key

Exact scope usage:read. Measures active subscriptions in USD cents; on-demand usage remains explicitly not_measured. No provider cost or payment identifier is returned.

API key (Bearer), on the public API endpoint.

Responses

StatusDescriptionBody
200Partial spend projection and explicit coverageProjectCosts
401Key missing or invalidError
403scope_missing (usage:read)
404project_not_found
503costs_unavailable

Examples

curl

curl -X GET "$GALON_API_BASE/costs" \
  -H "Authorization: Bearer $GALON_API_KEY"

Node.js (SDK)

import { Galon } from "galon";

const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.costs.get();

Python (SDK)

from galon import Galon

galon = Galon()  # reads GALON_API_KEY
result = galon.costs.get()