xAI (Grok)
communityAI company founded by Elon Musk developing Grok, an AI assistant with real-time internet access and X (Twitter) integration. Offers conversational AI via API with capabilities including text generation, image understanding, code assistance, and real-time information retrieval.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
/v1/chat/completionsInteract with Grok AI models
Parameters
modelgrok-3|grok-3-mini|grok-vision-beta (stringrequiredstreambooleanoptionalmessagesarray of {rolerequired— content} (required)max_tokensintegeroptionaltemperaturefloat 0-2optionalReturns
choices[{message{role, content}, finish_reason}], usage{prompt_tokens, completion_tokens}GET
/v1/modelsList available Grok models
Returns
data[] with id, object, created, owned_by