Niravi Docs
npm ↗ Get a key ↗

Niravi Cloud API

Search, recall, and analyze a library of video, photos and documents over a simple HTTP API, with a TypeScript SDK and an MCP server for Claude.

Everything is one base URL, https://api.niravi.io, and one credential, an API key (nv_…). A key works in its home workspace and any others you grant it (Concepts).

New (2026-11-24): the local MCP server saves a video to your computer, whole or a part (download_video). The SDKs and MCP server are 0.7.0. See the changelog.

2026-11-19: every MCP tool takes a workspace, so Claude opens a search hit in the workspace it came from, and the MCP page shows how to add Niravi to Claude Code. The SDKs and MCP server were 0.6.1. See the changelog.

2026-11-11: every search hit carries its place (a span, a page, a box), faces carry box_n (top-left boxes), a transcript can send its words, and every response names its conventions. The SDKs and MCP server were 0.5.0. See the changelog.

2026-10-26: Arrow is the only indexing engine: every upload runs on it, and a pipeline field is ignored. A spoken quote lands on the moment it was said, People form on their own after each upload, and the TypeScript SDK and MCP server were 0.4.0. See the changelog.

1. Get an API key

Create one in the dashboard → Settings → Developer. Pick the scopes (read and/or write) and an optional expiry. The secret is shown once: store it somewhere safe.

2. Make your first call

Check the key. GET /api/v1/me names its home workspace (workspace_id), its plan_tier and its scope. Uploads land in the home workspace, and requests use it unless they name another; GET /api/v1/workspaces lists every workspace the key can reach.

curl https://api.niravi.io/api/v1/me \
  -H "X-API-Key: $NIRAVI_API_KEY"

A successful response is an envelope, { "success": true, "data": … }. Errors are described in Concepts. A new key’s home workspace is empty, so the next step is an upload.

3. Upload, then search your own library

Uploads need a key with the write scope and land in its home workspace.

curl https://api.niravi.io/api/v1/videos \
  -H "X-API-Key: $NIRAVI_API_KEY" \
  -F "[email protected]"

The response carries a video_id. Processing is asynchronous: poll GET /api/v1/videos/{video_id} until data.video.status is completed (seconds for a photo, about a minute for a short clip) or failed. Then search your library:

curl https://api.niravi.io/api/v1/search \
  -H "X-API-Key: $NIRAVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "a man speaking into a microphone", "limit": 5}'

A new workspace searches with Arrow by default, so no engine is needed. The first search of a library takes about 4 seconds while its index loads; after that, searches answer in under a second. A finished upload is searchable within seconds of completing (3 to 7 s measured); assets still processing never appear in results.

4. Or use the SDK

// npm install @niravi/sdk
import { connect } from "@niravi/sdk";
const niravi = connect("nv_...");                 // the key's home workspace
const { video_id } = await niravi.upload("./clip.mp4");   // Node; runs on Arrow
const mine = await niravi.search("a man speaking into a microphone", { engine: "arrow", momentsPerVideo: 3 });

The Python SDK 0.7.0 has the same surface but is not on PyPI yet: see Python SDK. Until it is, call the HTTP API from Python (any HTTP client works).

Where to next

Demo without a key? The interactive API Reference lets you browse every endpoint and its schemas. To run live calls you’ll need a key.