@wavespeed/mcp 1.2.11 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/lib/media-models.js +11 -1
- package/dist/lib/media-plan.js +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Built on the same design as the open-source [`@wavespeed/cli`](https://github.co
|
|
|
36
36
|
| `run_model` | Submit + wait; rejects input keys the model doesn't accept; `@path` inputs upload automatically; returns output URLs |
|
|
37
37
|
| `generate_image` | Image from a prompt with the /chat image models (default Seedream 5.5); reference images use the model's edit endpoint |
|
|
38
38
|
| `edit_image` | Edit, restyle or combine existing images with the same models |
|
|
39
|
-
| `generate_video` | Video from a prompt, a first/last frame or reference images/videos/audio, with the /chat video models (default Seedance 2.5); the mode (text, image, reference) is picked from the inputs |
|
|
39
|
+
| `generate_video` | Video from a prompt, a first/last frame or reference images/videos/audio, with the /chat video models (default Seedance 2.5 Flash); the mode (text, image, reference) is picked from the inputs |
|
|
40
40
|
| `edit_video` | Edit an existing video, optionally with reference images/audio |
|
|
41
41
|
| `extend_video` | Continue an existing video with new footage |
|
|
42
42
|
| `get_price` | Cost estimate for the inputs you pass (no charge), with a link to the model's playground page |
|
package/dist/lib/media-models.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The image and video models the dedicated generate/edit tools offer: the
|
|
2
2
|
// same list, in the same order, as the WaveSpeed /chat page (api-dashboard
|
|
3
|
-
// lib/media-models.ts, checked 2026-11-
|
|
3
|
+
// lib/media-models.ts, checked 2026-11-15). The first of each is the default.
|
|
4
4
|
// This is a vendored copy: when /chat changes its models, change this file and
|
|
5
5
|
// its test (src/lib/media-models.test.ts) with it. Capabilities mirror the
|
|
6
6
|
// endpoints' input schemas; the tools still fit every request to the live
|
|
@@ -39,6 +39,14 @@ const seedance = (id, label, base, turbo, v25) => ({
|
|
|
39
39
|
durations: v25 ? [4, 30] : [4, 15], aspectRatios: SEEDANCE_ASPECTS, audio: true,
|
|
40
40
|
maxRefs: v25 ? { images: 30, videos: 10, audios: 10 } : { images: 9, videos: 3, audios: 3 },
|
|
41
41
|
});
|
|
42
|
+
// Flash: generated natively at 480p / 720p; 1080p and 4k are upscaled from 720p (mov stops at 720p). The turbo tier takes
|
|
43
|
+
// 720p / 1080p only. At most 10 images, 5 videos and 5 audios, and no extend endpoint.
|
|
44
|
+
const seedanceFlash = (id, label, turbo) => ({
|
|
45
|
+
id, label, family: 'seedance-2.5', base: 'bytedance/seedance-2.5-flash', turbo, modes: ['generate', 'edit'],
|
|
46
|
+
resolutions: turbo ? TURBO_RES : ALL_RES, defaultResolution: '720p',
|
|
47
|
+
durations: [4, 30], aspectRatios: SEEDANCE_ASPECTS, audio: true,
|
|
48
|
+
maxRefs: { images: 10, videos: 5, audios: 5 },
|
|
49
|
+
});
|
|
42
50
|
const wan = (id, label, base) => ({
|
|
43
51
|
id, label, family: 'wan-3.0', base, turbo: false, modes: ['generate', 'edit', 'extend'],
|
|
44
52
|
resolutions: ['480p', '720p', '1080p'], defaultResolution: '720p', durations: [2, 30],
|
|
@@ -46,6 +54,8 @@ const wan = (id, label, base) => ({
|
|
|
46
54
|
});
|
|
47
55
|
/** In menu order; the first is the default. */
|
|
48
56
|
export const VIDEO_MODELS = {
|
|
57
|
+
'seedance-2.5-flash': seedanceFlash('seedance-2.5-flash', 'Seedance 2.5 Flash', false),
|
|
58
|
+
'seedance-2.5-flash-turbo': seedanceFlash('seedance-2.5-flash-turbo', 'Seedance 2.5 Flash Turbo', true),
|
|
49
59
|
'seedance-2.5': seedance('seedance-2.5', 'Seedance 2.5', 'bytedance/seedance-2.5', false, true),
|
|
50
60
|
'seedance-2.5-turbo': seedance('seedance-2.5-turbo', 'Seedance 2.5 Turbo', 'bytedance/seedance-2.5', true, true),
|
|
51
61
|
'seedance-2.0': seedance('seedance-2.0', 'Seedance 2.0', 'bytedance/seedance-2.0', false, false),
|
package/dist/lib/media-plan.js
CHANGED
|
@@ -187,7 +187,16 @@ export async function planVideo(args, action, propsOf) {
|
|
|
187
187
|
const refAudios = args.reference_audios?.length ? args.reference_audios : undefined;
|
|
188
188
|
const pinned = args.model !== undefined && args.model !== '';
|
|
189
189
|
const first = videoModelKey(args.model);
|
|
190
|
-
|
|
190
|
+
// The default is the cheapest tier and takes the fewest inputs (Seedance 2.5 Flash: 480p / 720p, 10 images). When the
|
|
191
|
+
// caller asked for more than it offers, move on to the next model instead of trimming the request to fit.
|
|
192
|
+
const limits = VIDEO_MODELS[first];
|
|
193
|
+
const exceeds = (args.resolution != null && args.resolution !== '' && !limits.resolutions.includes(args.resolution)) ||
|
|
194
|
+
(args.reference_images?.length ?? 0) > limits.maxRefs.images ||
|
|
195
|
+
(args.reference_videos?.length ?? 0) > limits.maxRefs.videos ||
|
|
196
|
+
(args.reference_audios?.length ?? 0) > limits.maxRefs.audios;
|
|
197
|
+
const ordered = pinned ? [first] : [first, ...VIDEO_MODEL_KEYS.filter((k) => k !== first)];
|
|
198
|
+
// Skipping the default skips its turbo sibling too: it takes the same inputs and offers less.
|
|
199
|
+
const keys = !pinned && first === DEFAULT_VIDEO_MODEL && exceeds ? ordered.filter((k) => VIDEO_MODELS[k].base !== limits.base) : ordered;
|
|
191
200
|
const candidates = [];
|
|
192
201
|
for (const key of keys) {
|
|
193
202
|
// H3's native 768p tier is the counterpart of other models' 720p default.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavespeed/mcp",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "WaveSpeed MCP server — run any model on the live WaveSpeed catalog (image, video, audio, 3D) with schema introspection, local-file upload, and price quotes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|