toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.core
/
PromptTokensDetails
Prompt
Tokens
Details
@
Serializable
data
class
PromptTokensDetails
(
val
cachedTokens
:
Int
?
=
null
,
val
audioTokens
:
Int
?
=
null
)
Breakdown of prompt token usage.
Members
Constructors
Prompt
Tokens
Details
Link copied to clipboard
constructor
(
cachedTokens
:
Int
?
=
null
,
audioTokens
:
Int
?
=
null
)
Properties
audio
Tokens
Link copied to clipboard
@
SerialName
(
value
=
"audio_tokens"
)
val
audioTokens
:
Int
?
=
null
Audio input tokens.
cached
Tokens
Link copied to clipboard
@
SerialName
(
value
=
"cached_tokens"
)
val
cachedTokens
:
Int
?
=
null
Tokens served from the prompt cache.