Official JavaScript/TypeScript client for the Indream Open API.
- API docs: Video Editor API
- Supports Node.js 18+ and Edge runtimes
pnpm add @indreamai/clientimport { IndreamClient } from '@indreamai/client'
const client = new IndreamClient({
apiKey: process.env.INDREAM_API_KEY!,
})
const created = await client.exports.create({
editorState,
ratio: '9:16',
scale: 0.6,
fps: 30,
format: 'mp4',
})
const task = await client.exports.wait(created.taskId)
console.log(task.status, task.outputUrl, task.durationSeconds, task.billedStandardSeconds)