How Locus API works

One call. Every modality.

Adding AI to a mobile app today means four separate integrations — speech, vision, an LLM, and orchestration between them — four billing relationships, and four to eight weeks before you write the first line of actual app logic. It still fails when the device goes offline.

Locus eliminates all of that. One SDK. One call. The inference runs at the edge — on the device's NPU, private by default, offline-capable. iOS and Android. The foundation model cost is bundled in. Cloud escalates only when confidence requires it.

That simplicity is the point — but each infer() call is also something more fundamental: a moment of edge intelligence, generated where the physical world meets the device. A driver filing a claim. A technician diagnosing a fault. A nurse documenting care.

<20ms
On-device inference
1 SDK
iOS + Android
Bundled
LLM cost included
illustrative
import LocusSDK

// Initialize once — API key, accuracy threshold
let locus = Locus(apiKey: "lk_...", threshold: 0.85)

// One call — image + voice together
let report = try await locus.infer(
  modalities: [.image(cameraFrame), .voice(audioBuffer)],
  schema: FaultReport.self,
  context: .workOrder(id: workOrderId)
)

// Typed result — on-device in <20ms
// FaultReport(
//   component:  "Main seal bearing",
//   severity:   .high,
//   action:     "Replace — Part #B-2204",
//   confidence: 0.94,
//   resolution: .onDevice
// )

Illustrative API design · SDK in private development

Architecture

Two products. One loop.

CloudSense governs your enterprise knowledge in the cloud. thinking sense Edge delivers a signed, scoped slice to the device — and sends every outcome back.

☁CloudSense

Ingest & Connect

  • — Databases & Apps
  • — Documents & Files
  • — Slack & Teams
  • — IoT & Telemetry

Knowledge Graph

  • — Entities & Relationships
  • — Ontology & Semantics
  • — Lineage & Provenance
  • — Always current

Policy & Security

  • — Identity & Access
  • — Row / Field RBAC
  • — Audit & Compliance
  • — Evidence chain

Context API & MCP

  • — Query & Federation
  • — Scoped context API
  • — MCP Server
  • — Agent Tools

Governance · Observability · Audit · Versioned Knowledge

Scoped ontology slice ↓
Outcomes · Telemetry ↑

Secure Sync — Encrypted

Always current
Cryptographically signed

📱thinking sense Edge

On-Device Runtime

  • Signed ontology slice
  • SLM on NPU
  • Offline-capable
  • Zero marginal cost

Locus API

  • locus.observe()
  • locus.ground()
  • locus.infer()
  • locus.act()

Privacy & Trust

  • Raw data stays local
  • No PII to cloud
  • Cryptographic auth
  • Federated learning

Telemetry

  • Outcomes logged
  • Confidence scores
  • Error signals
  • Fleet intelligence

On-device · Zero latency · Zero marginal cost · Private by default

Ambient

Always-on, no pull required

Grounded

Enterprise ontology, not generic

Private

Raw data never crosses the boundary

Compounding

Every outcome sharpens the next

Observable

Cost-per-outcome, not cost-per-token

Before locus.infer()

ASR / Speech API
Whisper · Apple Speech · Deepgram
+
Vision Model
Core ML · TF Lite · Roboflow
+
LLM API
OpenAI · Anthropic · Gemini
+
Orchestration Layer
Custom glue code
4integrations
4billing relationships
4–8 weeksto first inference
0%offline capability

After locus.infer()

locus.infer(modalities, schema, context)
1 integration. 1 billing relationship.
15 minutes to first result.
Works offline — on-device by default.
LLM cost included in Locus pricing.
iOS Swift and Android Kotlin. Same call.

→ typed structured response

{
event_type: "seal_failure",
asset_state: "degraded",
anomaly: "Primary seal breach",
recommended_action: "Quarantine · file QMS report",
confidence: 0.94,
resolution: "on_device",
}

Typed Swift struct or Kotlin data class — compile-time safe.

The cost of doing it yourself

Building equivalent multi-modal AI without Locus means assembling three separate cloud APIs, three vendor relationships, and weeks of orchestration — then discovering it fails offline.

DIY cloud stack
Vision API + Whisper + GPT-4o-mini + glue
Locus API
One call · bundled · on-device first
Cost per 1K calls
~$5–$6Vision + Whisper + LLM + infra
$1–$2All-in · LLM bundled
Latency
300–800msCloud round-trip on every call
<20msOn-device NPU · cloud only when needed
Offline capability
None100% cloud-dependent
FullOn-device by default
Vendor relationships
3+Google · OpenAI · Whisper provider
1Locus API — one contract
Data residency
ProblemRaw data sent to 3 cloud endpoints
SolvedRaw data never leaves the device
Time to integrate
4–8 weeksOrchestration, routing, error handling
< 1 daySame SDK · iOS and Android
50–80%
cost reduction

The savings are real — but the bigger difference is architectural. DIY multi-modal cloud AI is online-only, split across vendors, and brittle at the seams. Locus is on-device first, one vendor, and works where networks don't. That is not a marginal improvement — it is a category difference.

Three API surfaces

Locus isn't a model endpoint — it's an observation-to-action layer. Three surfaces cover the full lifecycle of a physical intelligence event.

Observe
locus.observe()

What the device sees and hears, turned into a structured operational event. Runs on the NPU first. Cloud escalates only when local confidence falls below threshold.

Inputs

Image · video · audio · asset ID · work order

Returns

event_type · anomaly · recommended_action · confidence

Field inspectionDamage assessmentQuality controlClaim photo analysis
Ground
locus.ground()

Syncs the relevant enterprise context to the device before the shift starts. Compressed and indexed for on-device RAG — no cloud call needed during inspection.

Inputs

asset_id · site_id · user_role · connectivity state

Returns

Compressed knowledge graph slice — manuals, history, SOPs, parts

Pre-shift syncWork order prepAsset context for ObserveVoice Q&A grounding
Act
locus.act()

Takes the Observe result and writes it to the enterprise system of record — IBM Maximo, ServiceNow, Salesforce FSM, Oracle Health. One call closes the loop.

Inputs

Observe output · enterprise system credentials

Returns

Work order created · asset state updated · escalation triggered

Work order creationAsset state syncFSM system integrationWorkflow automation

iOS and Android — one SDK

Apple's Neural Engine and Qualcomm's Hexagon NPU are different silicon with different programming models. Locus abstracts both. The same API call runs on either — same typed output, same pricing, same offline guarantee.

iOS
Apple Neural Engine
Silicon38 TOPS — M4 · A18 Pro
RuntimeCore ML + MLX
Android
Qualcomm Hexagon NPU
Silicon45–80 TOPS — Snapdragon X Elite · 8 Gen 3
RuntimeONNX Runtime + QNN SDK

Behaviorally identical from the developer's perspective. The same API call on iOS and Android returns the same typed schema. Locus manages NPU compilation, model lifecycle, cloud routing, and pricing — per platform, transparently.

Privacy by architecture, not by policy

Raw pixels, audio, and video never leave the device. Only embeddings and structured results sync — the captures that generated them stay where they were made. For enterprise mobile teams in regulated industries, this isn't a compliance configuration. It's a structural guarantee that closes security reviews that cloud-only alternatives cannot.

HIPAA-adjacent
Insurance · Healthcare · Finance
GLBA / data residency
Banking · Mobile document capture
Industrial compliance
Utility · Rail · Manufacturing

Everyday mobile apps

The same infer() call that powers field inspection also powers the consumer-facing apps people use daily — claims, retail, fitness, banking.

The call

let result = try await locus.infer( modalities: [.image], schema: ClaimAssessment.self )
Resolves on-device · raw data stays local
9:41

Claims Assistant

AI

Rear-end collision — parking lot

locus.infer(.image, ClaimAssessment)

Result · on-device · <20ms

damage_type:"rear_impact"
severity:"moderate"
repair_estimate:"$2,400–$3,800"
fraud_flag:false
confidence:0.96
action:"File claim"

Illustrative · same SDK, iOS + Android

See it running in the field

Working iPad prototypes across five enterprise verticals — utility, rail, fleet, warehousing, and healthcare. Each demo shows the full infer() loop: capture, vectorize, resolve, act.

View field service demos →