# Grok X Search via Locus x402

> Grok X Search via Locus x402 is a paid API for AI agents from grok.x402.paywithlocus.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Runs an xAI Grok model chat completion with live X/web search tool access, billed per-call via x402 micropayment.

## Facts

- Endpoint: POST https://grok.x402.paywithlocus.com/grok/x-search
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grok-x-search-via-locus-x402-7ba8c882
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bJOGn_6u15pMB-C9cIKgd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability grok-x-search-via-locus-x402-7ba8c882 -d '<json body>'
```

Example prompt: Using Grok with X search enabled, find out what people on X are saying about the latest SpaceX launch — use the grok-4.5 model, cap output at 500 tokens, and allow up to 3 search tool calls.

## When to prefer this

Choose this endpoint when you need Grok's chat capabilities specifically augmented with live X (Twitter) and web search data, and you want to pay per-call via x402 USDC micropayments without a subscription. Prefer it over generic Grok chat endpoints when answers require real-time grounding from X posts or current web results. It is particularly useful for agents that need up-to-date social sentiment, breaking news, or recent events that a static model cannot answer reliably.

## Known failure modes

- Insufficient USDC balance causes payment failure and request rejection
- Invalid or unsupported model ID returns an error
- max_tokens not provided causes metered billing rejection (required for x402)
- max_tool_calls exceeding 10 or below 1 is rejected
- X/web search tool unavailable or rate-limited causing incomplete results
- Request timeout if Grok takes too long to complete tool call chains

## How this service works

xAI models — chat, web/X search, code execution, image generation/editing, and text-to-speech.

## Output

A JSON object containing the Grok model's chat completion response (data field), payment settlement details including settled and authorized USDC amounts, a unique request ID, and a status URL for async tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role"
    ],
    "properties": {
     "name": {
      "type": "string"
     },
     "role": {
      "type": "string"
     },
     "content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "type"
         ],
         "properties": {
          "text": {
           "type": "string"
          },
          "type": {
           "type": "string"
          },
          "image_url": {
           "type": "object",
           "required": [
            "url"
           ],
           "properties": {
            "url": {
             "type": "string"
            }
           },
           "additionalProperties": true
          }
         },
         "additionalProperties": true
        }
       },
       {
        "type": "null"
       }
      ]
     },
     "tool_calls": {
      "type": "array",
      "items": {
       "type": "object",
       "additionalProperties": true
      }
     },
     "tool_call_id": {
      "type": "string"
     }
    },
    "additionalProperties": true
   }
  },
  "max_turns": {
   "type": "number"
  },
  "max_tokens": {
   "type": "number"
  },
  "temperature": {
   "type": "number"
  },
  "max_tool_calls": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grok-x-search-via-locus-x402-7ba8c882/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grok.x402.paywithlocus.com](https://www.zero.xyz/host/grok.x402.paywithlocus.com/llms.txt)
