UsageCompletionsResult
objectThe aggregated completions usage details of the specific time bucket.
Allowed values:organization.usage.completions.result
The aggregated number of text input tokens used, including cached tokens. For customers subscribe to scale tier, this includes scale tier tokens.
The aggregated number of text input tokens that has been cached from previous requests. For customers subscribe to scale tier, this includes scale tier tokens.
The aggregated number of text output tokens used. For customers subscribe to scale tier, this includes scale tier tokens.
The aggregated number of audio input tokens used, including cached tokens.
The aggregated number of audio output tokens used.
The count of requests made to the model.
When group_by=project_id, this field provides the project ID of the grouped usage result.
When group_by=user_id, this field provides the user ID of the grouped usage result.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When group_by=model, this field provides the model name of the grouped usage result.
When group_by=batch, this field tells whether the grouped usage result is batch or not.
UsageEmbeddingsResult
objectThe aggregated embeddings usage details of the specific time bucket.
Allowed values:organization.usage.embeddings.result
The aggregated number of input tokens used.
The count of requests made to the model.
When group_by=project_id, this field provides the project ID of the grouped usage result.
When group_by=user_id, this field provides the user ID of the grouped usage result.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When group_by=model, this field provides the model name of the grouped usage result.
UsageImagesResult
objectThe aggregated images usage details of the specific time bucket.
Allowed values:organization.usage.images.result
The number of images processed.
The count of requests made to the model.
When group_by=source, this field provides the source of the grouped usage result, possible values are image.generation, image.edit, image.variation.
When group_by=size, this field provides the image size of the grouped usage result.
When group_by=project_id, this field provides the project ID of the grouped usage result.
When group_by=user_id, this field provides the user ID of the grouped usage result.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When group_by=model, this field provides the model name of the grouped usage result.
UsageModerationsResult
objectThe aggregated moderations usage details of the specific time bucket.
Allowed values:organization.usage.moderations.result
The aggregated number of input tokens used.
The count of requests made to the model.
When group_by=project_id, this field provides the project ID of the grouped usage result.
When group_by=user_id, this field provides the user ID of the grouped usage result.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When group_by=model, this field provides the model name of the grouped usage result.
UsageResponse
objectAllowed values:page