1.0.9 • Published 3 years ago

promptzero v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years 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

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago