upres-cli 0.1.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/LICENSE +21 -0
- package/README.md +226 -0
- package/dist/cli.cjs +688 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +665 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.cjs +199 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +34 -0
- package/dist/client.d.ts +34 -0
- package/dist/client.js +165 -0
- package/dist/client.js.map +1 -0
- package/dist/models.cjs +255 -0
- package/dist/models.cjs.map +1 -0
- package/dist/models.d.cts +9 -0
- package/dist/models.d.ts +9 -0
- package/dist/models.js +227 -0
- package/dist/models.js.map +1 -0
- package/dist/types.cjs +20 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +62 -0
- package/dist/types.d.ts +62 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +70 -0
package/dist/models.cjs
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/models.ts
|
|
22
|
+
var models_exports = {};
|
|
23
|
+
__export(models_exports, {
|
|
24
|
+
DEFAULT_IMAGE_MODEL: () => DEFAULT_IMAGE_MODEL,
|
|
25
|
+
DEFAULT_VIDEO_MODEL: () => DEFAULT_VIDEO_MODEL,
|
|
26
|
+
IMAGE_MODELS: () => IMAGE_MODELS,
|
|
27
|
+
MODELS: () => MODELS,
|
|
28
|
+
VIDEO_MODELS: () => VIDEO_MODELS
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(models_exports);
|
|
31
|
+
var MODELS = [
|
|
32
|
+
{
|
|
33
|
+
id: "wavespeed-ai/real-esrgan",
|
|
34
|
+
name: "Real-ESRGAN",
|
|
35
|
+
description: "Fast image super-resolution with artifact removal. Best value.",
|
|
36
|
+
category: "image-upscale",
|
|
37
|
+
price: "$0.0024/image",
|
|
38
|
+
inputTypes: ["image/*"],
|
|
39
|
+
params: [
|
|
40
|
+
{ name: "image", type: "string", required: true, description: "Image URL" }
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "wavespeed-ai/image-upscaler",
|
|
45
|
+
name: "Image Upscaler",
|
|
46
|
+
description: "AI upscaler to 2K/4K/8K with detail preservation.",
|
|
47
|
+
category: "image-upscale",
|
|
48
|
+
price: "$0.01/image",
|
|
49
|
+
inputTypes: ["image/*"],
|
|
50
|
+
params: [
|
|
51
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
52
|
+
{ name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
|
|
53
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "wavespeed-ai/ultimate-image-upscaler",
|
|
58
|
+
name: "Ultimate Image Upscaler",
|
|
59
|
+
description: "Most advanced AI enhancer. Reimagines fine detail at 2K/4K/8K.",
|
|
60
|
+
category: "image-upscale",
|
|
61
|
+
price: "$0.01/image",
|
|
62
|
+
inputTypes: ["image/*"],
|
|
63
|
+
params: [
|
|
64
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
65
|
+
{ name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
|
|
66
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "wavespeed-ai/seedvr2/image",
|
|
71
|
+
name: "SeedVR2 Image",
|
|
72
|
+
description: "ByteDance SeedVR2 architecture for sharp, detailed upscaling.",
|
|
73
|
+
category: "image-upscale",
|
|
74
|
+
price: "$0.01/image",
|
|
75
|
+
inputTypes: ["image/*"],
|
|
76
|
+
params: [
|
|
77
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
78
|
+
{ name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
|
|
79
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "bria/increase-resolution",
|
|
84
|
+
name: "Bria Increase Resolution",
|
|
85
|
+
description: "Preservation-first 2x/4x upscale. No content drift.",
|
|
86
|
+
category: "image-upscale",
|
|
87
|
+
price: "$0.04/image",
|
|
88
|
+
inputTypes: ["image/*"],
|
|
89
|
+
params: [
|
|
90
|
+
{ name: "image", type: "string", required: true, description: "Image URL. Max output 8192x8192" },
|
|
91
|
+
{ name: "desired_increase", type: "integer", required: false, default: 2, options: [2, 4], description: "Resolution multiplier" }
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "clarity-ai/crystal-upscaler",
|
|
96
|
+
name: "Crystal Upscaler",
|
|
97
|
+
description: "Upscale to target megapixels with creativity control.",
|
|
98
|
+
category: "image-upscale",
|
|
99
|
+
price: "Pay per use",
|
|
100
|
+
inputTypes: ["image/*"],
|
|
101
|
+
params: [
|
|
102
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
103
|
+
{ name: "target_megapixels", type: "number", required: false, default: 2, range: "1-200", description: "Target size in megapixels" },
|
|
104
|
+
{ name: "creativity", type: "number", required: false, default: 0, range: "0-10", description: "Quality improvement strength" }
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "recraft-ai/recraft-crisp-upscale",
|
|
109
|
+
name: "Recraft Crisp Upscale",
|
|
110
|
+
description: "Enhances textures and facial features. Ideal for portraits.",
|
|
111
|
+
category: "image-enhance",
|
|
112
|
+
price: "Pay per use",
|
|
113
|
+
inputTypes: ["image/*"],
|
|
114
|
+
params: [
|
|
115
|
+
{ name: "image", type: "string", required: true, description: "Image URL or base64" }
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "recraft-ai/recraft-creative-upscale",
|
|
120
|
+
name: "Recraft Creative Upscale",
|
|
121
|
+
description: "Generative enhancement adding depth and polish to complex elements.",
|
|
122
|
+
category: "image-enhance",
|
|
123
|
+
price: "$0.25/image",
|
|
124
|
+
inputTypes: ["image/*"],
|
|
125
|
+
params: [
|
|
126
|
+
{ name: "image", type: "string", required: true, description: "Image URL or base64" }
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "wavespeed-ai/phota/enhance",
|
|
131
|
+
name: "Phota Enhance",
|
|
132
|
+
description: "Batch enhancement up to 4 images per run with optional 4K output.",
|
|
133
|
+
category: "image-enhance",
|
|
134
|
+
price: "$0.09/image",
|
|
135
|
+
inputTypes: ["image/*"],
|
|
136
|
+
params: [
|
|
137
|
+
{ name: "image", type: "string", required: true, description: "Image URL or base64 data URI" },
|
|
138
|
+
{ name: "num_images", type: "integer", required: false, default: 1, range: "1-4", description: "Enhanced variations to generate" },
|
|
139
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: "wavespeed-ai/z-image-turbo/image-to-image",
|
|
144
|
+
name: "Z-Image Turbo",
|
|
145
|
+
description: "Fast enhance with strength control. Low strength = subtle upscale.",
|
|
146
|
+
category: "image-enhance",
|
|
147
|
+
price: "$0.01/image",
|
|
148
|
+
inputTypes: ["image/*"],
|
|
149
|
+
params: [
|
|
150
|
+
{ name: "image", type: "string", required: true, description: "Reference image URL" },
|
|
151
|
+
{ name: "prompt", type: "string", required: true, description: "Enhancement prompt", default: "enhance image quality, sharp details" },
|
|
152
|
+
{ name: "strength", type: "number", required: false, default: 0.2, range: "0.00-1.00", description: "0-0.3 subtle enhance, 0.3-0.6 moderate, 0.6+ creative" },
|
|
153
|
+
{ name: "size", type: "string", required: false, default: "1024*1024", description: "Output size (width*height)" },
|
|
154
|
+
{ name: "seed", type: "integer", required: false, default: -1, range: "-1-2147483647", description: "Random seed. -1 = random" },
|
|
155
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "wavespeed-ai/video-upscaler",
|
|
160
|
+
name: "Video Upscaler",
|
|
161
|
+
description: "Fast AI video upscaling to 720p-4K. Best value for video.",
|
|
162
|
+
category: "video-upscale",
|
|
163
|
+
price: "$0.005-0.02/sec",
|
|
164
|
+
inputTypes: ["video/*"],
|
|
165
|
+
params: [
|
|
166
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
167
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "wavespeed-ai/video-upscaler-pro",
|
|
172
|
+
name: "Video Upscaler Pro",
|
|
173
|
+
description: "Motion-aware processing with artifact cleanup for pro results.",
|
|
174
|
+
category: "video-upscale",
|
|
175
|
+
price: "$0.03-0.05/sec",
|
|
176
|
+
inputTypes: ["video/*"],
|
|
177
|
+
params: [
|
|
178
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
179
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "wavespeed-ai/ultimate-video-upscaler",
|
|
184
|
+
name: "Ultimate Video Upscaler",
|
|
185
|
+
description: "Deep learning detail reconstruction for highest quality 4K video.",
|
|
186
|
+
category: "video-upscale",
|
|
187
|
+
price: "$0.02-0.08/sec",
|
|
188
|
+
inputTypes: ["video/*"],
|
|
189
|
+
params: [
|
|
190
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
191
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "wavespeed-ai/seedvr2/video",
|
|
196
|
+
name: "SeedVR2 Video",
|
|
197
|
+
description: "16B param ByteDance model. Highest fidelity with frame consistency.",
|
|
198
|
+
category: "video-upscale",
|
|
199
|
+
price: "$0.02-0.05/sec",
|
|
200
|
+
inputTypes: ["video/*"],
|
|
201
|
+
params: [
|
|
202
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
203
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: "bytedance/video-upscaler",
|
|
208
|
+
name: "ByteDance Video Upscaler",
|
|
209
|
+
description: "ByteDance super-resolution recovering fine detail to 4K.",
|
|
210
|
+
category: "video-upscale",
|
|
211
|
+
price: "$0.007-0.029/sec",
|
|
212
|
+
inputTypes: ["video/*"],
|
|
213
|
+
params: [
|
|
214
|
+
{ name: "video", type: "string", required: true, description: "Video URL" },
|
|
215
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["1080p", "2k", "4k"], description: "Target resolution" }
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: "bria/fibo/video-upscaler",
|
|
220
|
+
name: "Bria Video Upscaler",
|
|
221
|
+
description: "Temporal consistency with multiple output codec options.",
|
|
222
|
+
category: "video-upscale",
|
|
223
|
+
price: "$0.14/sec",
|
|
224
|
+
inputTypes: ["video/*"],
|
|
225
|
+
params: [
|
|
226
|
+
{ name: "video", type: "string", required: true, description: "Video URL" },
|
|
227
|
+
{ name: "target_resolution", type: "string", required: false, default: "2k", options: ["2k", "4k"], description: "Target resolution" },
|
|
228
|
+
{ name: "output_container_and_codec", type: "string", required: false, default: "mp4_h264", options: ["webm_vp9", "mp4_h264", "mp4_h265", "mov_h265", "mov_prores4s", "mkv_h264", "mkv_h265", "mkv_vp9", "gif"], description: "Output container and codec" }
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: "runwayml/upscale-v1",
|
|
233
|
+
name: "RunwayML Upscale",
|
|
234
|
+
description: "Simple one-click video upscale to 4K by RunwayML.",
|
|
235
|
+
category: "video-upscale",
|
|
236
|
+
price: "$0.02/sec",
|
|
237
|
+
inputTypes: ["video/*"],
|
|
238
|
+
params: [
|
|
239
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" }
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
];
|
|
243
|
+
var IMAGE_MODELS = MODELS.filter((m) => m.category !== "video-upscale");
|
|
244
|
+
var VIDEO_MODELS = MODELS.filter((m) => m.category === "video-upscale");
|
|
245
|
+
var DEFAULT_IMAGE_MODEL = "wavespeed-ai/image-upscaler";
|
|
246
|
+
var DEFAULT_VIDEO_MODEL = "wavespeed-ai/video-upscaler";
|
|
247
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
248
|
+
0 && (module.exports = {
|
|
249
|
+
DEFAULT_IMAGE_MODEL,
|
|
250
|
+
DEFAULT_VIDEO_MODEL,
|
|
251
|
+
IMAGE_MODELS,
|
|
252
|
+
MODELS,
|
|
253
|
+
VIDEO_MODELS
|
|
254
|
+
});
|
|
255
|
+
//# sourceMappingURL=models.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/models.ts"],"sourcesContent":["import type { ModelDefinition } from \"./types.js\";\n\nexport const MODELS: ModelDefinition[] = [\n {\n id: \"wavespeed-ai/real-esrgan\",\n name: \"Real-ESRGAN\",\n description: \"Fast image super-resolution with artifact removal. Best value.\",\n category: \"image-upscale\",\n price: \"$0.0024/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n ],\n },\n {\n id: \"wavespeed-ai/image-upscaler\",\n name: \"Image Upscaler\",\n description: \"AI upscaler to 2K/4K/8K with detail preservation.\",\n category: \"image-upscale\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"4k\", options: [\"2k\", \"4k\", \"8k\"], description: \"Target output resolution\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/ultimate-image-upscaler\",\n name: \"Ultimate Image Upscaler\",\n description: \"Most advanced AI enhancer. Reimagines fine detail at 2K/4K/8K.\",\n category: \"image-upscale\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"4k\", options: [\"2k\", \"4k\", \"8k\"], description: \"Target output resolution\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/seedvr2/image\",\n name: \"SeedVR2 Image\",\n description: \"ByteDance SeedVR2 architecture for sharp, detailed upscaling.\",\n category: \"image-upscale\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"4k\", options: [\"2k\", \"4k\", \"8k\"], description: \"Target output resolution\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"bria/increase-resolution\",\n name: \"Bria Increase Resolution\",\n description: \"Preservation-first 2x/4x upscale. No content drift.\",\n category: \"image-upscale\",\n price: \"$0.04/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL. Max output 8192x8192\" },\n { name: \"desired_increase\", type: \"integer\", required: false, default: 2, options: [2, 4], description: \"Resolution multiplier\" },\n ],\n },\n {\n id: \"clarity-ai/crystal-upscaler\",\n name: \"Crystal Upscaler\",\n description: \"Upscale to target megapixels with creativity control.\",\n category: \"image-upscale\",\n price: \"Pay per use\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_megapixels\", type: \"number\", required: false, default: 2, range: \"1-200\", description: \"Target size in megapixels\" },\n { name: \"creativity\", type: \"number\", required: false, default: 0, range: \"0-10\", description: \"Quality improvement strength\" },\n ],\n },\n {\n id: \"recraft-ai/recraft-crisp-upscale\",\n name: \"Recraft Crisp Upscale\",\n description: \"Enhances textures and facial features. Ideal for portraits.\",\n category: \"image-enhance\",\n price: \"Pay per use\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or base64\" },\n ],\n },\n {\n id: \"recraft-ai/recraft-creative-upscale\",\n name: \"Recraft Creative Upscale\",\n description: \"Generative enhancement adding depth and polish to complex elements.\",\n category: \"image-enhance\",\n price: \"$0.25/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or base64\" },\n ],\n },\n {\n id: \"wavespeed-ai/phota/enhance\",\n name: \"Phota Enhance\",\n description: \"Batch enhancement up to 4 images per run with optional 4K output.\",\n category: \"image-enhance\",\n price: \"$0.09/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or base64 data URI\" },\n { name: \"num_images\", type: \"integer\", required: false, default: 1, range: \"1-4\", description: \"Enhanced variations to generate\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/z-image-turbo/image-to-image\",\n name: \"Z-Image Turbo\",\n description: \"Fast enhance with strength control. Low strength = subtle upscale.\",\n category: \"image-enhance\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Reference image URL\" },\n { name: \"prompt\", type: \"string\", required: true, description: \"Enhancement prompt\", default: \"enhance image quality, sharp details\" },\n { name: \"strength\", type: \"number\", required: false, default: 0.2, range: \"0.00-1.00\", description: \"0-0.3 subtle enhance, 0.3-0.6 moderate, 0.6+ creative\" },\n { name: \"size\", type: \"string\", required: false, default: \"1024*1024\", description: \"Output size (width*height)\" },\n { name: \"seed\", type: \"integer\", required: false, default: -1, range: \"-1-2147483647\", description: \"Random seed. -1 = random\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/video-upscaler\",\n name: \"Video Upscaler\",\n description: \"Fast AI video upscaling to 720p-4K. Best value for video.\",\n category: \"video-upscale\",\n price: \"$0.005-0.02/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"wavespeed-ai/video-upscaler-pro\",\n name: \"Video Upscaler Pro\",\n description: \"Motion-aware processing with artifact cleanup for pro results.\",\n category: \"video-upscale\",\n price: \"$0.03-0.05/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"wavespeed-ai/ultimate-video-upscaler\",\n name: \"Ultimate Video Upscaler\",\n description: \"Deep learning detail reconstruction for highest quality 4K video.\",\n category: \"video-upscale\",\n price: \"$0.02-0.08/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"wavespeed-ai/seedvr2/video\",\n name: \"SeedVR2 Video\",\n description: \"16B param ByteDance model. Highest fidelity with frame consistency.\",\n category: \"video-upscale\",\n price: \"$0.02-0.05/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"bytedance/video-upscaler\",\n name: \"ByteDance Video Upscaler\",\n description: \"ByteDance super-resolution recovering fine detail to 4K.\",\n category: \"video-upscale\",\n price: \"$0.007-0.029/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"bria/fibo/video-upscaler\",\n name: \"Bria Video Upscaler\",\n description: \"Temporal consistency with multiple output codec options.\",\n category: \"video-upscale\",\n price: \"$0.14/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"2k\", options: [\"2k\", \"4k\"], description: \"Target resolution\" },\n { name: \"output_container_and_codec\", type: \"string\", required: false, default: \"mp4_h264\", options: [\"webm_vp9\", \"mp4_h264\", \"mp4_h265\", \"mov_h265\", \"mov_prores4s\", \"mkv_h264\", \"mkv_h265\", \"mkv_vp9\", \"gif\"], description: \"Output container and codec\" },\n ],\n },\n {\n id: \"runwayml/upscale-v1\",\n name: \"RunwayML Upscale\",\n description: \"Simple one-click video upscale to 4K by RunwayML.\",\n category: \"video-upscale\",\n price: \"$0.02/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n ],\n },\n];\n\nexport const IMAGE_MODELS = MODELS.filter((m) => m.category !== \"video-upscale\");\nexport const VIDEO_MODELS = MODELS.filter((m) => m.category === \"video-upscale\");\nexport const DEFAULT_IMAGE_MODEL = \"wavespeed-ai/image-upscaler\";\nexport const DEFAULT_VIDEO_MODEL = \"wavespeed-ai/video-upscaler\";\n"],"m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U,UAAU,MAAM,aAAa,YAAY;AAAA,MAC1E,EAAE,MAAM,qBAAqB,MAAM,UAAU,UAAU,OAAO,SAAS,MAAM,SAAS,CAAC,MAAM,IAAI,GAAG,aAAa,oBAAoB;AAAA,MACrI,EAAE,MAAM,8BAA8B,MAAM,UAAU,UAAU,OAAO,SAAS,YAAY,SAAS,CAAC,YAAY,YAAY,YAAY,YAAY,gBAAgB,YAAY,YAAY,WAAW,KAAK,GAAG,aAAa,6BAA6B;AAAA,IAC7P;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,YAAY,CAAC,SAAS;AAAA,IACtB,QAAQ;AAAA,MACN,EAAE,MAAM,SAAS,MAAM,UAAU,UAAU,MAAM,aAAa,4BAA4B;AAAA,IAC5F;AAAA,EACF;AACF;AAEO,IAAM,eAAe,OAAO,OAAO,CAAC,MAAM,EAAE,aAAa,eAAe;AACxE,IAAM,eAAe,OAAO,OAAO,CAAC,MAAM,EAAE,aAAa,eAAe;AACxE,IAAM,sBAAsB;AAC5B,IAAM,sBAAsB;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModelDefinition } from './types.cjs';
|
|
2
|
+
|
|
3
|
+
declare const MODELS: ModelDefinition[];
|
|
4
|
+
declare const IMAGE_MODELS: ModelDefinition[];
|
|
5
|
+
declare const VIDEO_MODELS: ModelDefinition[];
|
|
6
|
+
declare const DEFAULT_IMAGE_MODEL = "wavespeed-ai/image-upscaler";
|
|
7
|
+
declare const DEFAULT_VIDEO_MODEL = "wavespeed-ai/video-upscaler";
|
|
8
|
+
|
|
9
|
+
export { DEFAULT_IMAGE_MODEL, DEFAULT_VIDEO_MODEL, IMAGE_MODELS, MODELS, VIDEO_MODELS };
|
package/dist/models.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModelDefinition } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare const MODELS: ModelDefinition[];
|
|
4
|
+
declare const IMAGE_MODELS: ModelDefinition[];
|
|
5
|
+
declare const VIDEO_MODELS: ModelDefinition[];
|
|
6
|
+
declare const DEFAULT_IMAGE_MODEL = "wavespeed-ai/image-upscaler";
|
|
7
|
+
declare const DEFAULT_VIDEO_MODEL = "wavespeed-ai/video-upscaler";
|
|
8
|
+
|
|
9
|
+
export { DEFAULT_IMAGE_MODEL, DEFAULT_VIDEO_MODEL, IMAGE_MODELS, MODELS, VIDEO_MODELS };
|
package/dist/models.js
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/models.ts
|
|
4
|
+
var MODELS = [
|
|
5
|
+
{
|
|
6
|
+
id: "wavespeed-ai/real-esrgan",
|
|
7
|
+
name: "Real-ESRGAN",
|
|
8
|
+
description: "Fast image super-resolution with artifact removal. Best value.",
|
|
9
|
+
category: "image-upscale",
|
|
10
|
+
price: "$0.0024/image",
|
|
11
|
+
inputTypes: ["image/*"],
|
|
12
|
+
params: [
|
|
13
|
+
{ name: "image", type: "string", required: true, description: "Image URL" }
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: "wavespeed-ai/image-upscaler",
|
|
18
|
+
name: "Image Upscaler",
|
|
19
|
+
description: "AI upscaler to 2K/4K/8K with detail preservation.",
|
|
20
|
+
category: "image-upscale",
|
|
21
|
+
price: "$0.01/image",
|
|
22
|
+
inputTypes: ["image/*"],
|
|
23
|
+
params: [
|
|
24
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
25
|
+
{ name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
|
|
26
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "wavespeed-ai/ultimate-image-upscaler",
|
|
31
|
+
name: "Ultimate Image Upscaler",
|
|
32
|
+
description: "Most advanced AI enhancer. Reimagines fine detail at 2K/4K/8K.",
|
|
33
|
+
category: "image-upscale",
|
|
34
|
+
price: "$0.01/image",
|
|
35
|
+
inputTypes: ["image/*"],
|
|
36
|
+
params: [
|
|
37
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
38
|
+
{ name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
|
|
39
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "wavespeed-ai/seedvr2/image",
|
|
44
|
+
name: "SeedVR2 Image",
|
|
45
|
+
description: "ByteDance SeedVR2 architecture for sharp, detailed upscaling.",
|
|
46
|
+
category: "image-upscale",
|
|
47
|
+
price: "$0.01/image",
|
|
48
|
+
inputTypes: ["image/*"],
|
|
49
|
+
params: [
|
|
50
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
51
|
+
{ name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
|
|
52
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "bria/increase-resolution",
|
|
57
|
+
name: "Bria Increase Resolution",
|
|
58
|
+
description: "Preservation-first 2x/4x upscale. No content drift.",
|
|
59
|
+
category: "image-upscale",
|
|
60
|
+
price: "$0.04/image",
|
|
61
|
+
inputTypes: ["image/*"],
|
|
62
|
+
params: [
|
|
63
|
+
{ name: "image", type: "string", required: true, description: "Image URL. Max output 8192x8192" },
|
|
64
|
+
{ name: "desired_increase", type: "integer", required: false, default: 2, options: [2, 4], description: "Resolution multiplier" }
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "clarity-ai/crystal-upscaler",
|
|
69
|
+
name: "Crystal Upscaler",
|
|
70
|
+
description: "Upscale to target megapixels with creativity control.",
|
|
71
|
+
category: "image-upscale",
|
|
72
|
+
price: "Pay per use",
|
|
73
|
+
inputTypes: ["image/*"],
|
|
74
|
+
params: [
|
|
75
|
+
{ name: "image", type: "string", required: true, description: "Image URL" },
|
|
76
|
+
{ name: "target_megapixels", type: "number", required: false, default: 2, range: "1-200", description: "Target size in megapixels" },
|
|
77
|
+
{ name: "creativity", type: "number", required: false, default: 0, range: "0-10", description: "Quality improvement strength" }
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: "recraft-ai/recraft-crisp-upscale",
|
|
82
|
+
name: "Recraft Crisp Upscale",
|
|
83
|
+
description: "Enhances textures and facial features. Ideal for portraits.",
|
|
84
|
+
category: "image-enhance",
|
|
85
|
+
price: "Pay per use",
|
|
86
|
+
inputTypes: ["image/*"],
|
|
87
|
+
params: [
|
|
88
|
+
{ name: "image", type: "string", required: true, description: "Image URL or base64" }
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "recraft-ai/recraft-creative-upscale",
|
|
93
|
+
name: "Recraft Creative Upscale",
|
|
94
|
+
description: "Generative enhancement adding depth and polish to complex elements.",
|
|
95
|
+
category: "image-enhance",
|
|
96
|
+
price: "$0.25/image",
|
|
97
|
+
inputTypes: ["image/*"],
|
|
98
|
+
params: [
|
|
99
|
+
{ name: "image", type: "string", required: true, description: "Image URL or base64" }
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "wavespeed-ai/phota/enhance",
|
|
104
|
+
name: "Phota Enhance",
|
|
105
|
+
description: "Batch enhancement up to 4 images per run with optional 4K output.",
|
|
106
|
+
category: "image-enhance",
|
|
107
|
+
price: "$0.09/image",
|
|
108
|
+
inputTypes: ["image/*"],
|
|
109
|
+
params: [
|
|
110
|
+
{ name: "image", type: "string", required: true, description: "Image URL or base64 data URI" },
|
|
111
|
+
{ name: "num_images", type: "integer", required: false, default: 1, range: "1-4", description: "Enhanced variations to generate" },
|
|
112
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: "wavespeed-ai/z-image-turbo/image-to-image",
|
|
117
|
+
name: "Z-Image Turbo",
|
|
118
|
+
description: "Fast enhance with strength control. Low strength = subtle upscale.",
|
|
119
|
+
category: "image-enhance",
|
|
120
|
+
price: "$0.01/image",
|
|
121
|
+
inputTypes: ["image/*"],
|
|
122
|
+
params: [
|
|
123
|
+
{ name: "image", type: "string", required: true, description: "Reference image URL" },
|
|
124
|
+
{ name: "prompt", type: "string", required: true, description: "Enhancement prompt", default: "enhance image quality, sharp details" },
|
|
125
|
+
{ name: "strength", type: "number", required: false, default: 0.2, range: "0.00-1.00", description: "0-0.3 subtle enhance, 0.3-0.6 moderate, 0.6+ creative" },
|
|
126
|
+
{ name: "size", type: "string", required: false, default: "1024*1024", description: "Output size (width*height)" },
|
|
127
|
+
{ name: "seed", type: "integer", required: false, default: -1, range: "-1-2147483647", description: "Random seed. -1 = random" },
|
|
128
|
+
{ name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: "wavespeed-ai/video-upscaler",
|
|
133
|
+
name: "Video Upscaler",
|
|
134
|
+
description: "Fast AI video upscaling to 720p-4K. Best value for video.",
|
|
135
|
+
category: "video-upscale",
|
|
136
|
+
price: "$0.005-0.02/sec",
|
|
137
|
+
inputTypes: ["video/*"],
|
|
138
|
+
params: [
|
|
139
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
140
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "wavespeed-ai/video-upscaler-pro",
|
|
145
|
+
name: "Video Upscaler Pro",
|
|
146
|
+
description: "Motion-aware processing with artifact cleanup for pro results.",
|
|
147
|
+
category: "video-upscale",
|
|
148
|
+
price: "$0.03-0.05/sec",
|
|
149
|
+
inputTypes: ["video/*"],
|
|
150
|
+
params: [
|
|
151
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
152
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: "wavespeed-ai/ultimate-video-upscaler",
|
|
157
|
+
name: "Ultimate Video Upscaler",
|
|
158
|
+
description: "Deep learning detail reconstruction for highest quality 4K video.",
|
|
159
|
+
category: "video-upscale",
|
|
160
|
+
price: "$0.02-0.08/sec",
|
|
161
|
+
inputTypes: ["video/*"],
|
|
162
|
+
params: [
|
|
163
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
164
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "wavespeed-ai/seedvr2/video",
|
|
169
|
+
name: "SeedVR2 Video",
|
|
170
|
+
description: "16B param ByteDance model. Highest fidelity with frame consistency.",
|
|
171
|
+
category: "video-upscale",
|
|
172
|
+
price: "$0.02-0.05/sec",
|
|
173
|
+
inputTypes: ["video/*"],
|
|
174
|
+
params: [
|
|
175
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
|
|
176
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: "bytedance/video-upscaler",
|
|
181
|
+
name: "ByteDance Video Upscaler",
|
|
182
|
+
description: "ByteDance super-resolution recovering fine detail to 4K.",
|
|
183
|
+
category: "video-upscale",
|
|
184
|
+
price: "$0.007-0.029/sec",
|
|
185
|
+
inputTypes: ["video/*"],
|
|
186
|
+
params: [
|
|
187
|
+
{ name: "video", type: "string", required: true, description: "Video URL" },
|
|
188
|
+
{ name: "target_resolution", type: "string", required: false, default: "1080p", options: ["1080p", "2k", "4k"], description: "Target resolution" }
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: "bria/fibo/video-upscaler",
|
|
193
|
+
name: "Bria Video Upscaler",
|
|
194
|
+
description: "Temporal consistency with multiple output codec options.",
|
|
195
|
+
category: "video-upscale",
|
|
196
|
+
price: "$0.14/sec",
|
|
197
|
+
inputTypes: ["video/*"],
|
|
198
|
+
params: [
|
|
199
|
+
{ name: "video", type: "string", required: true, description: "Video URL" },
|
|
200
|
+
{ name: "target_resolution", type: "string", required: false, default: "2k", options: ["2k", "4k"], description: "Target resolution" },
|
|
201
|
+
{ name: "output_container_and_codec", type: "string", required: false, default: "mp4_h264", options: ["webm_vp9", "mp4_h264", "mp4_h265", "mov_h265", "mov_prores4s", "mkv_h264", "mkv_h265", "mkv_vp9", "gif"], description: "Output container and codec" }
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: "runwayml/upscale-v1",
|
|
206
|
+
name: "RunwayML Upscale",
|
|
207
|
+
description: "Simple one-click video upscale to 4K by RunwayML.",
|
|
208
|
+
category: "video-upscale",
|
|
209
|
+
price: "$0.02/sec",
|
|
210
|
+
inputTypes: ["video/*"],
|
|
211
|
+
params: [
|
|
212
|
+
{ name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" }
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
];
|
|
216
|
+
var IMAGE_MODELS = MODELS.filter((m) => m.category !== "video-upscale");
|
|
217
|
+
var VIDEO_MODELS = MODELS.filter((m) => m.category === "video-upscale");
|
|
218
|
+
var DEFAULT_IMAGE_MODEL = "wavespeed-ai/image-upscaler";
|
|
219
|
+
var DEFAULT_VIDEO_MODEL = "wavespeed-ai/video-upscaler";
|
|
220
|
+
export {
|
|
221
|
+
DEFAULT_IMAGE_MODEL,
|
|
222
|
+
DEFAULT_VIDEO_MODEL,
|
|
223
|
+
IMAGE_MODELS,
|
|
224
|
+
MODELS,
|
|
225
|
+
VIDEO_MODELS
|
|
226
|
+
};
|
|
227
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/models.ts"],"sourcesContent":["import type { ModelDefinition } from \"./types.js\";\n\nexport const MODELS: ModelDefinition[] = [\n {\n id: \"wavespeed-ai/real-esrgan\",\n name: \"Real-ESRGAN\",\n description: \"Fast image super-resolution with artifact removal. Best value.\",\n category: \"image-upscale\",\n price: \"$0.0024/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n ],\n },\n {\n id: \"wavespeed-ai/image-upscaler\",\n name: \"Image Upscaler\",\n description: \"AI upscaler to 2K/4K/8K with detail preservation.\",\n category: \"image-upscale\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"4k\", options: [\"2k\", \"4k\", \"8k\"], description: \"Target output resolution\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/ultimate-image-upscaler\",\n name: \"Ultimate Image Upscaler\",\n description: \"Most advanced AI enhancer. Reimagines fine detail at 2K/4K/8K.\",\n category: \"image-upscale\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"4k\", options: [\"2k\", \"4k\", \"8k\"], description: \"Target output resolution\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/seedvr2/image\",\n name: \"SeedVR2 Image\",\n description: \"ByteDance SeedVR2 architecture for sharp, detailed upscaling.\",\n category: \"image-upscale\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"4k\", options: [\"2k\", \"4k\", \"8k\"], description: \"Target output resolution\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"bria/increase-resolution\",\n name: \"Bria Increase Resolution\",\n description: \"Preservation-first 2x/4x upscale. No content drift.\",\n category: \"image-upscale\",\n price: \"$0.04/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL. Max output 8192x8192\" },\n { name: \"desired_increase\", type: \"integer\", required: false, default: 2, options: [2, 4], description: \"Resolution multiplier\" },\n ],\n },\n {\n id: \"clarity-ai/crystal-upscaler\",\n name: \"Crystal Upscaler\",\n description: \"Upscale to target megapixels with creativity control.\",\n category: \"image-upscale\",\n price: \"Pay per use\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL\" },\n { name: \"target_megapixels\", type: \"number\", required: false, default: 2, range: \"1-200\", description: \"Target size in megapixels\" },\n { name: \"creativity\", type: \"number\", required: false, default: 0, range: \"0-10\", description: \"Quality improvement strength\" },\n ],\n },\n {\n id: \"recraft-ai/recraft-crisp-upscale\",\n name: \"Recraft Crisp Upscale\",\n description: \"Enhances textures and facial features. Ideal for portraits.\",\n category: \"image-enhance\",\n price: \"Pay per use\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or base64\" },\n ],\n },\n {\n id: \"recraft-ai/recraft-creative-upscale\",\n name: \"Recraft Creative Upscale\",\n description: \"Generative enhancement adding depth and polish to complex elements.\",\n category: \"image-enhance\",\n price: \"$0.25/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or base64\" },\n ],\n },\n {\n id: \"wavespeed-ai/phota/enhance\",\n name: \"Phota Enhance\",\n description: \"Batch enhancement up to 4 images per run with optional 4K output.\",\n category: \"image-enhance\",\n price: \"$0.09/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or base64 data URI\" },\n { name: \"num_images\", type: \"integer\", required: false, default: 1, range: \"1-4\", description: \"Enhanced variations to generate\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/z-image-turbo/image-to-image\",\n name: \"Z-Image Turbo\",\n description: \"Fast enhance with strength control. Low strength = subtle upscale.\",\n category: \"image-enhance\",\n price: \"$0.01/image\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Reference image URL\" },\n { name: \"prompt\", type: \"string\", required: true, description: \"Enhancement prompt\", default: \"enhance image quality, sharp details\" },\n { name: \"strength\", type: \"number\", required: false, default: 0.2, range: \"0.00-1.00\", description: \"0-0.3 subtle enhance, 0.3-0.6 moderate, 0.6+ creative\" },\n { name: \"size\", type: \"string\", required: false, default: \"1024*1024\", description: \"Output size (width*height)\" },\n { name: \"seed\", type: \"integer\", required: false, default: -1, range: \"-1-2147483647\", description: \"Random seed. -1 = random\" },\n { name: \"output_format\", type: \"string\", required: false, default: \"jpeg\", options: [\"jpeg\", \"png\", \"webp\"], description: \"Output format\" },\n ],\n },\n {\n id: \"wavespeed-ai/video-upscaler\",\n name: \"Video Upscaler\",\n description: \"Fast AI video upscaling to 720p-4K. Best value for video.\",\n category: \"video-upscale\",\n price: \"$0.005-0.02/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"wavespeed-ai/video-upscaler-pro\",\n name: \"Video Upscaler Pro\",\n description: \"Motion-aware processing with artifact cleanup for pro results.\",\n category: \"video-upscale\",\n price: \"$0.03-0.05/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"wavespeed-ai/ultimate-video-upscaler\",\n name: \"Ultimate Video Upscaler\",\n description: \"Deep learning detail reconstruction for highest quality 4K video.\",\n category: \"video-upscale\",\n price: \"$0.02-0.08/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"wavespeed-ai/seedvr2/video\",\n name: \"SeedVR2 Video\",\n description: \"16B param ByteDance model. Highest fidelity with frame consistency.\",\n category: \"video-upscale\",\n price: \"$0.02-0.05/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"720p\", \"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"bytedance/video-upscaler\",\n name: \"ByteDance Video Upscaler\",\n description: \"ByteDance super-resolution recovering fine detail to 4K.\",\n category: \"video-upscale\",\n price: \"$0.007-0.029/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"1080p\", options: [\"1080p\", \"2k\", \"4k\"], description: \"Target resolution\" },\n ],\n },\n {\n id: \"bria/fibo/video-upscaler\",\n name: \"Bria Video Upscaler\",\n description: \"Temporal consistency with multiple output codec options.\",\n category: \"video-upscale\",\n price: \"$0.14/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL\" },\n { name: \"target_resolution\", type: \"string\", required: false, default: \"2k\", options: [\"2k\", \"4k\"], description: \"Target resolution\" },\n { name: \"output_container_and_codec\", type: \"string\", required: false, default: \"mp4_h264\", options: [\"webm_vp9\", \"mp4_h264\", \"mp4_h265\", \"mov_h265\", \"mov_prores4s\", \"mkv_h264\", \"mkv_h265\", \"mkv_vp9\", \"gif\"], description: \"Output container and codec\" },\n ],\n },\n {\n id: \"runwayml/upscale-v1\",\n name: \"RunwayML Upscale\",\n description: \"Simple one-click video upscale to 4K by RunwayML.\",\n category: \"video-upscale\",\n price: \"$0.02/sec\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL. Max 10 minutes\" },\n ],\n },\n];\n\nexport const IMAGE_MODELS = MODELS.filter((m) => m.category !== \"video-upscale\");\nexport const VIDEO_MODELS = MODELS.filter((m) => m.category === \"video-upscale\");\nexport const DEFAULT_IMAGE_MODEL = \"wavespeed-ai/image-upscaler\";\nexport const DEFAULT_VIDEO_MODEL = \"wavespeed-ai/video-upscaler\";\n"],"mappings":";;;AAEO,IAAM,SAA4B;AAAA,EACvC;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IAC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,MAAM,8BAA8B,MAAM,UAAU,UAAU,OAAO,SAAS,YAAY,SAAS,CAAC,YAAY,YAAY,YAAY,YAAY,gBAAgB,YAAY,YAAY,WAAW,KAAK,GAAG,aAAa,6BAA6B;AAAA,IAC7P;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,YAAY,CAAC,SAAS;AAAA,IACtB,QAAQ;AAAA,MACN,EAAE,MAAM,SAAS,MAAM,UAAU,UAAU,MAAM,aAAa,4BAA4B;AAAA,IAC5F;AAAA,EACF;AACF;AAEO,IAAM,eAAe,OAAO,OAAO,CAAC,MAAM,EAAE,aAAa,eAAe;AACxE,IAAM,eAAe,OAAO,OAAO,CAAC,MAAM,EAAE,aAAa,eAAe;AACxE,IAAM,sBAAsB;AAC5B,IAAM,sBAAsB;","names":[]}
|
package/dist/types.cjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from))
|
|
10
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
11
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
}
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/types.ts
|
|
18
|
+
var types_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(types_exports);
|
|
20
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["// Auto-generated from https://api.upres.ai/v1/openapi.json\n\nexport type JobStatus = \"pending\" | \"processing\" | \"completed\" | \"failed\";\n\nexport type ModelCategory = \"image-upscale\" | \"image-enhance\" | \"video-upscale\";\n\nexport interface Job {\n id: string;\n status: JobStatus;\n model: string;\n scale: number;\n result_url: string | null;\n error: string | null;\n original_filename: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface JobCreateRequest {\n image_url?: string;\n model?: string;\n scale?: number;\n}\n\nexport interface JobListResponse {\n data: Job[];\n has_more: boolean;\n next_cursor: string | null;\n}\n\nexport interface ApiError {\n error: string;\n quota?: number;\n used?: number;\n}\n\nexport interface ModelParam {\n name: string;\n type: \"string\" | \"number\" | \"integer\" | \"boolean\";\n required: boolean;\n description: string;\n default?: string | number | boolean;\n options?: (string | number)[];\n range?: string;\n}\n\nexport interface ModelDefinition {\n id: string;\n name: string;\n description: string;\n category: ModelCategory;\n price: string;\n inputTypes: string[];\n params: ModelParam[];\n}\n\nexport interface UpresConfig {\n apiKey?: string;\n baseUrl?: string;\n}\n\nexport interface UpscaleOptions {\n model?: string;\n scale?: number;\n resolution?: string;\n output?: string;\n wait?: boolean;\n}\n\nexport interface BatchOptions extends UpscaleOptions {\n concurrency?: number;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|