Skip to content

Divinci AI SDK

Build powerful AI integrations with our official TypeScript SDKs

Client SDK

Build custom chat UIs in React, Vue, or vanilla JavaScript with real-time streaming.

Learn more →

Server SDK

Manage workspaces, releases, and RAG documents from your Node.js backend.

Learn more →

MCP SDK

Integrate with Claude Desktop, Cursor, and other MCP-compatible AI assistants.

Learn more →

Embed Script

Drop a fully-rendered chat widget onto any page with one <script> tag — no bundler required.

Learn more →

CLI

Manage workspaces, chat with AI, search knowledge bases, and control releases from your terminal.

View CLI docs →

TypeScript First

Full TypeScript support with auto-generated types from our OpenAPI spec.

View API reference →

import { DivinciClient } from "@divinci-ai/client";
const client = new DivinciClient({
releaseId: "rel_abc123",
apiKey: "divinci_key_...",
});
// Open a thread, then stream a response token-by-token
const thread = await client.chat.create();
await client.chat.stream(thread.id, "Tell me about AI", {
assistantName: "your-assistant-id", // the release's assistant/model id
onChunk: (text) => process.stdout.write(text),
onComplete: (message) => console.log("\n\nDone:", message.id),
});