@byte_fluffy/nexra-sdk 0.1.0-alpha.40 → 0.1.0-alpha.41
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 +23 -0
- package/dist/catalog.js +2 -2
- package/dist/{chunk-Q4A3HJBX.js → chunk-BIAPYH3J.js} +1606 -2
- package/dist/index.js +2 -2
- package/dist/language.js +2 -2
- package/dist/media.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-SIBYK5IX.js → chunk-QHQJD3EN.js} +0 -0
package/README.md
CHANGED
|
@@ -37,6 +37,29 @@ available from `@byte_fluffy/nexra-sdk/media`.
|
|
|
37
37
|
The default API base URL is `https://api.nexra-ai.com/v1`. When overriding
|
|
38
38
|
`baseUrl`, include the `/v1` API prefix.
|
|
39
39
|
|
|
40
|
+
## Dolphin Seedance
|
|
41
|
+
|
|
42
|
+
`0.1.0-alpha.41` adds the independently addressable models
|
|
43
|
+
`dolphin/seedance-2-0` and `dolphin/seedance-2-5`. Each model has its own
|
|
44
|
+
availability, channel routes and prices. Select its public ID when submitting a task.
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
const nexra = createNexra({
|
|
48
|
+
apiKey: process.env.NEXRA_API_KEY,
|
|
49
|
+
baseUrl: "https://test-api.nexra-ai.com/v1",
|
|
50
|
+
});
|
|
51
|
+
const task = await nexra.tasks.create("dolphin/seedance-2-0", {
|
|
52
|
+
content: [{ type: "text", role: "prompt", text: "A paper boat on calm water" }],
|
|
53
|
+
duration: 4,
|
|
54
|
+
resolution: "480p",
|
|
55
|
+
generate_audio: false,
|
|
56
|
+
});
|
|
57
|
+
const result = await nexra.tasks.wait(task.id);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Seedance 2.0 supports 4–15 seconds and Seedance 2.5 supports 4–30 seconds.
|
|
61
|
+
The existing ByteDance model IDs retain their own supplies and prices.
|
|
62
|
+
|
|
40
63
|
## Banana 2.1
|
|
41
64
|
|
|
42
65
|
Use `google/gemini-nano-banana-2.1` for Banana 2.1. The model supports
|
package/dist/catalog.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
listModelSpecs,
|
|
10
10
|
projectMediaGeometry,
|
|
11
11
|
resolveNexraLanguageReasoning
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-BIAPYH3J.js";
|
|
13
|
+
import "./chunk-QHQJD3EN.js";
|
|
14
14
|
export {
|
|
15
15
|
CatalogClient,
|
|
16
16
|
applyMediaGeometry,
|