@adobe/firefly-apis

中文文档
2.0.1发布于 2025/06/24Copyright (c) 2024 Adobe IncTypeScriptCommonJS近 30 天下载 8635

Adobe Firefly Services library for consuming Firefly Service APIs.

原始使用文档

@adobe/firefly-apis

Version Downloads/week

Description

This repository is home to the Firefly Services SDK for JavaScript, designed for Node.js and web environments. It features libraries for various Firefly services, including product libraries for accessing specific product services like Firefly, Lightroom, and Photoshop, and a common library for shared functionalities.

@adobe/firefly-apis specifically is the Firefly package for accessing the Firefly product services.

You can refer to Firefly Services Homepage for getting started guides, details about adding these packages to your project and code samples.

Table below shows details on various API service endpoints and the corresponding SDK APIs

SDK to API Reference Mapping

Firefly API EndpointSDK API NameDescription
/v2/images/generategenerateImagesGenerate images based on a prompt with optional reference image to match style.
/v1/images/expandexpandImageExpand an image to a new size/aspect ratio Note: This suppports only images with 3 Channels (RGB), not recommended to use PNGs.
/v1/images/fillfillImageFill the masked area of an image with an optional prompt.
/v2/storage/imageuploadUpload any content, such as images, videos, or documents. This api provides an opaque ID for referencing the uploaded content in other firefly apis.

版本与发布记录

@adobe/firefly-apis 共发布 6 个版本,首次发布于 2024/03/22;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.1latest2025/06/241.4 年前
2.0.02024/06/182 年前
1.1.02024/04/192 年前
1.0.02024/03/252 年前
0.2.02024/03/252 年前
0.1.02024/03/222 年前

关于 @adobe/firefly-apis 的常见问题

@adobe/firefly-apis 是什么?

Adobe Firefly Services library for consuming Firefly Service APIs.

如何安装 @adobe/firefly-apis?

在项目目录运行 npm install @adobe/firefly-apis,或使用 pnpm add / yarn add / bun add。

@adobe/firefly-apis 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@adobe/firefly-apis 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@adobe/firefly-apis 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@adobe/firefly-apis 可以商用吗?

@adobe/firefly-apis 使用 Copyright (c) 2024 Adobe Inc 许可。声明的许可为 Copyright (c) 2024 Adobe Inc,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@adobe/firefly-apis 的下载量有多少?

根据 npm 官方下载统计,@adobe/firefly-apis 在 2026/10/05 – 2026/11/03 这 30 天内被下载 8,635 次,日均约 288 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adobe/firefly-apis 还在维护吗?

最新版本 2.0.1 发布于 2025/06/24(1.4 年前);至今共发布 6 个版本,其中过去 12 个月发布了 0 个;首次发布于 2024/03/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。