Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 396 Bytes

File metadata and controls

18 lines (12 loc) · 396 Bytes

JavaScript SDK

Minimal JavaScript client for US Video API.

Example

import { USVideoAPI } from "./index.mjs";

const client = new USVideoAPI({ apiKey: process.env.USVIDEOAPI_KEY });

const job = await client.createVideo({
  prompt: "A 9:16 restaurant ad with fast pacing and a lunch offer CTA."
});

const result = await client.waitForVideo(job.id);
console.log(result);