pixcli 0.1.2 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# pixcli
|
|
2
|
+
|
|
3
|
+
The creative toolkit for AI agents — generate images, videos, voiceover, music, and sound effects from the command line.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g pixcli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or run without installing:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx pixcli image "a red fox in a forest"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Auth
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
export PIXCLI_API_KEY="px_live_..."
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Get your key at [pixcli.shellbot.sh](https://pixcli.shellbot.sh).
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
### `pixcli image <prompt>` — Generate images
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pixcli image "Studio product shot of wireless earbuds, soft lighting" -r 16:9 -q high -o earbuds.png
|
|
31
|
+
pixcli image "Abstract pattern, dark blue and cyan" -n 4
|
|
32
|
+
pixcli image "Red sneaker, centered, clean edges" -t -o sneaker.png
|
|
33
|
+
pixcli image "Same product, warm background" --from product.png -o warm.png
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
| Option | Default | Description |
|
|
37
|
+
|--------|---------|-------------|
|
|
38
|
+
| `-r, --ratio` | `1:1` | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3` |
|
|
39
|
+
| `-q, --quality` | `standard` | `draft`, `standard`, `high` |
|
|
40
|
+
| `-t, --transparent` | `false` | Transparent background (PNG) |
|
|
41
|
+
| `-n, --count` | `1` | Number of images (1-4) |
|
|
42
|
+
| `--from` | — | Source image for I2I |
|
|
43
|
+
| `-m, --model` | auto | Model ID (bypasses auto-classification) |
|
|
44
|
+
| `-o, --output` | auto | Output path |
|
|
45
|
+
| `--json` | `false` | JSON output |
|
|
46
|
+
|
|
47
|
+
### `pixcli edit <prompt>` — Edit images
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pixcli edit "Remove the background" -i photo.jpg -o photo-nobg.png
|
|
51
|
+
pixcli edit "Upscale to max resolution" -i hero.png -q high -o hero-4k.png
|
|
52
|
+
pixcli edit "Apply the style from the reference" -i photo.jpg -i style-ref.jpg
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
| Option | Default | Description |
|
|
56
|
+
|--------|---------|-------------|
|
|
57
|
+
| `-i, --image` | **required** | Source image (repeatable) |
|
|
58
|
+
| `-q, --quality` | `standard` | `draft`, `standard`, `high` |
|
|
59
|
+
| `-m, --model` | auto | Model ID |
|
|
60
|
+
| `-o, --output` | auto | Output path |
|
|
61
|
+
| `--json` | `false` | JSON output |
|
|
62
|
+
|
|
63
|
+
### `pixcli video <prompt>` — Generate video
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pixcli video "Slow orbit around the product" --from product.png -d 5 -o reveal.mp4
|
|
67
|
+
pixcli video "A cat walking through a garden" -o cat.mp4
|
|
68
|
+
pixcli video "The cat jumps over a fence" --from cat.mp4 --extend -o extended.mp4
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
| Option | Default | Description |
|
|
72
|
+
|--------|---------|-------------|
|
|
73
|
+
| `--from` | — | Source image (I2V) or video (extend) |
|
|
74
|
+
| `-d, --duration` | `5` | Duration in seconds (2-10) |
|
|
75
|
+
| `-r, --ratio` | `16:9` | `16:9`, `9:16`, `1:1`, `4:3`, `3:4` |
|
|
76
|
+
| `-q, --quality` | `standard` | `draft`, `standard`, `high` |
|
|
77
|
+
| `-m, --model` | auto | Model ID |
|
|
78
|
+
| `-o, --output` | auto | Output path |
|
|
79
|
+
| `--extend` | `false` | Extend source video |
|
|
80
|
+
| `--json` | `false` | JSON output |
|
|
81
|
+
|
|
82
|
+
### `pixcli voice <text>` — Text-to-speech
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pixcli voice "Welcome to the future of productivity." -o voiceover.mp3
|
|
86
|
+
pixcli voice "Bienvenidos." --voice Sarah --language spa -o vo-es.mp3
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
| Option | Default | Description |
|
|
90
|
+
|--------|---------|-------------|
|
|
91
|
+
| `--voice` | `Rachel` | Voice preset (Rachel, Aria, Roger, Sarah, Laura, Charlie, George, etc.) |
|
|
92
|
+
| `--language` | auto | ISO 639-1 code (eng, spa, fra, deu, jpn, ...) |
|
|
93
|
+
| `-o, --output` | auto | Output path (.mp3) |
|
|
94
|
+
| `--json` | `false` | JSON output |
|
|
95
|
+
|
|
96
|
+
### `pixcli music <prompt>` — Generate music
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
pixcli music "Ambient electronic, minimal beats, corporate feel" -d 45 -o bg.mp3
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
| Option | Default | Description |
|
|
103
|
+
|--------|---------|-------------|
|
|
104
|
+
| `-d, --duration` | `30` | Duration in seconds (3-120) |
|
|
105
|
+
| `-o, --output` | auto | Output path (.mp3) |
|
|
106
|
+
| `--json` | `false` | JSON output |
|
|
107
|
+
|
|
108
|
+
### `pixcli sfx <prompt>` — Generate sound effects
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
pixcli sfx "Smooth cinematic whoosh" -d 1.5 -o whoosh.mp3
|
|
112
|
+
pixcli sfx "Soft digital click" -d 0.5 -o click.mp3
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
| Option | Default | Description |
|
|
116
|
+
|--------|---------|-------------|
|
|
117
|
+
| `-d, --duration` | `5` | Duration in seconds (0.5-22) |
|
|
118
|
+
| `-o, --output` | auto | Output path (.mp3) |
|
|
119
|
+
| `--json` | `false` | JSON output |
|
|
120
|
+
|
|
121
|
+
## Global options
|
|
122
|
+
|
|
123
|
+
| Option | Description |
|
|
124
|
+
|--------|-------------|
|
|
125
|
+
| `--key <key>` | Override `PIXCLI_API_KEY` |
|
|
126
|
+
| `--api-url <url>` | Override API URL (default: `https://pixcli.shellbot.sh`) |
|
|
127
|
+
| `--version` | Show version |
|
|
128
|
+
| `--help` | Show help |
|
|
129
|
+
|
|
130
|
+
## JSON mode
|
|
131
|
+
|
|
132
|
+
All commands support `--json` for machine-readable output:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
pixcli image "hero shot" --json | jq '.files[0].path'
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```json
|
|
139
|
+
{
|
|
140
|
+
"job_id": "abc123",
|
|
141
|
+
"status": "completed",
|
|
142
|
+
"files": [{ "path": "hero-shot.png", "width": 1024, "height": 1024, "mime_type": "image/png" }],
|
|
143
|
+
"model": "flux-pro",
|
|
144
|
+
"cost": 100000,
|
|
145
|
+
"elapsed_ms": 12340
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Models
|
|
150
|
+
|
|
151
|
+
### Image generation
|
|
152
|
+
`flux-pro`, `flux-dev`, `seedream-v5`, `nano-banana-pro`, `nano-banana-2`, `imagen-4`, `imagen-4-fast`, `gpt-image-1`
|
|
153
|
+
|
|
154
|
+
### Image editing
|
|
155
|
+
`seedream-v5-edit`, `phota-enhance`, `rembg`, `recraft-upscale`, `aura-sr`
|
|
156
|
+
|
|
157
|
+
### Video
|
|
158
|
+
`kling-v3-pro-i2v`, `veo3-i2v`, `wan-v2-i2v`, `minimax-i2v`, `ltx-t2v`, `veo3-t2v`, `grok-extend-video`
|
|
159
|
+
|
|
160
|
+
### Audio
|
|
161
|
+
`elevenlabs-tts-v3`, `elevenlabs-music`, `elevenlabs-sfx`
|
|
162
|
+
|
|
163
|
+
## Requirements
|
|
164
|
+
|
|
165
|
+
- Node.js 18+
|
|
166
|
+
- `PIXCLI_API_KEY` environment variable
|
|
167
|
+
|
|
168
|
+
## License
|
|
169
|
+
|
|
170
|
+
MIT
|