Skip to main content
GET
Get workspace usage over time

承認

X-API-Key
string
header
必須

API key authentication. Generate an API key from your account settings at https://platform.comfy.org/profile/api-keys. Pass the key in the X-API-Key header.

クエリパラメータ

group_by
enum<string>
デフォルト:model

How to group spend within each time bucket.

利用可能なオプション:
model,
endpoint,
product
granularity
enum<string>
デフォルト:month

Width of each time bucket.

利用可能なオプション:
hour,
day,
month
starting_on
string<date-time>

Start of the range, inclusive (RFC 3339). Overrides months when set.

ending_before
string<date-time>

End of the range, exclusive (RFC 3339). Defaults to the current hour.

months
integer
デフォルト:6

How many months back to report, counted from ending_before. Ignored when starting_on is set.

必須範囲: 1 <= x <= 24

レスポンス

Success - Usage returned

Billed usage for one workspace over a time range.

group_by
enum<string>
必須

How spend was grouped, echoing the request.

利用可能なオプション:
model,
endpoint,
product
granularity
enum<string>
必須

Width of each bucket, echoing the request.

利用可能なオプション:
hour,
day,
month
starting_on
string<date-time>
必須

Start of the reported range, inclusive.

ending_before
string<date-time>
必須

End of the reported range, exclusive.

groups
string[]
必須

Every group key present in the range, ordered by total spend, highest first. Use it to keep series in a stable order across buckets.

buckets
object[]
必須

One entry per group per time bucket, oldest bucket first. A group with no spend in a bucket is omitted rather than reported as zero.

breakdown
object[]
必須

Total spend per group across the whole range.

summary
object
必須