Generates an image based on a given text prompt and options and returns a url to the generated image. The url will be valid for one hour.
A natural language description of the desired image.
Configuration options for image generation (e.g., size, style).
A Promise that resolves to a url with the image.
Removes the background from an image file.
The image file to process.
A Promise that resolves to a base64-encoded image string with the background removed.
AiImageClient provides methods for AI-powered image processing, such as generating images from text prompts and removing backgrounds.