NEXUS-MM API Documentation
A world model that learns physics from scratch and tells robots when to stop, slow down, or go.
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.
Returns: { "action": "stop", "risk": 0.95 }
2. POST /api/perceive (Full)
Use this if your robot has a camera, IMU, and encoders.
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.
X-API-Key: nxk_your_key_hereWhat 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
Set your API key
After subscribing, copy your API key from the dashboard and set it as an environment variable:
Ask NEXUS for a decision
With obstacle awareness
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
Example with curl
Response
Example with JavaScript
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.
Dashboard vs API access
| Access type | Authentication | Free? |
|---|---|---|
| Dashboard | JWT (from login) | Yes — free forever |
| Demo SDK / API | X-API-Key: nxk_demo_... | Yes — 250 calls/month, no signup |
| Paid SDK / API | X-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
| Field | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | move_forward | turn_left | turn_right | reverse | stop |
| surface | string | Yes | Surface type (see Supported Surfaces) |
| speed | float | Yes | Speed in m/s (0.0–2.0 recommended) |
| distance_to_obstacle | float | No | Distance to obstacle in meters |
Response fields
| Field | Type | Description |
|---|---|---|
| action | string | go | slow_down | stop | caution |
| risk | float | 0.0 (safe) to 1.0 (critical) |
| risk_level | string | safe | moderate | high | critical |
| confidence | float | 0.0 to 1.0 |
| surface | string | Surface type used for the decision |
| speed | float | Speed 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
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| visual.surface_hint | string | No | Surface type inferred from camera (see Supported Surfaces) |
| visual.obstacle_distance | float | No | Distance to nearest obstacle in meters |
| motion.speed | float | Yes | Speed in m/s |
| motion.slip_ratio | float | No | Estimated slip ratio 0.0–1.0 from encoders |
| motion.tilt | float | No | Tilt in degrees from IMU |
Response fields
| Field | Type | Description |
|---|---|---|
| primary_action | string | go | slow_down | stop | caution — fused recommendation |
| overall_risk | float | Fused risk across all channels, 0.0–1.0 |
| confidence | float | 0.0 to 1.0 |
| channels.visual | object | Per-channel breakdown: surface, risk, action |
| channels.motion | object | Per-channel breakdown: slip, tilt, risk, action |
| channels.surface | object | Per-channel breakdown: surface type, friction band, risk |
Sample response
/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.
GET /api/subscription
Check subscription details. Requires 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 category | Example surfaces | Typical decision |
|---|---|---|
| High friction | concrete, tile, wood, carpet, grass, rocky | go |
| Moderate friction | gravel, sand, rubble, debris | slow_down |
| Low friction | wet_floor, mud, metal, ash, snow | stop |
| Critical (near-zero) | ice, slippery, oil, oil_spill, water | stop |
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 level | Meaning | Decision |
|---|---|---|
| safe | Proceed normally | go |
| moderate | Proceed with caution | slow_down |
| high | Reduce speed significantly | caution |
| critical | Stop immediately | stop |
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
Response
GET /api/train/modules
See which modules have been trained and their accuracy.
GET /api/discoveries
See what NEXUS has discovered from training — new surfaces, new materials, unexpected behaviors.
Sample response
Tiers & Limits
All prices are in Nigerian Naira (NGN). International cards are converted automatically by your bank at checkout.
| Tier | Price (NGN/mo) | API calls / month | Training |
|---|---|---|---|
| Free | ₦0 | 0 (dashboard only) | No |
| Demo | ₦0 (no signup) | 250 | No |
| Starter | ₦1,500 | 500 | No |
| Pro | ₦13,500 | 2,000 | Yes |
| Business | ₦43,500 | 10,000 | Yes |
| Enterprise | Contact Us | Custom | Yes |
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)
Error Handling
| HTTP | Meaning | Action |
|---|---|---|
| 200 | Success | Parse the response |
| 400 | Bad request | Check your JSON body |
| 401 | Invalid or missing API key | Check X-API-Key header |
| 403 | Free tier — no API access | Upgrade to Starter or higher |
| 403 | Demo key exhausted this month | Wait for reset on the 1st, or upgrade |
| 403 | Demo key on training endpoint | Upgrade to Pro or higher |
| 403 | Training on lower tier | Upgrade to Pro+ |
| 429 | Monthly limit reached | Upgrade or wait for reset |
| 500 | Server error | Retry after 30 seconds |
Error response shape
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-IDheader from the failed response
Quick Reference
https://api.nexusmm.sitePOST /api/robot/decidePOST /api/perceiveX-API-Key: nxk_...