Skip to main content

Text to Image

TOX name base_txt_to_img

Summary

A TouchDesigner component for generating synthetic images with the Google Gemini API.

Controls

Refer to the Common Controls for a list of all available parameters.

Parameter NameParameterTypeDescription
ResolutionResolutionmenuThe output image resolution
Aspect RatioAspectratiomenuThe output image aspect ratio
Save ImageSaveimagepulsePrompts the user to save the image to file, note that the user is response for selecting a file extension

Outputs

Output IndexNameTypeDescription
0out_responseTOPThe image output from the Google Gemini API
1out_metadataDATContains the metadata back from the Google Gemini API, this includes data like total token count, and prompt token count