Embeddings
GET
https://api.openai.com/v1/organization/usage/embeddings
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/organization/usage/embeddings?start_time=1730419200&limit=1' \
--header 'Authorization: Bearer $OPENAI_ADMIN_KEY' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.embeddings.result",
"input_tokens": 16,
"num_model_requests": 2,
"project_id": null,
"user_id": null,
"api_key_id": null,
"model": null
}
]
}
],
"has_more": false,
"next_page": null
}
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
Responses
Modified atΒ 2025-01-09 08:41:55