{"uid":"cap_bJOGn_6u15pMB-C9cIKgd","slug":"grok-x-search-via-locus-x402-7ba8c882","name":"Grok X Search via Locus x402","description":"xAI models — chat, web/X search, code execution, image generation/editing, and text-to-speech.","url":"https://grok.x402.paywithlocus.com/grok/x-search","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-sEI60JkqIvodxt7O4uvO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs an xAI Grok model chat completion with live X/web search tool access, billed per-call via x402 micropayment.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Real-time X sentiment on a stock","prompt":"Search X right now for what people are saying about $NVDA earnings — use Grok grok-4.5, limit to 400 tokens and 3 tool calls, and give me a quick sentiment summary."},{"title":"Breaking news research for a newsletter","prompt":"I need a quick briefing on the latest developments in the EU AI Act — use Grok with web and X search, grok-4.5 model, up to 600 tokens and 5 tool calls."},{"title":"Fact-check a viral X claim","prompt":"Can you use Grok's X search to check whether this claim going viral is accurate: 'Apple is acquiring OpenAI' — grok-4.5, 300 tokens max, 2 tool calls."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:30:51.236Z","isFirstParty":false}