xAI
xAI model examples for building agents with Grok, including vision, web search, and financial analysis.
| Example | Description |
|---|---|
| xAI Basic | Run a Grok agent in sync, async, and streaming modes with xAI. |
| Finance Agent | Use YFinanceTools with Grok to report stock prices, analyst recommendations, company data, and news. |
| xAI Image Agent | Describe an image URL with Grok 4.5 and search for related news. |
| xAI Image Agent Bytes | Analyze downloaded image bytes with Grok 4.5. |
| xAI Image Agent With Memory | Analyze an image with Grok 4.5 and retain history for follow-up questions. |
| xAI Live Search Agent | Request a news digest using the current xAI Responses web search tool. |
| xAI Live Search Agent Stream | Stream a news digest using the current xAI Responses web search tool. |
| xAI Reasoning Agent | Use ReasoningTools and explicit financial data tools with Grok 4.3 for a stock report. |
| Retry | Review retry settings and why invalid model IDs cannot reliably exercise the retry path. |
| xAI Structured Output | Request JSON and validate a MovieScript with Pydantic through Grok 4.3. |
| Build a Web Search Agent using xAI | Build a web search agent on Grok and run it sync, streaming, and async. |
| Device login | Sign in with a SuperGrok subscription instead of an API key and run an agent through xAIResponses. |
| Chat sign-in | Sign in with a SuperGrok subscription from inside the conversation. |
| Per-user sign-in | Several people share one deployment and each spends their own SuperGrok subscription. |