stability-client
Advanced tools
Comparing version
@@ -37,2 +37,5 @@ /// <reference types="node" /> | ||
mimeType: string; | ||
classifications: { | ||
realizedAction: number; | ||
}; | ||
}; | ||
@@ -39,0 +42,0 @@ declare type ResponseData = { |
{ | ||
"name": "stability-client", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "A client for the Stability AI SDK", | ||
@@ -12,3 +12,3 @@ "main": "./build/index.js", | ||
"postbuild": "tsc -b .", | ||
"prepare": "npm run build", | ||
"prepare": "npm run build", | ||
"clean": "rimraf ./build", | ||
@@ -22,3 +22,6 @@ "format": "prettier --write .", | ||
"keywords": [], | ||
"contributors": ["Jacob Kelley <jakie8@gmail.com>", "Colin Reeder <colin@vpzom.click>"], | ||
"contributors": [ | ||
"Jacob Kelley <jakie8@gmail.com>", | ||
"Colin Reeder <colin@vpzom.click>" | ||
], | ||
"license": "MIT", | ||
@@ -25,0 +28,0 @@ "devDependencies": { |
# stability-client | ||
A client library for the Stability AI SDK. | ||
@@ -7,2 +8,3 @@ | ||
## Installation | ||
```sh | ||
@@ -20,2 +22,3 @@ # NPM | ||
## Example | ||
```sh | ||
@@ -29,12 +32,14 @@ stability \ | ||
-n 5 \ # 5 images | ||
"a anime still of an highly detailed night cyberpunk city life, bladerunner style!! detailed shops, neon lights, ray tracing, advertising everywhere, people and robots walking around. art by satoshi kon and studio ghibli, in the style of ghost in the shell, muted colours, hyperrealism, cinematic lighting, lush detail, award winning, wlop, octane render, trending on artstation" | ||
"a anime still of an highly detailed night cyberpunk city life, bladerunner style!! detailed shops, neon lights, ray tracing, advertising everywhere, people and robots walking around. art by satoshi kon and studio ghibli, in the style of ghost in the shell, muted colours, hyperrealism, cinematic lighting, lush detail, award winning, wlop, octane render, trending on artstation" | ||
``` | ||
### Output | ||
|<img src="https://i.imgur.com/m6k9u4t.png" width="100%">|<img src="https://i.imgur.com/tV23Lu2.png" width="100%">|<img src="https://i.imgur.com/YTlhfij.png" width="100%">|<img src="https://i.imgur.com/HMmbbZN.png" width="100%">|<img src="https://i.imgur.com/26oPc6k.png" width="100%">| | ||
|---|---|---|---|---| | ||
*** | ||
| <img src="https://i.imgur.com/m6k9u4t.png" width="100%"> | <img src="https://i.imgur.com/tV23Lu2.png" width="100%"> | <img src="https://i.imgur.com/YTlhfij.png" width="100%"> | <img src="https://i.imgur.com/HMmbbZN.png" width="100%"> | <img src="https://i.imgur.com/26oPc6k.png" width="100%"> | | ||
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | ||
--- | ||
## API | ||
```ts | ||
@@ -58,2 +63,3 @@ import { generate } from 'stability-client' | ||
Async/Promise API | ||
```ts | ||
@@ -74,2 +80,3 @@ import { generateAsync } from 'stability-client' | ||
## CLI | ||
```sh | ||
@@ -101,2 +108,3 @@ Usage: stability [options] [prompt] | ||
## Developing | ||
``` | ||
@@ -103,0 +111,0 @@ nvm use |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
147456
0.82%68
4.62%115
7.48%