Class ImageEditNotSupportedError

Thrown when an image editing operation (img2img, inpaint, outpaint) is requested from a provider that does not implement editImage.

Example

try {
await editImage({ provider: 'openrouter', image: buf, prompt: '...' });
} catch (err) {
if (err instanceof ImageEditNotSupportedError) {
console.log('Try a different provider for editing.');
}
}

Hierarchy

  • Error
    • ImageEditNotSupportedError

Constructors

Properties

Constructors

Properties

providerId: string

The provider that was asked to perform the edit.