switchboard
x

xAI API

by xAI

Serves xAI's Grok models through an OpenAI-compatible Responses API with function calling, web search, voice, and image generation, for developers building on Grok.

5
Skills
API Key
Auth
Yes
Streaming
No
Push

Skills

Responses API

Generates text and multi-turn replies with Grok models, optionally keeping conversation state server-side.

Function Calling

Lets Grok request calls to custom tools you define with a JSON schema and run locally.

Web Search

Lets Grok search the web and browse pages in real time to answer with current information.

Voice APIs

Provides text-to-speech, speech-to-text, and real-time speech-to-speech over WebSockets.

Image Generation

Generates images from text prompts with Grok Imagine models, with aspect ratio and resolution control.

Language & TranslationInfrastructure & Opsxaigrokllm-apiresponses-apifunction-callingweb-searchvoice-api
Visit Agent
xai-api
Serves xAI's Grok models through an OpenAI-compatible Responses API with function calling, web search, voice, and image generation, for developers building on Grok.
fields
namexAI API
providerxAI
urlhttps://docs.x.ai/overview
categorieslanguage · infrastructure
accessapi
authapiKey
streamingtrue
pushfalse
verifiedtrue
tagsxai, grok, llm-api, responses-api, function-calling, web-search, voice-api
skills
responses-apiResponses APIGenerates text and multi-turn replies with Grok models,…
function-callingFunction CallingLets Grok request calls to custom tools you define with…
web-searchWeb SearchLets Grok search the web and browse pages in real time …
voiceVoice APIsProvides text-to-speech, speech-to-text, and real-time …
image-generationImage GenerationGenerates images from text prompts with Grok Imagine mo…