Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 383 Bytes

USAGE.md

File metadata and controls

21 lines (16 loc) · 383 Bytes
import { Livepeer } from "@livepeer/ai";

const livepeer = new Livepeer({
  httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await livepeer.generate.textToImage({
    prompt: "<value>",
  });

  // Handle the result
  console.log(result);
}

run();