Verified JSON from every NIM call

CaliperGate compiles JSON Schema 2020-12 into TensorRT-LLM token masks and checks NeMo Guardrails before responses leave your GPU cluster.

Built for NVIDIA NIM, TensorRT-LLM and Triton Inference Server.

One gateway in front of NIM. Every schema compiled once and enforced on every token.

CaliperGate / Contracts
  • L3Llama 3.3 70Binvoice-schema.jsonStrict28
  • N4Nemotron 49Bclaim-triage.yamlStrict42
  • L3Llama 3.3 70Border-router.jsonVerified19
  • N4Nemotron 49Brefund-tool.jsonPolicy cap16
  • M8Mistral 8x22Baudit-event.jsonVerified22
calipergate/cli bash main
~/cg$calipergate verify inv.json
4 of 4 checks
schema.refs28 stok
nim.guidedstrictok
nemo.pii0 hitsok
nemo.toolsallowok
Schemavalid(0 err)
Railsallowed(0 hit)
Verifiedstatus: 200
~/cg$

Four contract checks before a response ships. No retry loops in application code.

Compiles $ref and allOf for NIM

CaliperGate flattens nested JSON Schema 2020-12 definitions and injects strict additionalProperties rules into nvext.guided_json.

JScompile.js JSONnim.json strict
const out = compileForNim(spec, {
  model: "llama-3.3-70b",
  strict: true
});
out.nvext.guided_json;
Flattened $defs into nvext.guided_json.

Catches breaking schema edits in CI

Compare OpenAPI 3.1 and JSON Schema revisions on every pull request and export breaking changes as SARIF 2.1.0 diagnostics.

calipergate examples/invoice.json +1+2−1−1
@@ -14,4 +14,5 @@ "Invoice"
15 "currency": ["USD", "EUR", "GBP"],
15 "currency": ["USD", "EUR"],
1616 "required": ["id", "total"]
16 "required": ["id", "total", "tax"]
CG CaliperGate CI SARIF Flagged
Enum narrowed and required field added.

Enforces NeMo Guardrails inline

Block leaked API keys, prompt override strings, disallowed tool names and out-of-range numeric fields before downstream execution.

NeMo Guardrails policy
4 of 4 on
  • Block PII and API secretsSSN, nvapi- and sk- tokens
  • Block prompt overrideShell escapes and override strings
  • Enforce tool allowlistRejects unlisted tool_name values
  • Numeric bounds checkCaps total_usd at policy limit

Routes OpenAI clients through the gateway

Point any OpenAI SDK at the CaliperGate proxy to attach compiled guided_json masks and return X-CaliperGate-Status headers.

  • invoice_v1 verifiedLlama 3.3 70B · 28 FSM states
  • NRTool call rejecteddrop_database blocked by allowlist
  • SARIF report exported3 breaking edits flagged on PR

Built for NVIDIA inference stacks. From OpenAPI spec to GPU token mask.

Every request compiles once into a deterministic finite-state mask for TensorRT-LLM and passes NeMo Guardrails before leaving the cluster.

nvext.guided_jsonCompiles $ref and allOf into deterministic GPU token masks
TensorRT-LLM FSM
JSON Schema 2020-12Enforces strict additionalProperties across nested arrays
$ref + allOf
NeMo GuardrailsBlocks leaked secrets, prompt overrides and unlisted tools
PII + tool gate
SARIF 2.1.0 diffsFlags breaking contract changes inside pull request checks
CI contract diff
OpenAI proxy routeDrop-in baseURL with X-CaliperGate-Status verification headers
/v1/chat/completions

28 statesMedian invoice FSM graph

< 25 usPer-token logit mask budget

0 retriesStrict additionalProperties

HTTP 422Deterministic rail rejection

Three CLI commands from schema to cluster. Run locally or in front of Triton.

Compile schemas into NIM contracts

Resolve local $ref pointers, flatten allOf objects and emit a ready-to-send nvext.guided_json request template with FSM state counts.

SHcompile NIM
$ calipergate compile inv.json
  --model llama-3.3-70b
{ "name": "inv", "st": 28 }
Emits nvext.guided_json mask.

Integrations for the stack you already run. Drop-in NIM gateway and CI checks.

Nvidia
NVIDIA NIM
nvext.guided_json
OpenAPI
OpenAPI 3.1
Component schemas
Docker
Docker
Sidecar container
Kubernetes
Kubernetes
NIM Operator ingress
GitHub
GitHub Actions
SARIF 2.1.0 diffs
Typescript
TypeScript
OpenAI SDK baseURL
Python
Python
Pydantic & FastAPI
OpenTelemetry
OpenTelemetry
Contract trace spans

Pricing for edge and cluster gateways. Open source CLI or managed control plane.

Open Source

Apache-2.0
$0/ month

Apache-2.0 CLI, schema compiler and local NIM proxy for single-node GPU deployments.

  • JSON Schema 2020-12 and OpenAPI 3.1 compiler
  • nvext.guided_json attachment for NIM and Triton
  • NeMo Guardrails PII, prompt override and tool checks
  • SARIF 2.1.0 breaking-change diff in CI
Read CLI docs

Questions teams ask first

Does CaliperGate replace TensorRT-LLM guided decoding?

No. CaliperGate compiles your JSON Schema 2020-12 or OpenAPI 3.1 contract into the strict nvext.guided_json request body that TensorRT-LLM and NVIDIA NIM execute on the GPU, then verifies guardrails before returning the response.

Does the CaliperGate proxy require OpenAI SDK rewrites?

No. Point your existing OpenAI SDK baseURL at the CaliperGate gateway and pass a schema_id or response_format.json_schema object.

What happens when a model output violates a guardrail?

CaliperGate blocks the response with HTTP 422, sets X-CaliperGate-Status to rejected and returns the exact rail and JSON path that failed.

Can the CaliperGate CLI run offline in CI?

Yes. The CLI runs locally with zero network calls to compile schemas, verify test outputs and emit SARIF 2.1.0 reports for pull requests.

Schema compliance Strict mode
100% 0 retries with guided_json