xAI API
xAI API provides programmatic access to Grok models through OpenAI-compatible REST endpoints and xAI's gRPC interface, with text, tool, media, file, and batch APIs.
xAI API and OpenAI API both expose Responses-style and OpenAI-compatible developer workflows, with different model catalogs, server-side tools, media endpoints, and transport options.
xAI API provides programmatic access to Grok models through OpenAI-compatible REST endpoints and xAI's gRPC interface, with text, tool, media, file, and batch APIs.
OpenAI API provides programmatic access to OpenAI models through the Responses API, Realtime API, batch processing, and other model and media endpoints.
Structured facts
These fields come from each entity record and are kept separate from the curated comparison notes below.
Editorial comparison
These rows are curated comparison data, distinct from automatically aggregated graph relationships.
Grok
OpenAI GPT and related models
OpenAI-compatible REST API
First-party OpenAI API
xAI also documents a gRPC API
Realtime API supports realtime application workflows
Web search and X search
OpenAI web-search and other tool surfaces
Knowledge graph
No API links in the current graph.