Developers

Invocations API Reference

This section covers all endpoints related to invocations.

Get Usage

Get aggregated usage data, which is the amount of revenue we would be receiving if no usage was free.

Endpoint:

Responses

Status CodeDescription
200Successful Response

Get Llm Stats

Endpoint:

Responses

Status CodeDescription
200Successful Response

Get Diffusion Stats

Endpoint:

Responses

Status CodeDescription
200Successful Response

Get Export

Get invocation exports (and reports) for a particular hour.

Endpoint:

Parameters

ParameterTypeRequiredDescription
yearintegerYes
monthintegerYes
dayintegerYes
hour_formatstringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Get Recent Export

Get an export for recent data, which may not yet be in S3.

Endpoint:

Parameters

ParameterTypeRequiredDescription
hotkeystring | nullNo
limitinteger | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Report Invocation

Endpoint:

Parameters

ParameterTypeRequiredDescription
invocation_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Request Body

FieldTypeRequiredDescription
reasonstringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.