Skip to main content

AgentRunModelCall

One model call of a turn: an ai_usage_event row.

type AgentRunModelCall {
callIndex: Int!
model: String!
slot: String!
promptTokens: Int!
completionTokens: Int!
cachedReadTokens: Int!
estimatedCost: Float!
providerCostUsd: Float
billed: Boolean!
createdAt: Time!
}

Fields​

AgentRunModelCall.callIndex ● Int! non-null scalar​

AgentRunModelCall.model ● String! non-null scalar​

AgentRunModelCall.slot ● String! non-null scalar​

AgentRunModelCall.promptTokens ● Int! non-null scalar​

AgentRunModelCall.completionTokens ● Int! non-null scalar​

AgentRunModelCall.cachedReadTokens ● Int! non-null scalar​

AgentRunModelCall.estimatedCost ● Float! non-null scalar​

Credits at the platform's rate, markup included.

AgentRunModelCall.providerCostUsd ● Float scalar​

OpenRouter's reported cost; null when not reported.

AgentRunModelCall.billed ● Boolean! non-null scalar​

AgentRunModelCall.createdAt ● Time! non-null scalar​

Member Of​

AgentRunInspection object