Skip to Content

LlmapiEmbeddingUsage

LlmapiEmbeddingUsage = object

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

Usage contains token usage information

Properties

cost_micro_usd?

optional cost_micro_usd: number

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

CostMicroUSD is the inference cost for this embedding request


credits_used?

optional credits_used: number

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

CreditsUsed is the number of credits consumed by this embedding request


pricing_source?

optional pricing_source: string

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

PricingSource identifies which lookup produced CostMicroUSD; see internal/pricing/source.go.


prompt_tokens?

optional prompt_tokens: number

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

PromptTokens is the number of tokens in the prompt


provider_cost_micro_usd?

optional provider_cost_micro_usd: number

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

ProviderCostMicroUSD is what we believe the provider charged us in micro-USD. Today equals CostMicroUSD (no markup); kept distinct so future per-tier pricing preserves history.


total_tokens?

optional total_tokens: number

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

TotalTokens is the total number of tokens used

Last updated on