Skip to main content

Image to Image

TOX name base_img_to_img

Summary

A TouchDesigner component for generating synthetic images from image and text inputs with the Google Gemini API.

Controls

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

Parameter NameParameterTypeDescription
Input ResolutionInputresolutionmenuDownscale options for reducing the image resolution - reducing your input resolution by a half or quarter will help maintain high performance
Use InputUseinputtoggleWhen on, uses the resolution and aspect ratio of the input image. When off, allows for overriding the resolution and aspect ratio
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