Imgix APIsRendering APIAI Image EditAI Image Edit Prompt

AI Image Edit Prompt

ai-image-edit-prompt

Accepts a free-form text prompt used as a fallback when the value passed to ai-image-edit does not match any named operation in the mode map. When ai-image-edit-prompt is present and the ai-image-edit value is unrecognized, the prompt string is passed directly to the underlying model to describe the desired edit.

This parameter has no effect if ai-image-edit is not also present, or if the ai-image-edit value matches a named operation (in which case the named mode takes precedence).

Examples

Product on a marble surface

The value marble-surface is not a named operation, so the prompt describes the edit directly:

?ai-image-edit=marble-surface&ai-image-edit-prompt=Place+the+product+on+a+clean+white+marble+surface+with+soft+natural+lighting
Original
sandbox-demo
ai-image-edit-prompt="Place the watch on a clean white marble surface with soft natural lighting"
sandbox-demo

Exterior at dusk with string lights

The value patio-evening is not a named operation, so the prompt is passed to the model:

?ai-image-edit=patio-evening&ai-image-edit-prompt=Transform+the+exterior+to+a+warm+summer+evening+with+string+lights+on+the+patio
Original
sandbox-demo
ai-image-edit-prompt="Transform the exterior to a warm summer evening with string lights on the patio"
sandbox-demo

Portrait hair retouch

The value retouch is not a named operation, so the prompt is passed to the model:

?ai-image-edit=retouch&ai-image-edit-prompt=change+models+hair+to+blonde
Original
sandbox-demo
ai-image-edit-prompt="change models hair to blonde"
sandbox-demo

Questions

Please reach out to your Account Manager or to Support if you have any questions or feedback.