1个不稳定版本
0.1.0 | 2023年10月2日 |
---|
#6 in #diffusion
27KB
374 代码行
diffusion.to CLI
Rust CLI用于与diffusion.to API交互。
安装
可以使用cargo
轻松安装CLI。
cargo install diffusion_to_cli
使用CLI
$ diffusion_to_cli --help
Rust CLI for interacting with the diffusion.to API
Usage: diffusion_to_cli [OPTIONS] --api-key <API_KEY> --prompt <PROMPT>
Options:
-a, --api-key <API_KEY> The token for the API
-p, --prompt <PROMPT> The prompt for the image
-n, --negative <NEGATIVE> The negative prompt for the image
-s, --steps <STEPS> The number of steps for the generation to use [default: 50] [possible values: 50, 100, 150, 200]
-m, --model <MODEL> The image model to use [default: beauty-realism] [possible values: beauty-realism, aesthetic-realism, anime-realism, analog-realism, dream-reality, stable-diffusion, toon-animated, fantasy-animated]
--size <SIZE> The size of the image [default: small] [possible values: small, medium, large]
-o, --orientation <ORIENTATION> The orientation of the image [default: square] [possible values: square, landscape, portrait]
--out <OUT> The file to output the image to
-h, --help Print help
-V, --version Print version
依赖项
~7–19MB
~292K SLoC