@byte_fluffy/nexra-sdk 0.1.0-alpha.36 → 0.1.0-alpha.37

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 CHANGED
@@ -37,6 +37,28 @@ 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
+ ## Banana 2.1
41
+
42
+ Use `google/gemini-nano-banana-2.1` for Banana 2.1. The model supports
43
+ `1K` (default), `2K`, and `4K`, fifteen aspect ratios, and up to fourteen
44
+ source/reference images. It does not support `512`, `count`, or `seed`.
45
+
46
+ ```ts
47
+ const modelId = "google/gemini-nano-banana-2.1";
48
+ const input: NexraImageGenerateInput = {
49
+ content: [{ type: "text", text: "A paper boat on a blue table", role: "prompt" }],
50
+ resolution: "2K",
51
+ aspect_ratio: "16:9",
52
+ };
53
+ const quote = await nexra.catalog.quote({ modelId, operation: "image.generate", input });
54
+ const result = await nexra.run(modelId, input, { quoteToken: quote.quoteToken });
55
+ ```
56
+
57
+ The server also exposes the Google Native `generateContent` endpoint at
58
+ `/v1/projects/{project}/locations/global/publishers/google/models/gemini-nano-banana-2.1:generateContent`.
59
+ Use the Native `contents` and `generationConfig` payload for direct HTTP calls;
60
+ SDK media calls use the Nexra contract shown above.
61
+
40
62
  ## DeepSeek model identity correction
41
63
 
42
64
  `0.1.0-alpha.36` replaces `ctyun/deepseek-v4-1-flash` with
package/dist/catalog.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  listModelSpecs,
10
10
  projectMediaGeometry,
11
11
  resolveNexraLanguageReasoning
12
- } from "./chunk-UOM4JX4G.js";
12
+ } from "./chunk-ENL3IGRX.js";
13
13
  import "./chunk-AAGTZN2G.js";
14
14
  export {
15
15
  CatalogClient,