For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

modelId String limit Int offset Int

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

List of AI model usage statistics matching the query criteria

modelId String! totalUsers Int! totalCalls Int!

Deprecated: Use items

modelId String! totalUsers Int! totalCalls Int!

total Int!

Total number of AI models matching the query criteria

Last updated