@byte_fluffy/nexra-sdk 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +24 -1
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +2 -2
- package/dist/{chunk-7V2P2UQD.js → chunk-73CGYVFV.js} +9999 -4987
- package/dist/{chunk-TA3YGQQY.js → chunk-KEAAHI25.js} +12 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{media-geometry-Bo6ukeIQ.d.ts → media-geometry-CRCAkREf.d.ts} +1 -0
- package/dist/media.d.ts +17 -5
- package/dist/media.js +1 -1
- package/dist/{types-DPLgTh8D.d.ts → types-CmZz1KmL.d.ts} +10 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,11 +41,34 @@ Static catalog APIs are also available from `@byte_fluffy/nexra-sdk/catalog`.
|
|
|
41
41
|
Exact non-negative decimal helpers are available from
|
|
42
42
|
`@byte_fluffy/nexra-sdk/decimal`.
|
|
43
43
|
|
|
44
|
-
The static catalog includes
|
|
44
|
+
The static catalog includes 14 Agnes and CTYun image/video model
|
|
45
45
|
contracts. A catalog entry describes parameters; it does not grant access to a
|
|
46
46
|
private model or publish a sale price. Check the selected environment's model
|
|
47
47
|
listing and current prices before submitting a task.
|
|
48
48
|
|
|
49
|
+
Agnes Video 2.5 Flash uses the same video Task input format as Seedance, with
|
|
50
|
+
model-specific limits: `resolution: "720P"`, integer `duration` from 4 to 12,
|
|
51
|
+
up to 5 reference images and 3 reference audio clips, and no video references.
|
|
52
|
+
Keyframes use image content parts with `role: "first_frame"` or `"last_frame"`;
|
|
53
|
+
they cannot be combined with reference media in the same request.
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
const flashInput = {
|
|
57
|
+
content: [{ type: "text", text: "A paper boat floats across a sunlit pond", role: "prompt" }],
|
|
58
|
+
duration: 4,
|
|
59
|
+
resolution: "720P",
|
|
60
|
+
aspect_ratio: "16:9",
|
|
61
|
+
};
|
|
62
|
+
const flashQuote = await nexra.catalog.quote({
|
|
63
|
+
modelId: "agnes/agnes-video-2-5-flash",
|
|
64
|
+
operation: "video.generate",
|
|
65
|
+
input: flashInput,
|
|
66
|
+
});
|
|
67
|
+
const flashResult = await nexra.run("agnes/agnes-video-2-5-flash", flashInput, {
|
|
68
|
+
quoteToken: flashQuote.quoteToken,
|
|
69
|
+
});
|
|
70
|
+
```
|
|
71
|
+
|
|
49
72
|
GPT-6 Sol and GPT-6 Luna are included in the language model catalog. Sale prices
|
|
50
73
|
are not bundled into the SDK; use the current prices published by the selected
|
|
51
74
|
Nexra environment:
|
package/dist/catalog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpTransport, N as NexraSalePriceList, C as CreateNexraQuoteRequest, a as NexraQuote, b as CreateNexraDisplayQuoteBatchRequest, c as NexraDisplayQuoteBatch, d as NexraCatalogRevision, e as NexraModelSpec, f as NexraModelSpecFilter } from './media-geometry-
|
|
2
|
-
export { M as MediaGeometryField, g as MediaGeometryProjection, h as NexraBillingCurrency, i as NexraModelEndpointSpec, j as NexraModelOperation, k as NexraSalePrice, l as NexraSettlement, U as UnifiedMediaGeometry, m as applyMediaGeometry, n as decodeMediaGeometry, o as encodeMediaGeometry, p as projectMediaGeometry } from './media-geometry-
|
|
1
|
+
import { H as HttpTransport, N as NexraSalePriceList, C as CreateNexraQuoteRequest, a as NexraQuote, b as CreateNexraDisplayQuoteBatchRequest, c as NexraDisplayQuoteBatch, d as NexraCatalogRevision, e as NexraModelSpec, f as NexraModelSpecFilter } from './media-geometry-CRCAkREf.js';
|
|
2
|
+
export { M as MediaGeometryField, g as MediaGeometryProjection, h as NexraBillingCurrency, i as NexraModelEndpointSpec, j as NexraModelOperation, k as NexraSalePrice, l as NexraSettlement, U as UnifiedMediaGeometry, m as applyMediaGeometry, n as decodeMediaGeometry, o as encodeMediaGeometry, p as projectMediaGeometry } from './media-geometry-CRCAkREf.js';
|
|
3
3
|
import './json-Drjj1OKl.js';
|
|
4
4
|
|
|
5
5
|
declare class CatalogClient {
|
package/dist/catalog.js
CHANGED