Create chat completion
SGL Grid
Create chat completion
OpenAI-compatible chat completion. Set "stream": true for token streaming (SSE; each chunk is end-to-end encrypted). Works with any OpenAI SDK via base_url=https://grid.x402compute.cc/v1. Authenticate with X-API-Key (prepaid credits) or pay per request with the x402 X-Payment header after a 402 challenge.
POST
Create chat completion
Headers
Compute/Grid API key (billed to prepaid credits). Omit to pay per request via x402 X-Payment.
Example:
"x402c_..."
Body
application/json
