Skip to content

Commit be2efbe

Browse files
authored
Merge pull request #380 from openai/dev/jzhou/usage-audio-token
Add audio tokens to Usage API
2 parents 399a81d + 950492b commit be2efbe

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

openapi.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6003,6 +6003,8 @@ paths:
60036003
"input_tokens": 1000,
60046004
"output_tokens": 500,
60056005
"input_cached_tokens": 800,
6006+
"input_audio_tokens": 0,
6007+
"output_audio_tokens": 0,
60066008
"num_model_requests": 5,
60076009
"project_id": null,
60086010
"user_id": null,
@@ -6014,7 +6016,7 @@ paths:
60146016
}
60156017
],
60166018
"has_more": true,
6017-
"next_page": "AAAAAGdGxdEiJdKOAAAAAGcqsYA="
6019+
"next_page": "page_AAAAAGdGxdEiJdKOAAAAAGcqsYA="
60186020
}
60196021
/organization/usage/embeddings:
60206022
get:
@@ -23331,17 +23333,25 @@ components:
2333123333
- organization.usage.completions.result
2333223334
input_tokens:
2333323335
type: integer
23334-
description: The aggregated number of input tokens used. For customers subscribe
23335-
to scale tier, this includes scale tier tokens.
23336+
description: The aggregated number of text input tokens used, including cached
23337+
tokens. For customers subscribe to scale tier, this includes scale
23338+
tier tokens.
2333623339
input_cached_tokens:
2333723340
type: integer
23338-
description: The aggregated number of input tokens that has been cached from
23339-
previous requests. For customers subscribe to scale tier, this
23341+
description: The aggregated number of text input tokens that has been cached
23342+
from previous requests. For customers subscribe to scale tier, this
2334023343
includes scale tier tokens.
2334123344
output_tokens:
2334223345
type: integer
23343-
description: The aggregated number of output tokens used. For customers
23346+
description: The aggregated number of text output tokens used. For customers
2334423347
subscribe to scale tier, this includes scale tier tokens.
23348+
input_audio_tokens:
23349+
type: integer
23350+
description: The aggregated number of audio input tokens used, including cached
23351+
tokens.
23352+
output_audio_tokens:
23353+
type: integer
23354+
description: The aggregated number of audio output tokens used.
2334523355
num_model_requests:
2334623356
type: integer
2334723357
description: The count of requests made to the model.
@@ -23383,6 +23393,8 @@ components:
2338323393
"input_tokens": 5000,
2338423394
"output_tokens": 1000,
2338523395
"input_cached_tokens": 4000,
23396+
"input_audio_tokens": 300,
23397+
"output_audio_tokens": 200,
2338623398
"num_model_requests": 5,
2338723399
"project_id": "proj_abc",
2338823400
"user_id": "user-abc",

0 commit comments

Comments
 (0)