upres-cli 0.1.0 → 0.2.0
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 +55 -28
- package/dist/cli.cjs +329 -233
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +331 -233
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +1 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -3
- package/dist/client.js.map +1 -1
- package/dist/mcp.cjs +314 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +6 -0
- package/dist/mcp.d.ts +6 -0
- package/dist/mcp.js +287 -0
- package/dist/mcp.js.map +1 -0
- package/dist/models.cjs +38 -177
- package/dist/models.cjs.map +1 -1
- package/dist/models.d.cts +2 -2
- package/dist/models.d.ts +2 -2
- package/dist/models.js +38 -178
- package/dist/models.js.map +1 -1
- package/dist/types.cjs +0 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.js +0 -1
- package/package.json +12 -7
- package/scripts/check-mcp-registry.sh +51 -0
- package/scripts/ensure-dist.mjs +15 -0
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://github.com/auroracapital/upres-cli/stargazers)
|
|
7
7
|
|
|
8
|
-
Official CLI + SDK for **[upres.ai](https://upres.ai)** — AI image and video upscaling
|
|
8
|
+
Official CLI + SDK for **[upres.ai](https://upres.ai)** — AI image and video upscaling. One API, 6 specialist models (Flare, Prism, Lumen, Mirage, Motion, Motion X), up to 8K output.
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
$ upres upscale photo.jpg --model
|
|
12
|
-
Submitting job... model=
|
|
11
|
+
$ upres upscale photo.jpg --model flare --scale 4
|
|
12
|
+
Submitting job... model=flare
|
|
13
13
|
Job created: 550e8400-e29b-41d4-a716-446655440000 (status: pending)
|
|
14
14
|
Waiting for result.......
|
|
15
15
|
Downloading to photo_upscaled.jpg... done.
|
|
@@ -25,7 +25,7 @@ Result: photo_upscaled.jpg
|
|
|
25
25
|
- **Upscayl** is great for one-offs but can't handle bulk exports or CI pipelines
|
|
26
26
|
- **Every other SaaS upscaler** either watermarks your output, caps resolution at 2K, or charges per image with no monthly plan
|
|
27
27
|
|
|
28
|
-
upres.ai gives you a clean REST API,
|
|
28
|
+
upres.ai gives you a clean REST API, 6 specialist models, batch processing, and predictable pricing starting at $9/mo on the Creator launch deal.
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
@@ -41,21 +41,21 @@ Or install globally:
|
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
43
|
npm install -g upres-cli
|
|
44
|
-
upres upscale photo.jpg --model
|
|
44
|
+
upres upscale photo.jpg --model lumen --scale 8 --output photo_8k.jpg
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Python
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
pip install upres-ai
|
|
51
|
-
upres upscale photo.jpg --model
|
|
51
|
+
upres upscale photo.jpg --model flare --scale 4
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
56
56
|
## Authentication
|
|
57
57
|
|
|
58
|
-
1. Sign up at [upres.ai](https://upres.ai) (free —
|
|
58
|
+
1. Sign up at [upres.ai](https://upres.ai) (free — 3 upscales/month)
|
|
59
59
|
2. Go to [upres.ai/account/api-keys](https://upres.ai/account/api-keys)
|
|
60
60
|
3. Generate a key — it's shown once
|
|
61
61
|
|
|
@@ -78,15 +78,15 @@ Key resolution order: `--api-key` flag → `UPRES_API_KEY` env var → `~/.confi
|
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
80
|
# Upscale a single image (local file or URL)
|
|
81
|
-
upres upscale photo.jpg --model
|
|
82
|
-
upres upscale photo.jpg --model
|
|
83
|
-
upres upscale https://example.com/photo.jpg --
|
|
81
|
+
upres upscale photo.jpg --model flare --scale 4
|
|
82
|
+
upres upscale photo.jpg --model lumen --scale 8 --output out.jpg
|
|
83
|
+
upres upscale https://example.com/photo.jpg --model prism
|
|
84
84
|
|
|
85
|
-
# Upscale video
|
|
86
|
-
upres upscale clip.mp4 --model
|
|
85
|
+
# Upscale video (AI-generated video from Sora, Kling, Runway etc.)
|
|
86
|
+
upres upscale clip.mp4 --model motion --scale 4
|
|
87
87
|
|
|
88
88
|
# Batch upscale a folder
|
|
89
|
-
upres batch ./photos/ --model
|
|
89
|
+
upres batch ./photos/ --model flare --output ./upscaled/ --concurrency 5
|
|
90
90
|
|
|
91
91
|
# List available models
|
|
92
92
|
upres models
|
|
@@ -109,7 +109,7 @@ const client = new UpresClient(); // reads UPRES_API_KEY from env
|
|
|
109
109
|
|
|
110
110
|
// Upscale a local file
|
|
111
111
|
const job = await client.createJobFromFile("photo.jpg", {
|
|
112
|
-
model: "
|
|
112
|
+
model: "flare",
|
|
113
113
|
scale: 4,
|
|
114
114
|
});
|
|
115
115
|
|
|
@@ -133,7 +133,7 @@ from upres import UpresClient
|
|
|
133
133
|
with UpresClient() as client: # reads UPRES_API_KEY from env
|
|
134
134
|
job = client.create_job_from_file(
|
|
135
135
|
"photo.jpg",
|
|
136
|
-
model="
|
|
136
|
+
model="flare",
|
|
137
137
|
scale=4,
|
|
138
138
|
)
|
|
139
139
|
completed = client.wait_for_job(job["id"])
|
|
@@ -159,29 +159,56 @@ The Python SDK uses `httpx` — async-ready, no heavy dependencies.
|
|
|
159
159
|
|
|
160
160
|
## Models
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
6 specialist models across image and video. Each one tells you up front whether it invents detail or leaves your file alone.
|
|
163
163
|
|
|
164
|
-
|
|
|
165
|
-
|
|
166
|
-
|
|
|
167
|
-
| Image
|
|
168
|
-
|
|
|
164
|
+
| Model | Kind | Best for |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| `flare` | Image | Everyday photos, fastest default |
|
|
167
|
+
| `prism` | Image | Text, logos, product shots — keeps edges true |
|
|
168
|
+
| `lumen` | Image | Maximum detail recovery for print, up to 8x |
|
|
169
|
+
| `mirage` | Image | Invents new detail — art and hero images |
|
|
170
|
+
| `motion` | Video | Fast 4K finish for Sora/Kling/Runway clips |
|
|
171
|
+
| `motion-x` | Video | Cinema-grade, for film and commercials |
|
|
169
172
|
|
|
170
|
-
Full model
|
|
173
|
+
Full model catalogue: [upres.ai/models](https://upres.ai/models) · Live spec: [api.upres.ai/v1/openapi.json](https://api.upres.ai/v1/openapi.json)
|
|
171
174
|
|
|
172
175
|
---
|
|
173
176
|
|
|
174
177
|
## Pricing
|
|
175
178
|
|
|
176
|
-
| Plan | Price |
|
|
179
|
+
| Plan | Price | Includes | API | Watermark |
|
|
177
180
|
|---|---|---|---|---|
|
|
178
|
-
| **Free** | $0 |
|
|
179
|
-
| **
|
|
180
|
-
| **
|
|
181
|
+
| **Free** | $0 | 3 upscales/mo | — | Yes |
|
|
182
|
+
| **Creator** | $9/mo (launch deal, was $19) | 50 stills + 20 min 4K video/mo | — | No |
|
|
183
|
+
| **Studio** | $39/mo | 250 stills + 90 min 4K video/mo | **Yes** | No |
|
|
184
|
+
|
|
185
|
+
**Studio tier unlocks the full API, batch processing, and no output watermark.**
|
|
186
|
+
|
|
187
|
+
[Compare plans →](https://upres.ai/pricing) · [vs. Topaz →](https://upres.ai/topaz-alternative) · [vs. Upscayl →](https://upres.ai/compare/upscayl)
|
|
188
|
+
|
|
189
|
+
---
|
|
181
190
|
|
|
182
|
-
|
|
191
|
+
## MCP (Claude, Cursor, Hermes)
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
claude mcp add upres -- npx -y github:auroracapital/upres-cli mcp
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Or in `claude_desktop_config.json` / Cursor:
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
{
|
|
201
|
+
"mcpServers": {
|
|
202
|
+
"upres": {
|
|
203
|
+
"command": "npx",
|
|
204
|
+
"args": ["-y", "github:auroracapital/upres-cli", "mcp"],
|
|
205
|
+
"env": { "UPRES_API_KEY": "upres_yourkey" }
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
```
|
|
183
210
|
|
|
184
|
-
|
|
211
|
+
Tools: `upres_list_models`, `upres_get_credits`, `upres_upscale_image`, `upres_upscale_video`, `upres_get_job`.
|
|
185
212
|
|
|
186
213
|
---
|
|
187
214
|
|