Download OpenAPI specification:Download
REST API for Adobe Firefly for enterprise usage
Fills an area of an image based on images that Firefly generates based on your prompt. We call this part of an image an image, and this mask defines the area which should be filled. For example you can have an circular mask defined on an image and Firefly can generate the image of a planet in that area.
numVariations | integer (The number of variations) [ 1 .. 4 ] The number of variations to generate. numVariations will default to the number of seeds, or to 1 if seeds is not specified. |
seeds | Array of integers (The seed of each variation) [ 1 .. 4 ] items unique Default: [0] Array of seed(s) that ensure consistent image generation across multiple API calls. For example, you can use the same seed to generate a similar image with different styles. If specified alongside with numVariations, the number of seeds must be the equal to numVariations |
prompt | string (The prompt) [ 1 .. 1024 ] characters The prompt used to generate the image. The longer the prompt - the better |
negativePrompt | string (Avoid prompt) <= 1024 characters Inference will try to generate against this prompt |
required | object (Input Image) Input image to fill with generative content. You can either use a
|
promptBiasingLocaleCode | string (The locale used for image generations) Default: "en-US" A hyphen-separated string combining the ISO 639-1 language code and the ISO 3166-1 region, such as "en-US". When a locale is set, the prompt will be biased to generate more relevant content for that region. The locale will be auto-detected if not specified based on the user's profile and Accept-Language header. |
Successful Response
Bad Request
Forbidden
Request Timeout
Unsupported Media Type
Unprocessable Entity
Too Many Requests
Internal Server Error
Not Implemented
Service Unavailable
{- "numVariations": 1,
- "seeds": [
- 0
], - "prompt": "string",
- "negativePrompt": "string",
- "image": {
}, - "promptBiasingLocaleCode": "en-US"
}
{- "size": {
- "width": 0,
- "height": 0
},
}