0.2.4 • Published 2 years ago

nai-studio v0.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

NAI Studio

NovelAI Library and Command Line Interface.

DISCLAIMER: This is not an official NovelAI product. This is a community project.

NOVEL_AI_TOKEN=YOUR_TOKEN nai "school uniform, purple eyes" -n "nsfw" -w 640 -h 640

You can also save your token in the .env file, it will be loaded automatically.

import { NovelAI, resolution } from "nai-studio";
import fs from "node:fs";

(async () => {
    const nai = new NovelAI("YOUR_TOKEN");
    const image = await nai.image("prompt", "", { ...resolution.normal.portrait });
    fs.writeFileSync("image.png", image);
})();
0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago