Skip to content

Grok

Grok is a family of AI models and an API from xAI for building chat assistants that can call tools, and optionally use live search to include current information from the web and X.

Developers access Grok through a REST Responses API, the recommended interface, which supports prompting and function calling to integrate external tools. A legacy chat-completions endpoint is still available. For up-to-date information, Grok can call xAI’s server-side search tools (web_search and x_search) that retrieve current data from the web, news, and X. You enable them by including the tools in a request, and Grok invokes them as needed. These agentic tools replaced the original Live Search API, the per-request search_parameters mechanism, which xAI retired in early 2026. Requests to it now return HTTP 410 Gone. xAI has also released the Grok-1 base model weights and architecture under the Apache 2.0 license for local experimentation outside the hosted API.

Official website: grok.com

PydanticAI: Typed LLM Agents With Structured Outputs

Course

Building Type-Safe LLM Agents With Pydantic AI

Build type-safe LLM agents in Python with Pydantic AI using structured outputs, function calling, and dependency injection.

intermediate ai


By Leodanis Pozo Ramos • Updated July 4, 2026 • Reviewed by Martin Breuss