LlmapiEmbeddingUsage
LlmapiEmbeddingUsage =
object
Defined in: src/client/types.gen.ts:380
Usage contains token usage information
Properties
cost_micro_usd?
optionalcost_micro_usd:number
Defined in: src/client/types.gen.ts:384
CostMicroUSD is the inference cost for this embedding request
credits_used?
optionalcredits_used:number
Defined in: src/client/types.gen.ts:388
CreditsUsed is the number of credits consumed by this embedding request
pricing_source?
optionalpricing_source:string
Defined in: src/client/types.gen.ts:392
PricingSource identifies which lookup produced CostMicroUSD; see internal/pricing/source.go.
prompt_tokens?
optionalprompt_tokens:number
Defined in: src/client/types.gen.ts:396
PromptTokens is the number of tokens in the prompt
provider_cost_micro_usd?
optionalprovider_cost_micro_usd:number
Defined in: src/client/types.gen.ts:401
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?
optionaltotal_tokens:number
Defined in: src/client/types.gen.ts:405
TotalTokens is the total number of tokens used