upres-cli 0.1.1 → 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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models.ts","../src/mcp.ts"],"sourcesContent":["import type { ModelDefinition } from \"./types.js\";\n\n// Synced with https://api.upres.ai/v1/openapi.json (spec v1.1.0).\n// A job names one of six models. Which backend serves a model is ours to\n// choose and can change without notice — that is how a failing vendor\n// stops being your outage.\nexport const MODELS: ModelDefinition[] = [\n {\n id: \"flare\",\n name: \"Flare\",\n description: \"Everyday photos, 2x-4x. Fastest and cheapest. Does not invent detail.\",\n category: \"image-upscale\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"prism\",\n name: \"Prism\",\n description: \"Text, logos, screenshots and product shots. Keeps edges true, does not invent detail.\",\n category: \"image-upscale\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"lumen\",\n name: \"Lumen\",\n description: \"Maximum detail recovery for print, up to 8x. Slower and dearer than Flare.\",\n category: \"image-upscale\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4, 8], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"mirage\",\n name: \"Mirage\",\n description: \"Invents plausible new detail rather than recovering what was there. Most dramatic, least faithful. Good for art, wrong for documents.\",\n category: \"image-enhance\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4, 8], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"motion\",\n name: \"Motion\",\n description: \"Fast 4K finish for AI-generated video (Sora, Kling, Runway). Frame-consistent, does not invent faces.\",\n category: \"video-upscale\",\n price: \"Counts against monthly video minutes\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"motion-x\",\n name: \"Motion X\",\n description: \"Cinema-grade video upscale for film and commercials. Noticeably slower and dearer per second than Motion.\",\n category: \"video-upscale\",\n price: \"Counts against monthly video minutes\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\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 = \"flare\";\nexport const DEFAULT_VIDEO_MODEL = \"motion\";\n","#!/usr/bin/env node\n/**\n * UpRes MCP stdio server. Speaks JSON-RPC over stdin/stdout so Claude,\n * Cursor, and Hermes can upscale without a browser.\n *\n * UPRES_API_KEY=upres_... npx upres-cli mcp\n * claude mcp add upres -- npx -y upres-cli mcp\n */\nimport { MODELS } from \"./models.js\";\n\nconst VERSION = \"0.2.0\";\nconst DEFAULT_BASE_URL = \"https://api.upres.ai/v1\";\n\ntype Json = Record<string, unknown>;\n\nfunction apiKey(): string {\n return process.env.UPRES_API_KEY ?? \"\";\n}\n\nfunction baseUrl(): string {\n return process.env.UPRES_BASE_URL ?? DEFAULT_BASE_URL;\n}\n\nasync function api<T>(method: string, endpoint: string, body?: unknown): Promise<T> {\n const key = apiKey();\n if (!key) {\n throw new Error(\"UPRES_API_KEY is not set. Get a key at https://upres.ai/account/api-keys\");\n }\n const res = await fetch(`${baseUrl()}${endpoint}`, {\n method,\n headers: {\n Authorization: `Bearer ${key}`,\n ...(body ? { \"Content-Type\": \"application/json\" } : {}),\n },\n body: body ? JSON.stringify(body) : undefined,\n });\n const data = (await res.json().catch(() => ({}))) as T & { error?: string };\n if (!res.ok) {\n throw new Error(data.error ?? `HTTP ${res.status}`);\n }\n return data;\n}\n\nconst TOOLS = [\n {\n name: \"upres_list_models\",\n description:\n \"List UpRes upscale models (flare, prism, lumen, mirage, motion, motion-x) with use cases.\",\n inputSchema: { type: \"object\", properties: {}, additionalProperties: false },\n },\n {\n name: \"upres_get_credits\",\n description: \"Show recent job count for the authenticated UpRes API key as a quota proxy.\",\n inputSchema: { type: \"object\", properties: {}, additionalProperties: false },\n },\n {\n name: \"upres_upscale_image\",\n description: \"Submit an image upscale job from a public URL. Models: flare, prism, lumen, mirage.\",\n inputSchema: {\n type: \"object\",\n properties: {\n image_url: { type: \"string\", description: \"Public HTTPS URL of the image\" },\n model: {\n type: \"string\",\n enum: [\"flare\", \"prism\", \"lumen\", \"mirage\"],\n description: \"Image model. Default flare.\",\n },\n scale: { type: \"integer\", enum: [2, 4, 8], description: \"Scale multiplier. Default 4.\" },\n },\n required: [\"image_url\"],\n additionalProperties: false,\n },\n },\n {\n name: \"upres_upscale_video\",\n description: \"Submit a video upscale job from a public URL. Models: motion, motion-x.\",\n inputSchema: {\n type: \"object\",\n properties: {\n video_url: { type: \"string\", description: \"Public HTTPS URL of the video\" },\n model: {\n type: \"string\",\n enum: [\"motion\", \"motion-x\"],\n description: \"Video model. Default motion.\",\n },\n scale: { type: \"integer\", enum: [2, 4], description: \"Scale multiplier. Default 4.\" },\n },\n required: [\"video_url\"],\n additionalProperties: false,\n },\n },\n {\n name: \"upres_get_job\",\n description: \"Get status and result_url of an UpRes job by id.\",\n inputSchema: {\n type: \"object\",\n properties: {\n job_id: { type: \"string\", description: \"Job UUID returned by an upscale tool\" },\n },\n required: [\"job_id\"],\n additionalProperties: false,\n },\n },\n];\n\nfunction ok(id: unknown, result: unknown) {\n return { jsonrpc: \"2.0\", id, result };\n}\n\nfunction fail(id: unknown, code: number, message: string) {\n return { jsonrpc: \"2.0\", id, error: { code, message } };\n}\n\nfunction text(obj: unknown) {\n return { content: [{ type: \"text\", text: JSON.stringify(obj, null, 2) }] };\n}\n\nasync function callTool(name: string, args: Json): Promise<unknown> {\n switch (name) {\n case \"upres_list_models\":\n return text(\n MODELS.map((m) => ({\n id: m.id,\n name: m.name,\n category: m.category,\n description: m.description,\n })),\n );\n case \"upres_get_credits\": {\n const jobs = await api<{ data: { status: string }[] }>(\"GET\", \"/jobs?limit=100\");\n const data = jobs.data ?? [];\n return text({\n recent_jobs: data.length,\n completed: data.filter((j) => j.status === \"completed\").length,\n pricing: \"https://upres.ai/pricing\",\n });\n }\n case \"upres_upscale_image\": {\n const image_url = String(args.image_url ?? \"\");\n if (!image_url) throw new Error(\"image_url is required\");\n const job = await api(\"POST\", \"/jobs\", {\n image_url,\n model: args.model ?? \"flare\",\n scale: args.scale ?? 4,\n });\n return text(job);\n }\n case \"upres_upscale_video\": {\n const video_url = String(args.video_url ?? \"\");\n if (!video_url) throw new Error(\"video_url is required\");\n const job = await api(\"POST\", \"/jobs\", {\n image_url: video_url,\n model: args.model ?? \"motion\",\n scale: args.scale ?? 4,\n });\n return text(job);\n }\n case \"upres_get_job\": {\n const job_id = String(args.job_id ?? \"\");\n if (!job_id) throw new Error(\"job_id is required\");\n const job = await api(\"GET\", `/jobs/${job_id}`);\n return text(job);\n }\n default:\n throw new Error(`Unknown tool: ${name}`);\n }\n}\n\nasync function handle(msg: Json): Promise<Json | null> {\n const id = msg.id;\n const method = String(msg.method ?? \"\");\n if (msg.jsonrpc !== \"2.0\") return fail(id, -32600, \"Invalid Request\");\n\n if (method === \"initialize\") {\n return ok(id, {\n protocolVersion: \"2024-11-05\",\n capabilities: { tools: {} },\n serverInfo: { name: \"upres\", version: VERSION },\n });\n }\n if (method === \"notifications/initialized\" || method === \"initialized\") return null;\n if (method === \"ping\") return ok(id, {});\n if (method === \"tools/list\") return ok(id, { tools: TOOLS });\n if (method === \"tools/call\") {\n const params = (msg.params ?? {}) as Json;\n const name = String(params.name ?? \"\");\n const args = (params.arguments ?? {}) as Json;\n try {\n return ok(id, await callTool(name, args));\n } catch (e) {\n return ok(id, {\n isError: true,\n content: [{ type: \"text\", text: (e as Error).message }],\n });\n }\n }\n if (id === undefined) return null;\n return fail(id, -32601, `Method not found: ${method}`);\n}\n\nexport async function handleMessage(msg: Json): Promise<Json | null> {\n return handle(msg);\n}\n\nexport function startStdio(): void {\n let buf = \"\";\n process.stdin.setEncoding(\"utf8\");\n process.stdin.on(\"data\", async (chunk: string) => {\n buf += chunk;\n while (true) {\n const nl = buf.indexOf(\"\\n\");\n if (nl < 0) break;\n const line = buf.slice(0, nl).trim();\n buf = buf.slice(nl + 1);\n if (!line) continue;\n let msg: Json;\n try {\n msg = JSON.parse(line) as Json;\n } catch {\n continue;\n }\n const reply = await handle(msg);\n if (reply) process.stdout.write(JSON.stringify(reply) + \"\\n\");\n }\n });\n}\n"],"mappings":";;;AAMO,IAAM,SAA4B;AAAA,EACvC;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,oBAAoB;AAAA,MAClF,EAAE,MAAM,SAAS,MAAM,WAAW,UAAU,OAAO,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,aAAa,mBAAmB;AAAA,IAClH;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,I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QAAQ,EAAE;AACrC,UAAM,OAAQ,OAAO,aAAa,CAAC;AACnC,QAAI;AACF,aAAO,GAAG,IAAI,MAAM,SAAS,MAAM,IAAI,CAAC;AAAA,IAC1C,SAAS,GAAG;AACV,aAAO,GAAG,IAAI;AAAA,QACZ,SAAS;AAAA,QACT,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAO,EAAY,QAAQ,CAAC;AAAA,MACxD,CAAC;AAAA,IACH;AAAA,EACF;AACA,MAAI,OAAO,OAAW,QAAO;AAC7B,SAAO,KAAK,IAAI,QAAQ,qBAAqB,MAAM,EAAE;AACvD;AAEA,eAAsB,cAAc,KAAiC;AACnE,SAAO,OAAO,GAAG;AACnB;AAEO,SAAS,aAAmB;AACjC,MAAI,MAAM;AACV,UAAQ,MAAM,YAAY,MAAM;AAChC,UAAQ,MAAM,GAAG,QAAQ,OAAO,UAAkB;AAChD,WAAO;AACP,WAAO,MAAM;AACX,YAAM,KAAK,IAAI,QAAQ,IAAI;AAC3B,UAAI,KAAK,EAAG;AACZ,YAAM,OAAO,IAAI,MAAM,GAAG,EAAE,EAAE,KAAK;AACnC,YAAM,IAAI,MAAM,KAAK,CAAC;AACtB,UAAI,CAAC,KAAM;AACX,UAAI;AACJ,UAAI;AACF,cAAM,KAAK,MAAM,IAAI;AAAA,MACvB,QAAQ;AACN;AAAA,MACF;AACA,YAAM,QAAQ,MAAM,OAAO,GAAG;AAC9B,UAAI,MAAO,SAAQ,OAAO,MAAM,KAAK,UAAU,KAAK,IAAI,IAAI;AAAA,IAC9D;AAAA,EACF,CAAC;AACH;","names":[]}
package/dist/models.cjs CHANGED
@@ -29,220 +29,82 @@ __export(models_exports, {
29
29
  module.exports = __toCommonJS(models_exports);
30
30
  var MODELS = [
31
31
  {
32
- id: "wavespeed-ai/real-esrgan",
33
- name: "Real-ESRGAN",
34
- description: "Fast image super-resolution with artifact removal. Best value.",
32
+ id: "flare",
33
+ name: "Flare",
34
+ description: "Everyday photos, 2x-4x. Fastest and cheapest. Does not invent detail.",
35
35
  category: "image-upscale",
36
- price: "$0.0024/image",
36
+ price: "Included in plan quota",
37
37
  inputTypes: ["image/*"],
38
38
  params: [
39
- { name: "image", type: "string", required: true, description: "Image URL" }
39
+ { name: "image", type: "string", required: true, description: "Image URL or file" },
40
+ { name: "scale", type: "integer", required: false, default: 4, options: [2, 4], description: "Scale multiplier" }
40
41
  ]
41
42
  },
42
43
  {
43
- id: "wavespeed-ai/image-upscaler",
44
- name: "Image Upscaler",
45
- description: "AI upscaler to 2K/4K/8K with detail preservation.",
44
+ id: "prism",
45
+ name: "Prism",
46
+ description: "Text, logos, screenshots and product shots. Keeps edges true, does not invent detail.",
46
47
  category: "image-upscale",
47
- price: "$0.01/image",
48
+ price: "Included in plan quota",
48
49
  inputTypes: ["image/*"],
49
50
  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" }
51
+ { name: "image", type: "string", required: true, description: "Image URL or file" },
52
+ { name: "scale", type: "integer", required: false, default: 4, options: [2, 4], description: "Scale multiplier" }
53
53
  ]
54
54
  },
55
55
  {
56
- id: "wavespeed-ai/ultimate-image-upscaler",
57
- name: "Ultimate Image Upscaler",
58
- description: "Most advanced AI enhancer. Reimagines fine detail at 2K/4K/8K.",
56
+ id: "lumen",
57
+ name: "Lumen",
58
+ description: "Maximum detail recovery for print, up to 8x. Slower and dearer than Flare.",
59
59
  category: "image-upscale",
60
- price: "$0.01/image",
60
+ price: "Included in plan quota",
61
61
  inputTypes: ["image/*"],
62
62
  params: [
63
- { name: "image", type: "string", required: true, description: "Image URL" },
64
- { name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
65
- { name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
63
+ { name: "image", type: "string", required: true, description: "Image URL or file" },
64
+ { name: "scale", type: "integer", required: false, default: 4, options: [2, 4, 8], description: "Scale multiplier" }
66
65
  ]
67
66
  },
68
67
  {
69
- id: "wavespeed-ai/seedvr2/image",
70
- name: "SeedVR2 Image",
71
- description: "ByteDance SeedVR2 architecture for sharp, detailed upscaling.",
72
- category: "image-upscale",
73
- price: "$0.01/image",
74
- inputTypes: ["image/*"],
75
- params: [
76
- { name: "image", type: "string", required: true, description: "Image URL" },
77
- { name: "target_resolution", type: "string", required: false, default: "4k", options: ["2k", "4k", "8k"], description: "Target output resolution" },
78
- { name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
79
- ]
80
- },
81
- {
82
- id: "bria/increase-resolution",
83
- name: "Bria Increase Resolution",
84
- description: "Preservation-first 2x/4x upscale. No content drift.",
85
- category: "image-upscale",
86
- price: "$0.04/image",
87
- inputTypes: ["image/*"],
88
- params: [
89
- { name: "image", type: "string", required: true, description: "Image URL. Max output 8192x8192" },
90
- { name: "desired_increase", type: "integer", required: false, default: 2, options: [2, 4], description: "Resolution multiplier" }
91
- ]
92
- },
93
- {
94
- id: "clarity-ai/crystal-upscaler",
95
- name: "Crystal Upscaler",
96
- description: "Upscale to target megapixels with creativity control.",
97
- category: "image-upscale",
98
- price: "Pay per use",
99
- inputTypes: ["image/*"],
100
- params: [
101
- { name: "image", type: "string", required: true, description: "Image URL" },
102
- { name: "target_megapixels", type: "number", required: false, default: 2, range: "1-200", description: "Target size in megapixels" },
103
- { name: "creativity", type: "number", required: false, default: 0, range: "0-10", description: "Quality improvement strength" }
104
- ]
105
- },
106
- {
107
- id: "recraft-ai/recraft-crisp-upscale",
108
- name: "Recraft Crisp Upscale",
109
- description: "Enhances textures and facial features. Ideal for portraits.",
110
- category: "image-enhance",
111
- price: "Pay per use",
112
- inputTypes: ["image/*"],
113
- params: [
114
- { name: "image", type: "string", required: true, description: "Image URL or base64" }
115
- ]
116
- },
117
- {
118
- id: "recraft-ai/recraft-creative-upscale",
119
- name: "Recraft Creative Upscale",
120
- description: "Generative enhancement adding depth and polish to complex elements.",
121
- category: "image-enhance",
122
- price: "$0.25/image",
123
- inputTypes: ["image/*"],
124
- params: [
125
- { name: "image", type: "string", required: true, description: "Image URL or base64" }
126
- ]
127
- },
128
- {
129
- id: "wavespeed-ai/phota/enhance",
130
- name: "Phota Enhance",
131
- description: "Batch enhancement up to 4 images per run with optional 4K output.",
132
- category: "image-enhance",
133
- price: "$0.09/image",
134
- inputTypes: ["image/*"],
135
- params: [
136
- { name: "image", type: "string", required: true, description: "Image URL or base64 data URI" },
137
- { name: "num_images", type: "integer", required: false, default: 1, range: "1-4", description: "Enhanced variations to generate" },
138
- { name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
139
- ]
140
- },
141
- {
142
- id: "wavespeed-ai/z-image-turbo/image-to-image",
143
- name: "Z-Image Turbo",
144
- description: "Fast enhance with strength control. Low strength = subtle upscale.",
68
+ id: "mirage",
69
+ name: "Mirage",
70
+ description: "Invents plausible new detail rather than recovering what was there. Most dramatic, least faithful. Good for art, wrong for documents.",
145
71
  category: "image-enhance",
146
- price: "$0.01/image",
72
+ price: "Included in plan quota",
147
73
  inputTypes: ["image/*"],
148
74
  params: [
149
- { name: "image", type: "string", required: true, description: "Reference image URL" },
150
- { name: "prompt", type: "string", required: true, description: "Enhancement prompt", default: "enhance image quality, sharp details" },
151
- { 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" },
152
- { name: "size", type: "string", required: false, default: "1024*1024", description: "Output size (width*height)" },
153
- { name: "seed", type: "integer", required: false, default: -1, range: "-1-2147483647", description: "Random seed. -1 = random" },
154
- { name: "output_format", type: "string", required: false, default: "jpeg", options: ["jpeg", "png", "webp"], description: "Output format" }
155
- ]
156
- },
157
- {
158
- id: "wavespeed-ai/video-upscaler",
159
- name: "Video Upscaler",
160
- description: "Fast AI video upscaling to 720p-4K. Best value for video.",
161
- category: "video-upscale",
162
- price: "$0.005-0.02/sec",
163
- inputTypes: ["video/*"],
164
- params: [
165
- { name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
166
- { name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
167
- ]
168
- },
169
- {
170
- id: "wavespeed-ai/video-upscaler-pro",
171
- name: "Video Upscaler Pro",
172
- description: "Motion-aware processing with artifact cleanup for pro results.",
173
- category: "video-upscale",
174
- price: "$0.03-0.05/sec",
175
- inputTypes: ["video/*"],
176
- params: [
177
- { name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
178
- { name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
179
- ]
180
- },
181
- {
182
- id: "wavespeed-ai/ultimate-video-upscaler",
183
- name: "Ultimate Video Upscaler",
184
- description: "Deep learning detail reconstruction for highest quality 4K video.",
185
- category: "video-upscale",
186
- price: "$0.02-0.08/sec",
187
- inputTypes: ["video/*"],
188
- params: [
189
- { name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
190
- { name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
191
- ]
192
- },
193
- {
194
- id: "wavespeed-ai/seedvr2/video",
195
- name: "SeedVR2 Video",
196
- description: "16B param ByteDance model. Highest fidelity with frame consistency.",
197
- category: "video-upscale",
198
- price: "$0.02-0.05/sec",
199
- inputTypes: ["video/*"],
200
- params: [
201
- { name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" },
202
- { name: "target_resolution", type: "string", required: false, default: "1080p", options: ["720p", "1080p", "2k", "4k"], description: "Target resolution" }
203
- ]
204
- },
205
- {
206
- id: "bytedance/video-upscaler",
207
- name: "ByteDance Video Upscaler",
208
- description: "ByteDance super-resolution recovering fine detail to 4K.",
209
- category: "video-upscale",
210
- price: "$0.007-0.029/sec",
211
- inputTypes: ["video/*"],
212
- params: [
213
- { name: "video", type: "string", required: true, description: "Video URL" },
214
- { name: "target_resolution", type: "string", required: false, default: "1080p", options: ["1080p", "2k", "4k"], description: "Target resolution" }
75
+ { name: "image", type: "string", required: true, description: "Image URL or file" },
76
+ { name: "scale", type: "integer", required: false, default: 4, options: [2, 4, 8], description: "Scale multiplier" }
215
77
  ]
216
78
  },
217
79
  {
218
- id: "bria/fibo/video-upscaler",
219
- name: "Bria Video Upscaler",
220
- description: "Temporal consistency with multiple output codec options.",
80
+ id: "motion",
81
+ name: "Motion",
82
+ description: "Fast 4K finish for AI-generated video (Sora, Kling, Runway). Frame-consistent, does not invent faces.",
221
83
  category: "video-upscale",
222
- price: "$0.14/sec",
84
+ price: "Counts against monthly video minutes",
223
85
  inputTypes: ["video/*"],
224
86
  params: [
225
- { name: "video", type: "string", required: true, description: "Video URL" },
226
- { name: "target_resolution", type: "string", required: false, default: "2k", options: ["2k", "4k"], description: "Target resolution" },
227
- { 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" }
87
+ { name: "video", type: "string", required: true, description: "Video URL or file" },
88
+ { name: "scale", type: "integer", required: false, default: 4, options: [2, 4], description: "Scale multiplier" }
228
89
  ]
229
90
  },
230
91
  {
231
- id: "runwayml/upscale-v1",
232
- name: "RunwayML Upscale",
233
- description: "Simple one-click video upscale to 4K by RunwayML.",
92
+ id: "motion-x",
93
+ name: "Motion X",
94
+ description: "Cinema-grade video upscale for film and commercials. Noticeably slower and dearer per second than Motion.",
234
95
  category: "video-upscale",
235
- price: "$0.02/sec",
96
+ price: "Counts against monthly video minutes",
236
97
  inputTypes: ["video/*"],
237
98
  params: [
238
- { name: "video", type: "string", required: true, description: "Video URL. Max 10 minutes" }
99
+ { name: "video", type: "string", required: true, description: "Video URL or file" },
100
+ { name: "scale", type: "integer", required: false, default: 4, options: [2, 4], description: "Scale multiplier" }
239
101
  ]
240
102
  }
241
103
  ];
242
104
  var IMAGE_MODELS = MODELS.filter((m) => m.category !== "video-upscale");
243
105
  var VIDEO_MODELS = MODELS.filter((m) => m.category === "video-upscale");
244
- var DEFAULT_IMAGE_MODEL = "wavespeed-ai/image-upscaler";
245
- var DEFAULT_VIDEO_MODEL = "wavespeed-ai/video-upscaler";
106
+ var DEFAULT_IMAGE_MODEL = "flare";
107
+ var DEFAULT_VIDEO_MODEL = "motion";
246
108
  // Annotate the CommonJS export names for ESM import in node:
247
109
  0 && (module.exports = {
248
110
  DEFAULT_IMAGE_MODEL,
@@ -1 +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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAA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AM,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":[]}
1
+ {"version":3,"sources":["../src/models.ts"],"sourcesContent":["import type { ModelDefinition } from \"./types.js\";\n\n// Synced with https://api.upres.ai/v1/openapi.json (spec v1.1.0).\n// A job names one of six models. Which backend serves a model is ours to\n// choose and can change without notice — that is how a failing vendor\n// stops being your outage.\nexport const MODELS: ModelDefinition[] = [\n {\n id: \"flare\",\n name: \"Flare\",\n description: \"Everyday photos, 2x-4x. Fastest and cheapest. Does not invent detail.\",\n category: \"image-upscale\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"prism\",\n name: \"Prism\",\n description: \"Text, logos, screenshots and product shots. Keeps edges true, does not invent detail.\",\n category: \"image-upscale\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"lumen\",\n name: \"Lumen\",\n description: \"Maximum detail recovery for print, up to 8x. Slower and dearer than Flare.\",\n category: \"image-upscale\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4, 8], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"mirage\",\n name: \"Mirage\",\n description: \"Invents plausible new detail rather than recovering what was there. Most dramatic, least faithful. Good for art, wrong for documents.\",\n category: \"image-enhance\",\n price: \"Included in plan quota\",\n inputTypes: [\"image/*\"],\n params: [\n { name: \"image\", type: \"string\", required: true, description: \"Image URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4, 8], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"motion\",\n name: \"Motion\",\n description: \"Fast 4K finish for AI-generated video (Sora, Kling, Runway). Frame-consistent, does not invent faces.\",\n category: \"video-upscale\",\n price: \"Counts against monthly video minutes\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n {\n id: \"motion-x\",\n name: \"Motion X\",\n description: \"Cinema-grade video upscale for film and commercials. Noticeably slower and dearer per second than Motion.\",\n category: \"video-upscale\",\n price: \"Counts against monthly video minutes\",\n inputTypes: [\"video/*\"],\n params: [\n { name: \"video\", type: \"string\", required: true, description: \"Video URL or file\" },\n { name: \"scale\", type: \"integer\", required: false, default: 4, options: [2, 4], description: \"Scale multiplier\" },\n ],\n },\n];\n\nexport const IMAGE_MODELS = MODELS.filter((m) => m.category !== \"video-upscale\");\nexport const VIDEO_MODELS = MODELS.filter((m) => m.category ===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HANGED
@@ -3,7 +3,7 @@ import { ModelDefinition } from './types.cjs';
3
3
  declare const MODELS: ModelDefinition[];
4
4
  declare const IMAGE_MODELS: ModelDefinition[];
5
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";
6
+ declare const DEFAULT_IMAGE_MODEL = "flare";
7
+ declare const DEFAULT_VIDEO_MODEL = "motion";
8
8
 
9
9
  export { DEFAULT_IMAGE_MODEL, DEFAULT_VIDEO_MODEL, IMAGE_MODELS, MODELS, VIDEO_MODELS };
package/dist/models.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ModelDefinition } from './types.js';
3
3
  declare const MODELS: ModelDefinition[];
4
4
  declare const IMAGE_MODELS: ModelDefinition[];
5
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";
6
+ declare const DEFAULT_IMAGE_MODEL = "flare";
7
+ declare const DEFAULT_VIDEO_MODEL = "motion";
8
8
 
9
9
  export { DEFAULT_IMAGE_MODEL, DEFAULT_VIDEO_MODEL, IMAGE_MODELS, MODELS, VIDEO_MODELS };