Models
Grok Model
Configure Grok as your model provider
The grok
function configures Grok as your model provider.
Configuration
The grok
function accepts a model name string or a configuration object:
Options
ID of the model to use.
See the xAI models list.
The xAI API key to use for authenticating your request. By default we’ll
search for and use the XAI_API_KEY
environment variable.
The base URL for the xAI API.
The default parameters to use for the model (ex: temperature
, max_tokens
,
etc).
Available Models
Gemini
For the latest list of available models, see xAI’s Grok model overview.
Limitations
Grok models do not currently support strict function parameters.