Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
/ Charisma Public archive

API Client to Generate AI ASCII Art 🦾🧠

License

Notifications You must be signed in to change notification settings

orhnk/Charisma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archive

Because of the latest API Changes done to the craiyon API this project stopped working

Charisma

Retro Vintage Robot

Charisma serves a purpose of being a bridge between Dall-e mini. It's used to generate ASCII Art directly from your terminal. It uses Craiyon API to convert your words into reality. It's written in beloved rust with powerful tools come with it.

It's available as a rust crate on crates.io. For further implementation details please read the docs



Features

  • Free: No payment required for any feature
  • Fast: Algorithms parallelize in such a way that you can generate an image less than a second! (If you use -N 60 or more)
  • Simple: Homely CLI app with no bloat

Showcase

More





Getting started

Prerequisites

  • Cargo: This project is built and published using cargo package manager

Installation

cargo install charisma

Usage

charisma "rusty crab robot" -c -C block # Estimated time ~1min

Generate ASCII Art using AI 🦾🧠

Usage: charisma [OPTIONS] 

Arguments:
    Prompt to enter

Options:
  -n, --negative-prompt  Use AI to generate ascii art, but with a negative prompt [default: ]
  -N, --num-image                 Number of images to generate when using AI [1..9] [default: 9]
  -m, --model-type            Model to use in generation [default: general] [possible values: art, drawing, photo, general]
  -v                         Model API version [default: 3] [possible values: 1, 3]
  -a, --api-token                  API token for premium users (Faster generation, No watermark)
  -w, --width                      Width of the output image. Defaults to 128 if width and height are not specified
  -H, --height                    Height of the output image, if not specified, it will be calculated to keep the aspect ratio
  -c, --color                             Whether to use colors in the output image
  -i, --invert                            Inverts the weights of the characters. Useful for white backgrounds
  -C, --charset                  Characters used to render the image, from transparent to opaque. Built-in charsets: block, emoji, default, russian, slight [default: default]
  -h, --help                              Print help
  -V, --version                           Print version

Acknowledgments