Skip to content

indreamai/indream-client-js

Repository files navigation

@indreamai/client

Official JavaScript/TypeScript client for the Indream Open API.

Installation

pnpm add @indreamai/client

Quick Start

import { 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)

About

Official JavaScript client for Indream Open API (Node.js and Edge runtimes)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors