Nebius Token Factory · NVIDIA Nemotron Architecture

Developer Documentation & REST API

Complete technical specification for integrating Nimrod-CI into your CI/CD pipelines, IDEs, and security workflows.

Primary Reasoning
nvidia/nemotron-3-super-120b-a12b
Fast Triage & Verify
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B
Threat Intelligence
Tavily Search API
Compiler Safety Gate
Acorn / TS AST Engine

REST API Specification

All endpoints accept standard JSON payloads over HTTPS and return structured, schema-validated JSON responses.

GET/api/healthSystem Monitoring

Returns real-time status of the service, active NVIDIA Nemotron models, environment variable readiness, and endpoint registry.

Response Payload (200 OK)
{
  "status": "ok",
  "service": "Nimrod-CI",
  "version": "1.0.0",
  "models": {
    "primary": "nvidia/nemotron-3-super-120b-a12b",
    "fast": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B"
  },
  "endpoints": [ ... ]
}
GET/api/examplesSecurity Datasets

Provides curated security test fixtures (SQL Injection, Hardcoded API Keys, DOM XSS, Path Traversal, Insecure Deserialization, and Benign controls).

Response Payload (200 OK)
{
  "examples": [
    {
      "id": "sqli",
      "title": "SQL Injection in User Authentication",
      "category": "CWE-89",
      "severity": "critical",
      "language": "javascript"
    }
  ]
}
POST/api/triagenvidia/NVIDIA-Nemotron-3-Nano-30B-A3B

Quickly screens unified diffs to identify high-risk code hunks and filter out harmless styling/refactoring changes before expensive reasoning.

Parameters & Schema

FieldDescription
diffUnified code diff (max 20,000 characters)
languageSource language (e.g. javascript, typescript, python)
Request Body (JSON)
{
  "diff": "--- a/api/login.js\n+++ b/api/login.js\n@@ -10,3 +10,3 @@\n- const q = 'SELECT * FROM users WHERE id = ' + userId;\n+ const q = `SELECT * FROM users WHERE id = ${userId}`;",
  "language": "javascript"
}
Response Payload (200 OK)
{
  "needsDeepAnalysis": true,
  "confidence": 0.98,
  "riskyHunks": [
    {
      "file": "api/login.js",
      "lineStart": 10,
      "flagReason": "Possible SQL injection: unescaped template literal parameter."
    }
  ]
}
POST/api/analyzenvidia/nemotron-3-super-120b-a12b

Executes comprehensive static vulnerability reasoning using NVIDIA Nemotron. Optionally passes fullPipeline: true to receive a complete NimrodReport with verdict and score.

Parameters & Schema

FieldDescription
diffUnified code diff (max 20,000 characters)
languageSource language (e.g. javascript, typescript, python)
riskyHunksOptional hunks pre-filtered by Triage
fullPipelineIf true, returns complete report with verdict, risk score, and stats
Request Body (JSON)
{
  "diff": "--- a/auth.js\n+++ b/auth.js\n@@ -14,2 +14,2 @@\n- const query = 'SELECT * FROM users WHERE id = $1';\n+ const query = 'SELECT * FROM users WHERE id = ' + req.body.id;",
  "language": "javascript",
  "fullPipeline": true
}
Response Payload (200 OK)
{
  "findings": [{
    "id": "fnd_001",
    "severity": "critical",
    "title": "SQL Injection via String Concatenation",
    "cwe": "CWE-89"
  }],
  "report": {
    "verdict": "block",
    "riskScore": 90
  }
}
POST/api/enrichTavily Search API

Enriches detected findings with authoritative CWE and OWASP remediation guidelines, security advisories, and industry documentation. Operates with fail-soft architecture.

Parameters & Schema

FieldDescription
findingsList of Finding objects returned by /api/analyze
languageSource language (e.g. javascript, typescript, python)
Request Body (JSON)
{
  "findings": [{
    "id": "fnd_001",
    "title": "SQL Injection in User Authentication",
    "cwe": "CWE-89",
    "severity": "critical"
  }],
  "language": "javascript"
}
Response Payload (200 OK)
{
  "findings": [{
    "id": "fnd_001",
    "cwe": "CWE-89",
    "references": [{
      "title": "OWASP SQL Injection Prevention Cheat Sheet",
      "url": "https://cheatsheetseries.owasp.org/..."
    }]
  }]
}
POST/api/patchnvidia/nemotron-3-super-120b-a12b

Generates a minimal, non-breaking unified diff and patched source code file. Governed by strict safety rules: never proposes eval, new Function, or shell=True. Enforces the real target file path in the unified diff header.

Parameters & Schema

FieldDescription
findingFinding object to remediate
originalCodeFull or hunk source code
languageSource language (e.g. javascript, typescript, python)
feedbackVerification feedback with CWE and line number for iterative self-repair
Request Body (JSON)
{
  "finding": { "id": "fnd_001", "title": "SQL Injection", "cwe": "CWE-89", "severity": "critical" },
  "originalCode": "function getUser(id) {\n  return db.query('SELECT * FROM users WHERE id=' + id);\n}",
  "language": "javascript"
}
Response Payload (200 OK)
{
  "patch": {
    "findingId": "fnd_001",
    "unifiedDiff": "--- a/getUser.js\n+++ b/getUser.js\n@@ -2,2 +2,2 @@\n-  return db.query('SELECT...' + id);\n+  return db.query('SELECT... $1', [id]);",
    "rationale": "Replaced string concatenation with parameterized SQL query placeholder."
  }
}
POST/api/verifyAcorn/TS Compiler + nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B

Verifies the synthesized patch through a two-stage gate: AST compiler syntax check followed by model re-analysis for any residual weakness. Returns resolved: false with CWE and line in notes, feeding back to /api/patch for an automated retry (up to 2 iterations).

Parameters & Schema

FieldDescription
findingFinding object to remediate
patchSynthesized Patch object
originalCodeOriginal source code
languageSource language (e.g. javascript, typescript, python)
iterationCurrent loop iteration (1 to 2, server-enforced max)
Request Body (JSON)
{
  "finding": { "id": "fnd_001", "cwe": "CWE-89", "severity": "critical" },
  "patch": { "findingId": "fnd_001", "patchedCode": "db.query('SELECT * FROM users WHERE id = $1', [id]);" },
  "originalCode": "db.query('SELECT * FROM users WHERE id=' + id);",
  "language": "javascript",
  "iteration": 1
}
Response Payload (200 OK)
{
  "verification": {
    "findingId": "fnd_001",
    "patchApplied": true,
    "syntaxValid": true,
    "reanalysis": { "resolved": true, "notes": "Parameterized query successfully neutralizes SQL injection vector." },
    "iterations": 1,
    "status": "verified"
  }
}
GET/api/githubGitHub REST API v3

Parses any GitHub Pull Request URL, fetches PR metadata, unified diff, and primary modified source files directly from GitHub.

Parameters & Schema

FieldDescription
urlGitHub PR URL (e.g. https://github.com/jammar24/Nimrod-CI/pull/1)
tokenOptional GitHub Personal Access Token (for private repos or higher rate limits)
Response Payload (200 OK)
{
  "success": true,
  "data": {
    "owner": "jammar24",
    "repo": "Nimrod-CI",
    "pullNumber": 1,
    "title": "Fix SQL injection in authentication route",
    "diff": "--- a/routes/users.js\n+++ b/routes/users.js\n...",
    "files": [{ "filename": "routes/users.js", "status": "modified" }]
  }
}
POST/api/githubGitHub Git Data API

Creates a security remediation branch, commits the verified patch, and opens an automated Pull Request with full analysis notes directly on GitHub.

Parameters & Schema

FieldDescription
actionMust be "create-pr" or "fetch-pr"
ownerRepository owner handle
repoRepository name
filePathRelative path of patched file
patchedContentComplete source code with security fix applied
tokenGitHub Personal Access Token (PAT) with repo scope
Request Body (JSON)
{
  "action": "create-pr",
  "owner": "jammar24",
  "repo": "Nimrod-CI",
  "baseBranch": "main",
  "newBranch": "nimrod-ci/fix-sqli",
  "filePath": "routes/users.js",
  "patchedContent": "const query = 'SELECT * FROM users WHERE id = $1';",
  "prTitle": "[Nimrod-CI] Security Patch: Fix SQL injection",
  "token": "ghp_xxxxxxxxxxxx"
}
Response Payload (200 OK)
{
  "success": true,
  "data": {
    "prNumber": 42,
    "prUrl": "https://github.com/jammar24/Nimrod-CI/pull/42",
    "branch": "nimrod-ci/fix-sqli"
  }
}