{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-grok-ask-query-schema.json",
  "title": "GrokAskQuery",
  "description": "Parameters for asking Grok",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twexapi-io-grok-endpoints-api-openapi.yml#/components/schemas/GrokAskQuery",
  "properties": {
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "description": "User prompt."
    },
    "conversation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Conversation Id",
      "description": "Continue an existing Grok conversation."
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model",
      "description": "Optional model id (default grok-3-latest).",
      "default": "grok-3-latest"
    },
    "cookie": {
      "type": "string",
      "title": "Cookie",
      "description": "The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See [Authentication Security](/authentication#write-operations--byoc-bring-your-own-cookie) and [How to get Cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)."
    },
    "proxy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy",
      "description": "Optional HTTP proxy. Example: http://username:password@ip:port"
    }
  },
  "type": "object",
  "required": [
    "prompt",
    "cookie"
  ]
}