nai-studio
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

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);
})();

Readme

Keywords

Package Sidebar

Install

npm i nai-studio

Weekly Downloads

0

Version

0.2.4

License

MIT

Unpacked Size

91.8 kB

Total Files

9

Last publish

Collaborators

  • jacoblincool