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

AxModelInfo

TypeScript
type AxModelInfo = object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L69

Properties

aliases?

TypeScript
optional aliases: string[];

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L98


audio?

TypeScript
optional audio: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L116

input?

TypeScript
optional input: boolean;

output?

TypeScript
optional output: boolean;

cacheReadTokenCostPer1M?

TypeScript
optional cacheReadTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L75


cacheWriteTokenCostPer1M?

TypeScript
optional cacheWriteTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L76


characterIsToken?

TypeScript
optional characterIsToken: boolean;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L72


completionTokenCostPer1M?

TypeScript
optional completionTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L74


contextWindow?

TypeScript
optional contextWindow: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L127


currency?

TypeScript
optional currency: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L71


dataUse?

TypeScript
optional dataUse: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L132

Provider data-use policy that materially differs between model variants.

appliesTo?

TypeScript
optional appliesTo: readonly ("prompt" | "completion")[];

providerTraining

TypeScript
providerTraining: "not-used" | "allowed";

deprecatedOn?

TypeScript
optional deprecatedOn: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L130

ISO date (YYYY-MM-DD) the upstream provider will stop serving this model.


fastCacheReadTokenCostPer1M?

TypeScript
optional fastCacheReadTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L90

Cache read token cost when a provider speed tier such as Anthropic fast mode is active.


fastCacheWriteTokenCostPer1M?

TypeScript
optional fastCacheWriteTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L92

Cache write token cost when a provider speed tier such as Anthropic fast mode is active.


fastCompletionTokenCostPer1M?

TypeScript
optional fastCompletionTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L88

Completion token cost when a provider speed tier such as Anthropic fast mode is active.


fastPromptTokenCostPer1M?

TypeScript
optional fastPromptTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L86

Prompt token cost when a provider speed tier such as Anthropic fast mode is active.


isDeprecated?

TypeScript
optional isDeprecated: boolean;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L128


isExpensive?

TypeScript
optional isExpensive: boolean;

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


longContextCacheReadTokenCostPer1M?

TypeScript
optional longContextCacheReadTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L82

Cache read token cost for requests exceeding longContextThreshold


longContextCacheWriteTokenCostPer1M?

TypeScript
optional longContextCacheWriteTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L97


longContextCompletionTokenCostPer1M?

TypeScript
optional longContextCompletionTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L80

Completion token cost for requests exceeding longContextThreshold


longContextPromptTokenCostPer1M?

TypeScript
optional longContextPromptTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L78

Prompt token cost for requests exceeding longContextThreshold


longContextThreshold?

TypeScript
optional longContextThreshold: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L84

Total input token count (including cached) above which long-context rates apply


maxTokens?

TypeScript
optional maxTokens: number;

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


modalities?

TypeScript
optional modalities: object;

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

Exact provider-declared model input and output modalities.

input

TypeScript
input: readonly ("text" | "image" | "audio" | "video" | "pdf")[];

output

TypeScript
output: readonly ("text" | "image")[];

name

TypeScript
name: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L70


notSupported?

TypeScript
optional notSupported: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L112

temperature?

TypeScript
optional temperature: boolean;

topP?

TypeScript
optional topP: boolean;

promptTokenCostPer1M?

TypeScript
optional promptTokenCostPer1M: number;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L73


serviceTierPricing?

TypeScript
optional serviceTierPricing: Partial<Record<"flex" | "priority", AxServiceTierPricing>>;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L94

Token pricing overrides selected from the tier that actually served a request.


supported?

TypeScript
optional supported: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/types.ts#L99

imageOutput?

TypeScript
optional imageOutput: boolean;

Whether this model can return generated images from chat().

operations?

TypeScript
optional operations: readonly ("chat" | "transcribe")[];

Public Ax operations verified for this exact model.

serviceTiers?

TypeScript
optional serviceTiers: readonly AxServiceTier[];

Portable request tiers verified for this exact model.

showThoughts?

TypeScript
optional showThoughts: boolean;

structuredOutputModes?

TypeScript
optional structuredOutputModes: readonly AxStructuredOutputRung[];

Ordered, verified structured-output strategies for this exact model.

structuredOutputs?

TypeScript
optional structuredOutputs: boolean;

thinkingBudget?

TypeScript
optional thinkingBudget: boolean;
Docs