https://grid.x402compute.cc/v1
Quickstart (cURL)
Drop-in with the OpenAI SDK
Authentication
Pass one of:X-API-Key: <key>— scoped API key (recommended for servers/agents)- a session bearer token (dashboard)
- a per-request wallet signature
Paying
- API key / credits — billed to the key’s wallet at exact token cost.
- x402 — sign a USDC payment per request (Solana or Base). See Billing.
Notes
- Request/response shapes match OpenAI Chat Completions (
model,messages,max_tokens,temperature,usage). - For maximum privacy (browser-side end-to-end encryption), use the dashboard/SDK confidential path — see Confidential inference.
- Streaming (
stream: true) is on the roadmap; today setstream: false.
List available models with
GET https://grid.x402compute.cc/grid/models — see Models.