Grok
Grok Chat
Send a prompt to X's in-app Grok as the account behind your session and get back one complete JSON document: the answer text, the web pages Grok cited while writing it, and the searches it ran to find them. Grok reads X in real time, so it answers about posts and accounts a general-purpose model has never seen. Send a bare post URL as the message and you get a structured summary of that post instead, including what Grok reads out of its attached images. Billed at $0.0040 per answer. Cost: $0.0040 per call.
post/grok/chat
Request
- Base URL: https://api.twitterapis.com/twitter
- URL: https://api.twitterapis.com/twitter/grok/chat
- Auth: HTTP bearer
Request body
Example request
{
"message": "What are people on X saying about the WWDC keynote today?",
"messages": "[{\"role\":\"user\",\"content\":\"Who won the game?\"},{\"role\":\"assistant\",\"content\":\"The Celtics, 112-108.\"}]",
"mode": "auto",
"conversation_id": "2088999211077345534"
}Response
Ask X's Grok a question and get the answer plus the pages it cited.
Changes
No recorded changes to this operation across all 1 revision of this API.