Skip to content

About

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

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

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,
    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)

About

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

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages