NRVXInference SDK

Documentation

Inference SDK

Add ZK proof verification to any AI inference pipeline. Three lines of code. Sub-second proof generation. On-chain verification.

Installation

terminal
$ npm install @nrvx/sdk

Quick Start

inference.ts
import { NrvxClient } from '@nrvx/sdk';

// Initialize with your API key
const client = new NrvxClient({ apiKey: 'nrvx_...' });

// Run inference with automatic proof generation
const result = await client.prove({
  model: 'risk-scorer-v2',
  input: tokenData,
});

// result.proof    -> ZK proof (288 bytes)
// result.verified -> boolean
// result.proofId  -> on-chain proof ID

API Reference

client.prove(opts)

Run inference and generate a ZK proof. Returns proof bytes, verification status, and on-chain proof ID.

params: model: string, input: any, options?: ProveOptions

client.verify(proofId)

Verify an existing proof by its on-chain ID. Queries the Solana verifier program directly.

params: proofId: string

client.register(model)

Register a model commitment hash on-chain. Required before generating proofs for a new model.

params: model: string, weights: Buffer

client.badge(proofId)

Generate an "NRVX Verified" badge for display. Returns SVG markup and embed code.

params: proofId: string, options?: BadgeOptions

NRVX Verified Badge

NRVX VERIFIED

Display the NRVX Verified badge on your AI product to signal cryptographic proof of inference integrity. Badge auto-validates against on-chain registry.

Request Beta Access

The SDK is currently in private beta. Submit your email to join the waitlist.