@acedatacloud/sdk 2026.1006.0 → 2026.1009.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/sdk",
3
- "version": "2026.1006.0",
3
+ "version": "2026.1009.0",
4
4
  "description": "Official TypeScript SDK for AceDataCloud — AI-powered data services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17,6 +17,7 @@ export type OpenAIImageModel =
17
17
  | 'nano-banana'
18
18
  | 'nano-banana-2-lite'
19
19
  | 'nano-banana-2'
20
+ | 'nano-banana-2.1'
20
21
  | 'nano-banana-pro'
21
22
  | (string & {});
22
23
 
@@ -23,11 +23,11 @@ export interface NanoBananaGenerateOptions {
23
23
  prompt: string;
24
24
  /** The number of images to be generated or edited supports 1 to 4, with a default of 1. If some images fail to generate, the corresponding `data` only contains the successfully generated images and charges based on the number of successful ones. */
25
25
  count?: number;
26
- /** Models used for generating images. If not specified, the default is `nano-banana`. `nano-banana-2-lite` is an alias for `gemini-3.1-flash-lite-image` (only 1K, fast generation speed), `nano-banana-2` is an alias for `gemini-3.1-flash-image` (provides professional-level quality at flash speed), `nano-banana-pro` is an alias for `gemini-3-pro-image`, and `nano-banana` is an alias for `gemini-2.5-flash-image`. Models with the `:official` suffix (`nano-banana:official`, `nano-banana-2-lite:official`, `nano-banana-2:official`, `nano-banana-pro:official`) are provided through official channels, offering better image quality and stability, with different billing. */
27
- model?: "nano-banana" | "nano-banana-2-lite" | "nano-banana-2" | "nano-banana-pro" | "nano-banana:official" | "nano-banana-2-lite:official" | "nano-banana-2:official" | "nano-banana-pro:official";
26
+ /** Models used for generating images. If not specified, the default is `nano-banana`. `nano-banana-2-lite` is an alias for `gemini-3.1-flash-lite-image` (only 1K, fast generation speed), `nano-banana-2` is an alias for `gemini-3.1-flash-image` (provides professional-level quality at flash speed), `nano-banana-2.1` supports 1K, 2K, and 4K generation and editing, `nano-banana-pro` is an alias for `gemini-3-pro-image`, and `nano-banana` is an alias for `gemini-2.5-flash-image`. Models with the `:official` suffix (`nano-banana:official`, `nano-banana-2-lite:official`, `nano-banana-2:official`, `nano-banana-pro:official`) are provided through official channels, offering better image quality and stability, with different billing. */
27
+ model?: "nano-banana" | "nano-banana-2-lite" | "nano-banana-2" | "nano-banana-2.1" | "nano-banana-pro" | "nano-banana:official" | "nano-banana-2-lite:official" | "nano-banana-2:official" | "nano-banana-pro:official";
28
28
  /** Link to the image that needs to be edited. It can be an accessible http or https URL, or a Base64 encoded image string in the format `data:image/png;base64,iVBORw0KG...`. Each image must not exceed 10MB in size. This parameter is required when `action` is `edit`. */
29
29
  imageUrls?: string[];
30
- /** Resolution of generated images. Supported values are `1K`, `2K`, `4K`, with a default of `1K`. If this parameter is specified, images will be generated at the specified resolution regardless of whether the `action` is `generate` or `edit` (smaller reference images can be redrawn at a higher resolution); if not specified, the default value of `1K` will be used. `nano-banana` and `nano-banana-2-lite` only support `1K`; `2K` / `4K` are only applicable to models that support high resolution. */
30
+ /** Resolution of generated images. Supported values are `1K`, `2K`, `4K`, with a default of `1K`. If this parameter is specified, images will be generated at the specified resolution regardless of whether the `action` is `generate` or `edit` (smaller reference images can be redrawn at a higher resolution); if not specified, the default value of `1K` will be used. `nano-banana` and `nano-banana-2-lite` only support `1K`; `nano-banana-2`, `nano-banana-2.1`, and `nano-banana-pro` support `1K`, `2K`, and `4K`. */
31
31
  resolution?: "1K" | "2K" | "4K";
32
32
  /** Aspect ratio for generating images. Supported values are `1:1`, `3:2`, `2:3`, `16:9`, `9:16`, `4:3`, `3:4`. If this parameter is specified, the specified aspect ratio will be used for generation regardless of whether `action` is `generate` or `edit`; if not specified, the default for `action` as `generate` is `1:1`, and for `action` as `edit`, it will automatically adopt the aspect ratio of the first image in `image_urls` to preserve the original composition. Note: In `edit` mode, specifying an aspect ratio that differs significantly from the original image will cause the model to redraw according to the new ratio, which may deviate from the reference image. */
33
33
  aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
@@ -46,7 +46,7 @@ export interface NanoBananaGenerateOptions {
46
46
  export class NanoBanana {
47
47
  constructor(private transport: Transport) {}
48
48
 
49
- /** Google Nano Banana image generation and editing API. Supports nano-banana, nano-banana-2, and nano-banana-pro for text-to-image generation and reference-image editing. */
49
+ /** Nano Banana image generation and editing. Models: nano-banana, nano-banana-2, nano-banana-2.1, nano-banana-pro. */
50
50
  async generate(options: NanoBananaGenerateOptions): Promise<TaskHandle> {
51
51
  const body: Record<string, unknown> = {};
52
52
  body["action"] = options.action;