Thrown when an image editing operation (img2img, inpaint, outpaint) is requested from a provider that does not implement editImage.
editImage
try { await editImage({ provider: 'openrouter', image: buf, prompt: '...' });} catch (err) { if (err instanceof ImageEditNotSupportedError) { console.log('Try a different provider for editing.'); }} Copy
try { await editImage({ provider: 'openrouter', image: buf, prompt: '...' });} catch (err) { if (err instanceof ImageEditNotSupportedError) { console.log('Try a different provider for editing.'); }}
Readonly
The provider that was asked to perform the edit.
Thrown when an image editing operation (img2img, inpaint, outpaint) is requested from a provider that does not implement
editImage.Example