Grok API guide
grok.com
Ask Grok questions, reopen past conversations, pin chats for quick access, and generate images from text prompts.
Actions and inputs
grok askSend a prompt and wait for Grok’s reply.
Inputs Prompt, optional new chat
grok detailOpen one of your past conversations and read its messages.
Inputs Conversation ID
grok pinPin a conversation visible in your sidebar.
Inputs Conversation ID
grok imageGenerate an image from a text prompt.
Inputs Prompt, optional new chat
Grok conversation
- Create
Start a new Grok conversation with your first prompt.
Inputs Prompt
- Read
Read the messages in one of your Grok conversations.
Inputs Conversation ID
- Update
Pin or unpin your Grok conversation in the sidebar.
Inputs Conversation ID, pin or unpin
- Delete
Delete your Grok conversation from the sidebar after confirming.
Inputs Conversation ID, confirmation