Skip to content

See the AI allowance by person

GET
/api/billing/ai-caps
curl --request GET \
--url https://forge.example.com/api/billing/ai-caps \
--header 'Authorization: Bearer <token>'

Everyone in the organization with what their calls on the instance’s own AI account cost this month, the most first, in millionths of a dollar, and the caps on each person’s share: default (kind none, dollars with microdollars, or share with percent of the month’s pool), defaultCapMicrodollars (what the default comes to, null for none), and for each person ownCapMicrodollars (set for them alone, null for none), capMicrodollars (the cap in force, null for none) and stopped. pool and poolSpent are the organization’s month. applies is false when the organization has no plan with an AI allowance, and nothing can then be set. With no cap set the pool is shared freely; the organization’s month and day apply on top of any cap. For administrators.

OK

Media typeapplication/json
object
applies
required
boolean
poolMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
poolSpentMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
default
required
object
kind
required
string
microdollars
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
percent
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
defaultCapMicrodollars
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
people
required
Array<object>
object
personId
required
string format: uuid
name
required
string
active
required
boolean
spentMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
ownCapMicrodollars
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
capMicrodollars
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
stopped
required
boolean

Example generated

{
"applies": true,
"poolMicrodollars": 1,
"poolSpentMicrodollars": 1,
"default": {
"kind": "example",
"microdollars": 1,
"percent": 1
},
"defaultCapMicrodollars": 1,
"version": 1,
"people": [
{
"personId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"active": true,
"spentMicrodollars": 1,
"ownCapMicrodollars": 1,
"capMicrodollars": 1,
"stopped": true
}
]
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}