@adobe/firefly-apis
v2.0.0
Published
Adobe Firefly Services library for consuming Firefly Service APIs.
Downloads
561
Readme
@adobe/firefly-apis
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 Endpoint | SDK API Name | Description | |:----------|:----------|:----------| | /v2/images/generate |generateImages | Generate images based on a prompt with optional reference image to match style. | | /v1/images/expand |expandImage |Expand an image to a new size/aspect ratio Note: This suppports only images with 3 Channels (RGB), not recommended to use PNGs. | | /v1/images/fill |fillImage | Fill the masked area of an image with an optional prompt. | | /v2/storage/image |upload | Upload any content, such as images, videos, or documents. This api provides an opaque ID for referencing the uploaded content in other firefly apis. |