1.0.9 • Published 1 year ago

promptzero v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Install

yarn add promptzero

Example

Here is an example

import { initPromptZero } from "promptzero";

const promptZero = await initPromptZero("<API_KEY>");

const newPrompt = await promptZero.requestNewPrompt("cheese");
const promptId = newPrompt.data.requestNewPrompt.id;
const { error, data } = await promptZero.waitOnResult(promptId);
if (error !== null) {
  console.error("error:", error);
} else {
  if (data.result?.__typename === "Result_StableDiffusionV1_4") {
    console.log(data.result.images.map((i) => i.url));
  }
}
1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago