Skip to main content
POST
Ask Grok

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parameters for asking Grok

prompt
string
required

User prompt.

Example:

"Say hi in one sentence."

Twitter authentication cookie or Twitter auth_token, how-to-get-twitter-cookie

Example:

"ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"

conversation_id
string | null

Continue an existing Grok conversation.

Example:

"2076320454898278729"

model
string | null
default:grok-3-latest

Optional model id (default grok-3-latest).

Example:

"grok-3-latest"

proxy
string | null

Optional HTTP proxy. Example: http://username:password@ip:port [blocked]

Example:

"http://username:password@ip:port"

Response

Grok response result.

Response for asking Grok

code
integer
required

Response code

Example:

200

msg
string
required

Response message

Example:

"success"

data
GrokAskResult · object | null

Grok result