Imgix APIsRendering API

Text to image

text2image

Premium Feature

Text to image 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.

The text2image parameter uses the Generative AI Endpoint (/ai?text2image=prompt) to create AI-rendered images using a text based prompt.

text2image accepts a string prompt as a suggestion for the type of image to generate using our AI model. The generated image can then leverage all the parameters under the Rendering API to transform or resize the image.

URLs Signing Required

Use of the Generative AI endpoint requires using the secured URL feature to prevent unauthorized generative AI usage.

https://assets3.imgix.net/ai?text2image=true&seed=170221&prompt=A%20sunset%20over%20an%20ocean%20as%20a%20graphic%20for%20a%20t-shirt&auto=format%2Ccompress&fit=crop&w=1946&h=1900&s=8d9d6ab3818b79a38e30becf2c537a3c
sandbox-demo
https://assets3.imgix.net/ai?text2image=true&seed=16001&prompt=a%20moon%20over%20a%20mountain%20as%20a%20graphic&auto=format%2Ccompress&fit=crop&w=1946&h=1900&s=c5f218fac42a1b1817e0e08768f5f0ad
sandbox-demo

Limits

Guarantee of keyword output

While text2image suggests what the output 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.


Other Generative Ai Endpoint Methods

Last updated on