Agent Switchboard

xAI API

by xAI

Official listing: built and published by xAI. More from 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.

Use it now

Keep it with up to 9 other tools you're setting up, then share them all as one link.

Try this first

Ask your coding agent:

  • Responses API

    Use xAI API to generate text and multi-turn replies: ‹what you need›

  • Image Generation

    Use xAI API to generate images from text prompts: ‹what you need›

Call the API

Base URL
https://api.x.ai

Auth An API key from xAI

Setup guide: docs.x.ai/developers/quickstart

Compare

Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.

Access
API
Auth
API Key
Skills
5

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.
try this first
Ask your coding agent:
Use xAI API to generate text and multi-turn replies: ‹what you need›responses-api
Use xAI API to generate images from text prompts: ‹what you need›image-generation
use it now
https://api.x.aiapi.base-url
An API key from xAIapi.auth
fields
namexAI API
providerxAI
urlhttps://docs.x.ai/overview
categorieslanguage · infrastructure
accessapi
authapiKey
streamingtrue
pushfalse
verifiedtrue
officialtrue · xAI
sponsoredfalse
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…
alternatives
/agents/xai-api/alternatives8 listedzai-api, baidu-qianfan, meta-model-api
compare
/compare?a=xai-api&b=zai-api&c=baidu-qianfanwith zai-api, baidu-qianfan