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,
stateSchemaVersion: 'v1',
ratio: '9:16',
scale: 0.6,
fps: 30,
format: 'mp4',
},
{ idempotencyKey: 'example-export-1' }
)
const task = await client.exports.wait(created.taskId)
console.log(task.status, task.outputUrl)