Get AI Config metrics
Retrieve usage metrics for an AI Config by config key.
Path parameters
projectKey
configKey
Headers
Authorization
LD-API-Version
Version of the endpoint.
Query parameters
from
The starting time, as milliseconds since epoch (inclusive).
to
The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after from
.
env
An environment key. Only metrics from this environment will be included.
Response
Metrics computed
inputTokens
outputTokens
totalTokens
generationSuccessCount
Number of successful generations
generationErrorCount
Number of generations with errors
thumbsUp
thumbsDown
durationMs
timeToFirstTokenMs
satisfactionRating
A value between 0 and 1 representing satisfaction rating
inputCost
Cost of input tokens in USD
outputCost
Cost of output tokens in USD
generationCountDeprecated
Number of attempted generations