Skip to content

App Developer Overview

Nimi gives app developers a single runtime and a single SDK (@nimiplatform/sdk) to work with both local and cloud AI models. Write your integration once, then switch between on-device inference and remote providers without changing application code.

Prerequisites

  • Nimi installed and running -- start the runtime with nimi start.
  • Node.js (v18+) for the SDK.

Quick Path

1. Install the SDK

bash
npm install @nimiplatform/sdk

2. Create a Runtime instance

ts
import { Runtime } from '@nimiplatform/sdk/runtime';

const runtime = new Runtime();

3. Generate

ts
const result = await runtime.generate({ prompt: 'What is Nimi?' });
console.log(result.text);

Minimal working example

ts
import { Runtime } from '@nimiplatform/sdk/runtime';

const runtime = new Runtime();
const result = await runtime.generate({ prompt: 'What is Nimi?' });
console.log(result.text);

Next Steps

Released under Apache-2.0 (runtime, sdk, proto) / MIT (desktop, nimi-mods, web) / CC-BY-4.0 (docs)