Completions
GET
https://api.openai.com/v1/organization/usage/completionsGet completions usage details for the organization.
Request
Query Params
start_time
string
required
Example:
1730419200
limit
string
required
Example:
1
Header Params
Authorization
string
required
Example:
Bearer $OPENAI_ADMIN_KEY
Content-Type
string
required
Example:
application/json
Body Params text/plain
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object
string
required
data
array [object {4}]
required
object
string
optional
start_time
integer
optional
end_time
integer
optional
results
array [object {10}]
optional
has_more
boolean
required
next_page
string
required
Example
{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.completions.result",
"input_tokens": 1000,
"output_tokens": 500,
"input_cached_tokens": 800,
"num_model_requests": 5,
"project_id": null,
"user_id": null,
"api_key_id": null,
"model": null,
"batch": null
}
]
}
],
"has_more": true,
"next_page": "AAAAAGdGxdEiJdKOAAAAAGcqsYA="
}
Last modified: 14 days ago