Skip to main content
SGL Grid implements the OpenAI Chat Completions API. If your code already uses the OpenAI SDK, point it at the Grid and it works. Base URL: 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
See Wallet & auth.

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 set stream: false.
List available models with GET https://grid.x402compute.cc/grid/models — see Models.