Grok Code (x402 Gateway) is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.040000/call, status unknown (last checked 2026-10-11, last successful call 2026-05-15).
Calls xAI's Grok code-specialized model for fast code generation, analysis, and technical tasks via x402 micropayment gateway
xAI's code-specialized model — fast code generation and analysis
Returns AI-generated code, code explanations, debugging suggestions, or technical analysis from xAI's Grok model optimized for code tasks. Output is typically structured as the model's text response containing code blocks, inline explanations, and/or step-by-step reasoning.
POSThttps://x402-gateway-production.up.railway.app/api/llm/grok-code?utm_source=zero.xyzChoose this endpoint when you need fast, code-focused AI generation or analysis and want to pay per call without a subscription. Prefer over general-purpose LLMs when the task is predominantly code (generation, debugging, refactoring, explanation). Prefer over Mistral Codestral sibling if you specifically want xAI's Grok model characteristics. Best for agentic workflows where code tasks are dynamic and billing should be usage-based via USDC micropayments.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"