Node SDK
Async-first TypeScript SDK for Node 22+.
npm install lamina-sdk-nodeNode 22 or newer is required.
Quick start
import { simi } from "lamina-sdk-node";
const client = new simi({ apiKey: "lamina_live_your_key" });
const video = await client.generate("A narrated lesson about derivatives", {
duration: 1,
});
await video.save("out.mp4");
await client.aclose();Stream events
const job = await client.submitAsync("Explain our refund policy", {
duration: 1,
});
for await (const event of client.streamEvents(job)) {
console.log(event.type);
}
await client.aclose();