OpenAI Usage This Month Test
In environments where OpenAI is extensively used, users may leverage different API capabilities for different activities based on their requirements. For example, Responses & Chat Completions may be used for conversational AI, Embeddings and Vector Stores for RAG-based search, Audio Transcriptions for processing customer calls, and Text-to-Speech for generating voice responses. As these capabilities are used extensively, administrators may need a consolidated monthly view of how frequently each capability is used and the volume of resources consumed. To aid administrators in this regard, eG Enterprise offers the OpenAI Usage This Month test.
For each API capability, this test tracks relevant usage measures, such as the number of requests, tokens processed, characters converted to audio, audio duration submitted for transcription, images generated, and bytes stored. These metrics enable administrators to understand both the frequency of API capability usage and the volume of resources consumed. By analyzing the metrics reported by this test, administrators can identify frequently used API capabilities, detect sudden or abnormal increase in consumption, understand workload and usage patterns, and identify potential cost drivers. This helps administrators recognize unusual consumption patterns early and take corrective action before usage or associated costs increase significantly.
Target of the test : OpenAI
Agent deploying the test: A remote agent
Outputs of the test : One set of results for each API capability functioning on the target OpenAI being monitored.
Descriptor : API capability
| Parameters | Description |
|---|---|
|
Test Period |
This indicates how often should the test be executed. By default, this is set to 15 minutes. |
|
Host |
The host for which the test is to be configured. |
|
Port |
Refers to the port used by the target OpenAI organization. |
| Admin API Key |
To collect metrics from the target OpenAI organization, the eG agent requires organization-level API access. To grant this access, administrators must specify the Admin API key obtained from the OpenAI portal in this text box. The key provides the permissions required to access organization-level information, such as costs, projects, and usage data, which the eG agent uses to monitor OpenAI APIs and their capabilities. |
|
Is Debug Enabled |
This parameter specifies whether the test should run in debug mode. If this flag is set to Yes, the eG agent runs the test in debug mode and generates detailed error logs, which can help administrators troubleshoot issues related to test execution or metric collection. By default, this flag is set to No, indicating that the test does not run in debug mode and detailed debug logs are not generated. Debug mode should typically be enabled only when troubleshooting issues. |
|
DD Frequency |
Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
|
Detailed Diagnosis |
To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option. The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:
|
| Measurement | Description | Measurement Unit | Interpretation |
|---|---|---|---|
|
TTS requests |
Indicates the total number of text-to-speech API requests made to this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Audio speeches’ descriptor. Each request represents an invocation of an OpenAI audio speech generation operation. |
|
TTS requests this month |
Indicates the total number of requests made to this API capability for text-to-speech conversion this month. |
Number |
This measure is applicable only for the ‘Audio speeches’ descriptor. A sudden growth in the number of requests may indicate repeated or automated requests. |
|
Converted characters to audio |
Indicates the total number of input characters submitted for conversion from text into audio through text-to-speech requests to this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Audio speeches’ descriptor. This measure is a good indicator of the volume of text processed by text-to-speech capability. |
|
Converted characters to audio this month |
Indicates the total number of text characters converted to audio using this API capability this month. |
Number |
A high value indicates a larger speech generation workload. Compare this measure with TTS requests to identify increases in text length per request. |
|
Transcription requests |
Indicates the total number of audio transcription requests made to this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Audio Transcriptions’ descriptor. A sudden/gradual increase in the value of this measure may indicate increased user activity, more audio-processing workflows, or changes in application behavior. |
|
Transcription requests this month |
Indicates the total number of requests made to this API capability for audio transcription this month. |
Number |
A high value indicates greater demand for transcription through this capability. Unexpected increases in the value of this measure may indicate repeated audio submissions. |
|
Audio duration submitted for transcriptions |
Indicates the time duration of audio submitted for transcription to this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Audio Transcriptions’ descriptor. This measure is a good indicator of the volume of audio processed for transcription. |
|
Audio duration submitted for transcriptions this month |
Indicates the total duration of audio submitted to this API capability for transcription this month. |
|
|
|
Code interpreter sessions executed |
Indicates the number of code interpreter sessions executed by this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Code Interpreter Sessions’ descriptor. |
|
Code interpreter sessions executed this month |
Indicates the total number of Code Interpreter sessions executed through this API capability this month. |
Number |
|
|
Embedding requests |
Indicates the number of embedding requests processed by this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Embeddings’ descriptor. A high value for this measure indicates a high volume of embedding activity. |
|
Embedding requests this month |
Indicates the total number of requests made to this API capability to generate embeddings this month. |
Number |
This measure is applicable only for the ‘Embeddings’ descriptor. A high value indicates increased embedding activity. |
|
Tokens processed for embedding |
Indicates the total number of tokens processed by this API capability for embedding requests during the last measurement period. |
Number |
This measure is applicable only for the ‘Embeddings’ descriptor. A high value for this measure indicates a larger volume of data being processed for embeddings and potentially higher embedding costs. |
|
Tokens processed for embedding this month |
Indicates the total number of input tokens processed for embedding through this API capability this month. |
Number |
This measure is applicable only for the ‘Embeddings’ descriptor. A high value indicates a larger volume of content being embedded. Compare this measure with embedding requests to identify changes in input size. |
|
Image requests |
Indicates the total number of requests made to this API capability for image generation during the last measurement period. |
Number |
This measure is applicable only for the ‘Images’ descriptor. A high value for this measure indicates a higher demand for image generation. |
|
Images generated |
Indicates the number of images generated by this API capability in response to image generation requests during the last measurement period. |
Number |
This measure is applicable only for the ‘Images’ descriptor. A high value for this measure indicates greater image-generation activity and consumption. |
|
Image requests this month |
Indicates the total number of requests made to this API capability for image operations this month. |
Number |
This measure is applicable only for the ‘Images’ descriptor. A high value indicates increased use of image operations. Unexpected growth may indicate repeated requests or increased application activity. |
|
Images generated this month |
Indicates the total number of images generated through this API capability this month. |
Number |
This measure is applicable only for the ‘Images’ descriptor. A high value indicates greater image output. Compare this measure with image requests to identify increases in images generated per request. |
|
Moderation requests |
Indicates the number of requests submitted to this API capability for moderation during the last measurement period. |
Number |
This measure is applicable only for the ‘Moderation’ descriptor. A high value for this measure indicates increased moderation activity and content evaluation workload. |
|
Moderation requests this month |
Indicates the total number of requests made to this API capability for content moderation this month. |
Number |
This measure is applicable only for the ‘Moderation’ descriptor. A high value indicates increased content screening activity. It does not indicate how much content was flagged as harmful. |
|
Tokens submitted for moderations |
Indicates the number of tokens submitted to this API capability for moderation during the last measurement period. |
Number |
This measure is applicable only for the ‘Moderation’ descriptor. A high value for this measure indicates a larger volume of content being processed for moderation. |
|
Tokens submitted for moderations this month |
Indicates the total number of input tokens submitted to this API capability for content moderation this month. |
Number |
This measure is applicable only for the ‘Moderation’ descriptor. A high value indicates a larger volume of content being screened. Compare this measure with moderation requests to identify increases in content length per request. |
|
Chat requests |
Indicates the total number of chat completion requests submitted to this API capability during the last measurement period. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value for this measure indicates increased model usage and request workload. |
|
Chat requests this month |
Indicates the total number of chat requests made to this API capability this month. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value for this measure indicates greater chat activity. |
|
Tokens sent to the model |
Indicates the number of input tokens sent to this API capability for chat completion requests during the last measurement period. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value for this measure indicates a larger volume of input data processed by the model and potentially higher input-token costs. |
|
Tokens sent to the model this month |
Indicates the total number of input tokens sent to the model through this API capability this month. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value indicates a larger input workload. This may result from more requests, longer prompts, or additional conversation history. |
|
Tokens generated by the model |
Indicates the number of output tokens generated by this API capability in response to chat completion requests during the last measurement period. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value for this measure helps administrators assess output workload and identify projects with higher model-generated token consumption and potential cost impact. |
|
Tokens generated by the model this month |
Indicates the total number of output tokens generated by the model through this API capability this month. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. Compare this measure with chat requests to identify increases in response length. |
|
Input tokens served from prompt cache |
Indicates the total number of input tokens served from the prompt cache of this API capability in response to chat completion requests during the last measurement period. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value for this measure indicates greater use of cached input content, which can reduce the amount of input processing required for repeated prompts and may help reduce input-token costs and latency. |
|
Input tokens served from prompt cache this month |
Indicates the total number of input tokens served from the prompt cache for requests made through this API capability this month. |
Number |
This measure is applicable only for the ‘Responses & Chat Completions’ descriptor. A high value indicates greater reuse of cached prompt content. Compare this measure with total input tokens to assess cache reuse. |
|
Data stored in vector stores |
Indicates the total amount of data stored in vector stores for this API capability during the last measurement period. |
Bytes |
This measure is applicable only for the ‘Vector Stores’ descriptor. A high value for this measure helps administrators track storage growth, identify projects with high storage usage, and anticipate increasing storage requirements or associated costs. |
|
Data stored in vector stores this month |
Indicates the vector store storage usage reported for this API capability this month. |
Bytes |
This measure is applicable only for the ‘Vector Stores’ descriptor. A high value indicates greater storage consumption. Review unexpected growth for duplicate or obsolete content and opportunities to adjust data retention. |