Read the credits per model.
The credits of the period split by model, separately for the chat, for API keys and
for workflows. Actions without a model, such as an import, count in total of their
area and appear under no model. A model of the chat carries its share and no credits
of its own.
model names the model as GET /llm/models does, so a caller can match the two lists.
Every key reads the consumption of its own user. Only a tenant manager or an
administrator reads a period other than the running month or the organization with
scope=organization.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
scope?stringWhose consumption is read. personal, the default, is the consumption of the key's
user; organization is the whole tenant and is open to a tenant manager or an
administrator only, otherwise the request is refused with 403. Titles of actions
never appear with organization.
"personal""personal""organization"period?stringThe kind of period to read. The service works out its first and last day from
anchor in Europe/Berlin; a caller never sends timestamps. custom reads the days
from from to to. A key of any role other than tenant manager or administrator
reads the running month only: any other value, or month with an anchor outside
the running month, is refused with 403.
"month""week""month""quarter""year""custom"anchor?stringAny day inside the period to read; defaults to today in Europe/Berlin. To read the
period before, send a day inside it, for example the day before period.from of
the last answer. Refused with 400 before 2026-10-01 or after today. Ignored with
period=custom. Nothing booked before 2026-10-01 is readable, for any caller: a
period that begins before it is read from that day on.
datefrom?stringFirst day of a custom period in Europe/Berlin. Required with period=custom and
refused with 400 for every other period. Not before 2026-10-01; a custom period
spans at most 366 days.
dateto?stringLast day of a custom period in Europe/Berlin, inclusive. Required with
period=custom and refused with 400 for every other period. Not after today; at
most 365 days after from.
datetype?CreditUsageTypeReads only actions of this type. Without the parameter every type is read.
"chat""import""search""audit""skillScan""llmGateway""apiKey""workflow"userId?stringReads only the consumption of this person. Valid only with scope=organization;
with scope=personal the request is refused with 400. A person who is not a member
of the key's tenant is answered with 404.
uuidThe credits per model.
application/json- response
Credits per model for each area in which a person chooses or calls a model: the chat, the LLM operations called with API keys, and workflows.
chat*Credits of one area, split by the model that consumed them. In the chat a model carries its share only and no credits of its own.
apiKey*Credits of one area, split by the model that consumed them. In the chat a model carries its share only and no credits of its own.
workflow*Credits of one area, split by the model that consumed them. In the chat a model carries its share only and no credits of its own.
curl -X GET "https://example.com/credits/models?anchor=2026-10-23&from=2026-10-01&to=2026-10-31"{ "chat": { "total": 0, "models": [ { "model": { "model": "gpt-6-luna", "name": "GPT-6 Luna", "provider": { "key": "openai", "name": "OpenAI" } }, "credits": 0, "share": 0 } ] }, "apiKey": { "total": 0, "models": [ { "model": { "model": "gpt-6-luna", "name": "GPT-6 Luna", "provider": { "key": "openai", "name": "OpenAI" } }, "credits": 0, "share": 0 } ] }, "workflow": { "total": 0, "models": [ { "model": { "model": "gpt-6-luna", "name": "GPT-6 Luna", "provider": { "key": "openai", "name": "OpenAI" } }, "credits": 0, "share": 0 } ] }}