Skip to content

nou-n/text2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text2img

Using the DeepAI API for text-to-image

Installation

To install dependencies:

bun install

Usage

Code

import { generate } from "./text2img";
import fs from "fs/promises";

const imageBuffer = await generate("samoyed", {
    dimensions: [512, 512]
});
await fs.writeFile("./result.png", imageBuffer);

Result

Result Image

Supported Dimensions

The supported dimensions are as follows:

Dimensions
[704, 384]
[640, 448]
[512, 512]
[448, 576]
[384, 704]

About

Using the DeepAI API for text-to-image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors