Vector stores
admin.organization.usage.vector_stores(**kwargs) -> UsageVectorStoresResponse { data, has_more, next_page, object }
GET/organization/usage/vector_stores
Get vector stores usage details for the organization.
Parameters
group_by: Array[:project_id]
Group the usage data by the specified fields. Support fields include project_id.
limit: Integer
Specifies the number of buckets to return.
bucket_width=1d: default: 7, max: 31bucket_width=1h: default: 24, max: 168bucket_width=1m: default: 60, max: 1440
Vector stores
require "openai"
openai = OpenAI::Client.new(admin_api_key: "My Admin API Key")
response = openai.admin.organization.usage.vector_stores(start_time: 0)
puts(response){
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.vector_stores.result",
"usage_bytes": 1024,
"project_id": null
}
]
}
],
"has_more": false,
"next_page": null
}
Returns Examples
{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.vector_stores.result",
"usage_bytes": 1024,
"project_id": null
}
]
}
],
"has_more": false,
"next_page": null
}