Interface: XAIProviderOptions
@providerprotocol/ai / xai / XAIProviderOptions
Interface: XAIProviderOptions
Section titled “Interface: XAIProviderOptions”Defined in: src/providers/xai/index.ts:23
Configuration options for creating xAI model references.
Properties
Section titled “Properties”
optionalapi:XAIAPIMode
Defined in: src/providers/xai/index.ts:33
The API mode to use for this model.
'completions': Chat Completions API (OpenAI-compatible, default, recommended)'responses': Responses API (OpenAI Responses-compatible, supports stateful conversations)'messages': Messages API (Anthropic-compatible, for easy migration from Anthropic)
Default
Section titled “Default”'completions'