# gen-openai-image

> Generate images locally using a command line access to OpenAIs DALL-E

Latest version **1.0.4** (published 2023-07-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install gen-openai-image
pnpm add gen-openai-image
yarn add gen-openai-image
bun add gen-openai-image
```

Provides the command `gen-openai-image`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-07-20 |
| First published | 2023-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Dikman |
| Maintainers | ddikman |

## Links

- npm: https://www.npmjs.com/package/gen-openai-image
- Repository: https://github.com/ddikman/gen-openai-image
- Homepage: https://github.com/ddikman/gen-openai-image#readme
- Issues: https://github.com/ddikman/gen-openai-image/issues
- npm.io page: https://npm.io/package/gen-openai-image

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [openai](https://npm.io/package/openai.md) ^3.3.0

## Recent versions

- 1.0.4 (latest) — 2023-07-20
- 1.0.3 — 2023-07-20
- 1.0.2 — 2023-07-20
- 1.0.1 — 2023-07-20
- 1.0.0 — 2023-07-20

## README

# OpenAI DALL-E image generator CLI

I wanted to generate a bunch of images given prompts in an easy way.

Although a CURL might've been able to do it, I ended up packaging it in this small cli.

## Usage

```bash
export OPENAI_API_KEY=your-key
gen-openai-image --variations 1 --output test --size 256 --prompt "A worm eating an apple"
```

Or, use npx to call the latest published version of this cli:

```bash
npx gen-openai-image --prompt "A woodchipper spitting out png files" --key "your api key"
```


## Building locally

I use `yarn link` in the root folder of this project to symlink the bin script. Then you can do local changes and test them by running `gen-openai-image ...`

---
_Source: https://npm.io/package/gen-openai-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
