getAiModelStats
Get per-model stats: total users and total calls.
Examples
query GetAiModelStats($input: AiModelStatsInput) {
getAiModelStats(input: $input) {
items {
modelId
totalUsers
totalCalls
}
total
}
}Variables
This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.
{
"input": {
"modelId": "gpt-4o",
"limit": 100,
"offset": 0
}
}curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "query GetAiModelStats($input: AiModelStatsInput) { getAiModelStats(input: $input) { items { modelId totalUsers totalCalls } total } }",
"variables": {
"input": {
"modelId": "gpt-4o",
"limit": 100,
"offset": 0
}
}
}'Arguments
You can use the following argument(s) to customize your getAiModelStats query.
Argument
Description
Supported fields
Fields
Return type: AiModelStatsResponse!
You can use the following field(s) to specify what information your getAiModelStats query will return. Please note that some fields may have their own subfields.
Field
Description
Supported fields
items [AiModelStatItem!]!
List of AI model usage statistics matching the query criteria
modelId String!
totalUsers Int!
totalCalls Int!
total Int!
Total number of AI models matching the query criteria
Last updated