AxAIOpenAIUsage Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAIOpenAIUsage.md type AxAIOpenAIUsage

AxAIOpenAIUsage

TypeScript
type AxAIOpenAIUsage = object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L121

Properties

completion_tokens

TypeScript
completion_tokens: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L123


completion_tokens_details?

TypeScript
optional completion_tokens_details: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L135

reasoning_tokens?

TypeScript
optional reasoning_tokens: number;

prompt_tokens

TypeScript
prompt_tokens: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L122


prompt_tokens_details?

TypeScript
optional prompt_tokens_details: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L126

cache_write_tokens?

TypeScript
optional cache_write_tokens: number;

Prompt tokens written to the cache on this request, billed at a premium over uncached input. Sits alongside cached_tokens, and prompt_tokens includes both — see usage.ts, which subtracts them back out.

cached_tokens?

TypeScript
optional cached_tokens: number;

service_tier?

TypeScript
optional service_tier: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L125


total_tokens

TypeScript
total_tokens: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/openai/chat_types.ts#L124

Docs