This recipe demonstrates how to use xAI's Grok models with Spice.ai.
- An xAI API key (get one from x.ai)
- Spice CLI installed (Getting Started Guide)
- Update the
.env
file with your xAI API key (or edit directly in thespicepod.yaml
).
- From the recipe directory, start the Spice.ai runtime:
spice run
- Open another terminal and run
spice chat
:
spice chat
- Ask a question.
chat> Who are you and who made you?