xAI
Last updated
Last updated
xAI is a platform for providing endpoints for Large Language models.
Set your XAI_API_KEY
environment variable. You can get one .
MacWindows
Use xAI
with your Agent
:
agent.py
id
str
"grok-beta"
The specific model ID used for generating responses.
name
str
"xAI"
The name identifier for the xAI agent.
provider
str
"xAI"
The provider of the model, combining "xAI" with the model ID.
api_key
Optional[str]
-
The API key for authenticating requests to the xAI service. Retrieved from the environment variable XAI_API_KEY
.
base_url
str
"https://api.xai.xyz/v1"
The base URL for making API requests to the xAI service.
For more information, please refer to the as well.
xAI also supports the params of .