NEXUS-MM API Documentation

v9.1.0 · Orientation-Aware Universal Learning Engine

A world model that learns physics from scratch and tells robots when to stop, slow down, or go.

Get Started Free View Pricing

Developer Quickstart

To make a robot safe, you need to call one of these endpoints based on your robot's sensor capabilities.

1. POST /api/robot/decide (Simple)

Use this if your robot only knows its surface and speed.

{ "surface": "ice", "speed": 0.8, "action": "move_forward" }

Returns: { "action": "stop", "risk": 0.95 }

2. POST /api/perceive (Full)

Use this if your robot has a camera, IMU, and encoders.

{ "visual": { "surface_hint": "ice" }, "motion": { "speed": 0.8, "slip_ratio": 0.35, "tilt": 5.0 } }

Returns: { "primary_action": "stop", "overall_risk": 0.95 }

3. POST /api/robot/train (Feedback)

Use this to tell NEXUS if it was right or wrong.

{ "predicted": { "risk": 0.4, "action": "slow_down" }, "actual": { "slipped": true } }
ℹ️ Authentication: Add your API key to the header: X-API-Key: nxk_your_key_here

What is NEXUS-MM?

NEXUS-MM is a universal learning engine for robots. You send it a surface type and the robot's current speed. It returns a safe decision — go, slow_down, stop, or caution — along with a risk score.

What you get with every call

  • Decision — the action the robot should take
  • Risk score — 0.0 (safe) to 1.0 (critical)
  • Risk level — safe, moderate, high, or critical
  • Confidence — how sure NEXUS is about the decision

Designed for

  • Warehouse AGVs
  • Construction quadrupeds
  • Racing humanoids
  • Delivery robots
  • Any robot that moves on varying surfaces

Quick Start — Python SDK

The fastest way to get NEXUS-MM running in your robot.

Install

pip install nexus-mm-sdk

Set your API key

After subscribing, copy your API key from the dashboard and set it as an environment variable:

export NEXUS_API_KEY="nxk_your_key_here"

Ask NEXUS for a decision

from nexus_sdk import NexusRobot robot = NexusRobot() # reads NEXUS_API_KEY from environment # What should the robot do on ice at 0.8 m/s? d = robot.decide(action="move_forward", surface="ice", speed=0.8) print(d.action) # "stop" print(d.risk) # 0.75 print(d.risk_level) # "critical" print(d.confidence) # 0.92 # Check backend health print(robot.health()) # {'status': 'healthy', 'version': '9.1.0', ...}

With obstacle awareness

d = robot.decide( action="move_forward", surface="concrete", speed=0.5, distance_to_obstacle=1.2 ) # Backend applies hard safety override if the obstacle is too close print(d.action) # "stop"
💡 Tip: Call decide() at least 5–10 times per second for smooth control. NEXUS is fast (~80 ms per call).

Quick Start — REST API

If you're not using Python, call NEXUS directly over HTTP.

Endpoint

POST https://api.nexusmm.site/api/robot/decide

Example with curl

curl -X POST https://api.nexusmm.site/api/robot/decide \ -H "Content-Type: application/json" \ -H "X-API-Key: nxk_your_key_here" \ -d '{ "action": "move_forward", "surface": "ice", "speed": 0.8 }'

Response

{ "action": "stop", "risk": 0.75, "risk_level": "critical", "confidence": 0.92, "surface": "ice", "speed": 0.8 }

Example with JavaScript

const res = await fetch("https://api.nexusmm.site/api/robot/decide", { method: "POST", headers: { "Content-Type": "application/json", "X-API-Key": "nxk_your_key_here" }, body: JSON.stringify({ action: "move_forward", surface: "ice", speed: 0.8 }) }); const decision = await res.json(); console.log(decision.action); // "stop" console.log(decision.risk); // 0.75

Authentication

Every API request must include your API key in the X-API-Key header. Your key starts with nxk_ (paid tiers) or nxk_demo_ (demo keys).

Getting your API key

  • Demo key (free trial): click the banner on the homepage. One key per IP, resets monthly.
  • Paid key: log in to nexusmm.site/login, then copy the key from your dashboard.
⚠️ Security: Never share your API key. Never commit it to Git. Always call the API over HTTPS — your key travels in a header and must never be sent over plain HTTP.

Dashboard vs API access

Access typeAuthenticationFree?
DashboardJWT (from login)Yes — free forever
Demo SDK / APIX-API-Key: nxk_demo_...Yes — 250 calls/month, no signup
Paid SDK / APIX-API-Key: nxk_...No — paid tier required

API Reference

POST /api/robot/decide

Main decision endpoint. Returns a safe action for the current robot state.

Request body

FieldTypeRequiredDescription
actionstringYesmove_forward | turn_left | turn_right | reverse | stop
surfacestringYesSurface type (see Supported Surfaces)
speedfloatYesSpeed in m/s (0.0–2.0 recommended)
distance_to_obstaclefloatNoDistance to obstacle in meters

Response fields

FieldTypeDescription
actionstringgo | slow_down | stop | caution
riskfloat0.0 (safe) to 1.0 (critical)
risk_levelstringsafe | moderate | high | critical
confidencefloat0.0 to 1.0
surfacestringSurface type used for the decision
speedfloatSpeed used for the decision

POST /api/perceive

Full perception endpoint for robots with a camera, IMU, and wheel encoders. Combines visual, motion, and surface signals into a single fused safety decision.

Example

curl -X POST https://api.nexusmm.site/api/perceive \ -H "Content-Type: application/json" \ -H "X-API-Key: nxk_your_key_here" \ -d '{ "visual": { "surface_hint": "ice" }, "motion": { "speed": 0.8, "slip_ratio": 0.35, "tilt": 5.0 } }'

Request body

FieldTypeRequiredDescription
visual.surface_hintstringNoSurface type inferred from camera (see Supported Surfaces)
visual.obstacle_distancefloatNoDistance to nearest obstacle in meters
motion.speedfloatYesSpeed in m/s
motion.slip_ratiofloatNoEstimated slip ratio 0.0–1.0 from encoders
motion.tiltfloatNoTilt in degrees from IMU

Response fields

FieldTypeDescription
primary_actionstringgo | slow_down | stop | caution — fused recommendation
overall_riskfloatFused risk across all channels, 0.0–1.0
confidencefloat0.0 to 1.0
channels.visualobjectPer-channel breakdown: surface, risk, action
channels.motionobjectPer-channel breakdown: slip, tilt, risk, action
channels.surfaceobjectPer-channel breakdown: surface type, friction band, risk

Sample response

{ "primary_action": "stop", "overall_risk": 0.95, "confidence": 0.94, "channels": { "visual": { "surface": "ice", "risk": 0.92, "action": "stop" }, "motion": { "slip_ratio": 0.35, "tilt": 5.0, "risk": 0.88, "action": "slow_down" }, "surface": { "surface": "ice", "friction_band": "critical", "risk": 0.95 } } }
ℹ️ When to use it: Use /api/perceive when you can supply at least two of the three channels. If you only have surface and speed, /api/robot/decide is cheaper and faster.

GET /api/usage/status

Check your current usage. Requires JWT.

curl https://api.nexusmm.site/api/usage/status \ -H "Authorization: Bearer YOUR_JWT"
{ "success": true, "tier": "Starter", "runs_used_this_month": 12, "runs_limit_monthly": 500, "subscription_status": "active", "api_key": "nxk_..." }

GET /api/subscription

Check subscription details. Requires JWT.

curl https://api.nexusmm.site/api/subscription \ -H "Authorization: Bearer YOUR_JWT"

Supported Surfaces

NEXUS-MM categorizes surfaces into friction bands. Lower friction surfaces are riskier for robots. Each surface returns the appropriate risk level for the current speed.

Friction categoryExample surfacesTypical decision
High frictionconcrete, tile, wood, carpet, grass, rockygo
Moderate frictiongravel, sand, rubble, debrisslow_down
Low frictionwet_floor, mud, metal, ash, snowstop
Critical (near-zero)ice, slippery, oil, oil_spill, waterstop

You can pass any of the surface names above to the surface field.

Risk Levels

Every response includes a risk score between 0.0 and 1.0, and a risk level that maps to a decision.

Risk levelMeaningDecision
safeProceed normallygo
moderateProceed with cautionslow_down
highReduce speed significantlycaution
criticalStop immediatelystop
ℹ️ Hard safety overrides: Regardless of previous state, NEXUS forces stop when the computed risk crosses the critical threshold, and slow_down when it crosses the high threshold. Exact thresholds are proprietary and tuned per deployment.

Training Your Model

Training is available on Pro, Business, and Enterprise tiers only. Demo and Starter keys cannot access training endpoints.

Training lets you feed real-world outcomes back into NEXUS so it learns. Send NEXUS what it predicted plus what actually happened. NEXUS records corrections and flags discoveries.

POST /api/robot/train

curl -X POST https://api.nexusmm.site/api/robot/train \ -H "Content-Type: application/json" \ -H "X-API-Key: nxk_your_key_here" \ -d '{ "predicted": { "surface": "concrete", "speed": 0.5, "action": "go" }, "actual": { "surface": "concrete", "speed": 0.5, "action": "go", "outcome": "success", "notes": "robot crossed without slipping" } }'

Response

{ "success": true, "learning_occurred": true, "corrections_count": 3, "discoveries_count": 1, "unknown_detected": false, "modules_affected": ["surfaces", "materials"], "message": "Learning complete: 3 corrections, 1 discoveries flagged" }

GET /api/train/modules

See which modules have been trained and their accuracy.

curl https://api.nexusmm.site/api/train/modules \ -H "X-API-Key: nxk_your_key_here"

GET /api/discoveries

See what NEXUS has discovered from training — new surfaces, new materials, unexpected behaviors.

curl https://api.nexusmm.site/api/discoveries \ -H "X-API-Key: nxk_your_key_here"

Sample response

{ "success": true, "count": 2, "discoveries": [ { "id": "disc_7f3a9c", "type": "new_surface", "surface": "oil_spill", "detected_at": "2026-11-02T14:21:09Z", "confidence": 0.87, "notes": "Not present in initial friction catalogue" }, { "id": "disc_2b1e44", "type": "unexpected_behavior", "surface": "gravel", "detected_at": "2026-11-04T09:03:51Z", "confidence": 0.71, "notes": "Slip ratio higher than expected at low speed" } ] }

Tiers & Limits

All prices are in Nigerian Naira (NGN). International cards are converted automatically by your bank at checkout.

TierPrice (NGN/mo)API calls / monthTraining
Free₦00 (dashboard only)No
Demo₦0 (no signup)250No
Starter₦1,500500No
Pro₦13,5002,000Yes
Business₦43,50010,000Yes
EnterpriseContact UsCustomYes

Demo Keys

Every IP address gets one demo key for life. Click the banner on the homepage to get it — no signup required.

  • One key per IP, forever — clicking again returns the same key, not a new one
  • 250 calls per month, resets automatically on the 1st of every month at midnight UTC
  • When exhausted: HTTP 403 until the next month, or upgrade to a paid tier for more calls
  • Restrictions: no access to /api/train/* endpoints (CPU protection)
ℹ️ Counter reset: Usage counters reset on the 1st of every month at midnight UTC for all tiers.
⚠️ Hitting the limit: Your next call returns HTTP 429 (paid) or HTTP 403 (demo). Your data and key are safe. Upgrade to continue.

Error Handling

HTTPMeaningAction
200SuccessParse the response
400Bad requestCheck your JSON body
401Invalid or missing API keyCheck X-API-Key header
403Free tier — no API accessUpgrade to Starter or higher
403Demo key exhausted this monthWait for reset on the 1st, or upgrade
403Demo key on training endpointUpgrade to Pro or higher
403Training on lower tierUpgrade to Pro+
429Monthly limit reachedUpgrade or wait for reset
500Server errorRetry after 30 seconds

Error response shape

{ "success": false, "error": "Free tier has no SDK/API access. Please upgrade your plan.", "code": 403 }

Retry strategy

  • 500: retry up to 3 times with a 5-second delay
  • 429 / 403 limit: do not retry — upgrade or wait for reset
  • 401 / 403 auth: do not retry — check credentials or upgrade

Billing

  • Processor: Paystack
  • Currency: Nigerian Naira (NGN)
  • Accepted: Visa, Mastercard, Verve, bank transfer, USSD, international cards (auto-converted)
  • Billing cycle: Monthly, on the same day each month
  • Cancel: From your dashboard → Cancel Subscription
  • Refunds: Contact support within 7 days
  • Receipts: Sent by Paystack to your email

Support

Email: support@nexusmm.site

Phone: +234 706 127 2962(Mon–Fri, 9am–5pm WAT)

LinkedIn: Daniel Engineers on LinkedIn

Response time: Within 24 hours on business days.

Include in your message:

  • Your account email
  • The endpoint you called
  • The exact error message
  • The X-Request-ID header from the failed response

Quick Reference

API base URL https://api.nexusmm.site
Main endpoint POST /api/robot/decide
Full perception POST /api/perceive
Auth header X-API-Key: nxk_...
Demo key click banner on homepage
Dashboard nexusmm.site
Signup nexusmm.site/signup
Subscribe nexusmm.site/subscribe
Email support@nexusmm.site
Phone +234 706 127 2962
LinkedIn Daniel Engineers