Get AI Config metrics

Retrieve usage metrics for an AI Config by config key.

Path parameters

projectKeystringRequired
configKeystringRequired

Headers

AuthorizationstringRequired
LD-API-Version"beta"Required
Version of the endpoint.

Query parameters

fromintegerRequired

The starting time, as milliseconds since epoch (inclusive).

tointegerRequired

The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after from.

envstringRequired
An environment key. Only metrics from this environment will be included.

Response

Metrics computed
inputTokensinteger or null
outputTokensinteger or null
totalTokensinteger or null
generationSuccessCountinteger or null
Number of successful generations
generationErrorCountinteger or null
Number of generations with errors
thumbsUpinteger or null
thumbsDowninteger or null
durationMsinteger or null
timeToFirstTokenMsinteger or null
satisfactionRatingdouble or null
A value between 0 and 1 representing satisfaction rating
inputCostdouble or null
Cost of input tokens in USD
outputCostdouble or null
Cost of output tokens in USD
generationCountinteger or nullDeprecated
Number of attempted generations

Errors