Developer Documentation

Integrate with our API

Getting Started

The NeutralNet SDK provides a simple interface for discovering endpoints, performing economic handshakes, invoking AI calls and settling usage. Use the examples below to integrate quickly.

Discovery

GET /v1/discover?needs_residential=true&needs_sha=true
// Returns a list of endpoints with prices and SLAs

Handshake

POST /v1/handshake
{
  "endpoint": "ep-gpt-01",
  "budget": {"NC": 20},
  "stake": {"NEUT": 10}
}

Invocation

POST /v1/call
{
  "session": "session-a1b2",
  "messages": [{"role": "user", "content": "Hello"}]
}

Settlement

POST /v1/settle
{
  "session": "session-a1b2"
}

See the full API reference for detailed documentation and error codes. The SDK is available in TypeScript, Python and Go.