Imgix APIsRendering APIFillFill Generative Prompt

Fill Generative Prompt

fill-gen-prompt

Premium Feature

Fill Generative Prompt is currently available for Imgix customers on a Premium plan. If you’re interested in this feature, please contact our sales team to get more information on this feature.

Provides a text suggestion to the output of fit=fill&fill=gen. It accepts URL-safe string values but can also be base64 encoded (fill-gen-prompt64). The shorthand version of this parameter can also be used (fill-gen-prompt).

Original image
sandbox-demo
Generative fill with no prompt
sandbox-demo
gen-fill-prompt=chair
sandbox-demo

Prefer Base64 Variant

Imgix recommends using the Base64 variant version of this parameter to make encoding values easier.

Limits

Guarantee of keyword output

While fill-gen-prompt suggests what the output generative fill should look like, it does not guarantee that the prompt keywords will be used in the final fill.

Character limits

There is no direct character limit for prompt values, though we recommend keeping your image URLs under 1024 characters.