Integrate with our API
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.
GET /v1/discover?needs_residential=true&needs_sha=true
// Returns a list of endpoints with prices and SLAs
POST /v1/handshake
{
"endpoint": "ep-gpt-01",
"budget": {"NC": 20},
"stake": {"NEUT": 10}
}
POST /v1/call
{
"session": "session-a1b2",
"messages": [{"role": "user", "content": "Hello"}]
}
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.