@singularity-layer/grid is the official TypeScript/JavaScript client for SGL Grid. Typed methods over the grid’s HTTP API; zero dependencies; native fetch (Node ≥ 18, modern browsers, edge runtimes).
| npm | @singularity-layer/grid |
| Source | github.com/Singularity-Layer/sgl-network-sdk-ts |
| License | MIT |
Install
Quick start
Configuration
- No key → public reads (
capacity,models,pricing) work. - API key → required for
submitJob,getJob,getAttestation, and billed chat. Create keys in the dashboard (see Billing).
Discovery (no auth)
Chat completions
Jobs + attestation
Error handling
Or use the OpenAI SDK
The grid is OpenAI-compatible — skip this client if you just want drop-in chat:@singularity-layer/grid for grid-native features (capacity, pricing, jobs, attestation). See the API guide and the Python SDK.