Skip to Content
SdkClientInternalType AliasesLlmapiChatCompletionUsage

LlmapiChatCompletionUsage

LlmapiChatCompletionUsage = object

Defined in: src/client/types.gen.ts:521 

Usage contains token usage information

Properties

completion_tokens?

optional completion_tokens: number

Defined in: src/client/types.gen.ts:525 

CompletionTokens is the number of tokens in the completion


cost_micro_usd?

optional cost_micro_usd: number

Defined in: src/client/types.gen.ts:529 

CostMicroUSD is the cost of this completion in micro-dollars (USD × 1,000,000)


credits_used?

optional credits_used: number

Defined in: src/client/types.gen.ts:533 

CreditsUsed is the number of credits consumed by this completion (ceiling of cost / MicroUSDPerCredit)


prompt_tokens?

optional prompt_tokens: number

Defined in: src/client/types.gen.ts:537 

PromptTokens is the number of tokens in the prompt


total_tokens?

optional total_tokens: number

Defined in: src/client/types.gen.ts:541 

TotalTokens is the total number of tokens used

Last updated on