Optionalargs: { client?: Client; key?: string }Cancel job
Cancel an asynchronous job.
Upscale image (beta)
Upscales an image asynchronously using the creative upsampler (beta). Provide the input image via an upload ID from the storage API or a presigned URL. The response includes links to check status and retrieve the result. Poll the status URL until the job completes, then fetch the result for the upscaled image(s).
Expand image
Change the aspect ratio or size of an image to expand it. Optionally, provide a text prompt to generate additional imagery for the expansion.
Fill image
Generates a fill in an area of an image based on a text prompt. A mask defines the area of the image to be filled.
Generate images with Image5
Generate images asynchronously using Firefly's Image5 model.
Generate images
Generate images based on a text prompt. You may also include a reference image and Firefly will try to mimic the characteristics, such as color scheme, lighting, layout of objects in the image, etc.
Generate object composite
Combines your image and images generated by Firefly to create an image composite, or scene. The images that Firefly generates are based on a text prompt that you provide. You can upload an image with or without an image mask, such as a product photo, but for a successful result one of the following conditions must be true:
Generate similar images
Generate similar images based on a reference image that you provide as a parameter.
Generate video
Generate a five second video using a text prompt.
Retrieve custom models
Retrieve the custom models for a user.
Get job status
Get the status of an asynchronous job (including upscale jobs). When the job has completed successfully, the result reflects the operation type (for example generation, composite, or upscale).
Generate precise composite
Submits an asynchronous precise composite generation job using the precise composite pipeline.
Upload image
Upload source image or mask for image-to-image operations, such as fill, expand, or upscale (beta). This API returns an identifier that is used to refer to uploaded content. The uploaded assets will be valid for 7 days from the date you upload them.
Generate adaptive composite
Submits an asynchronous adaptive composite generation job using the adaptive composite pipeline.