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 Name | Parameter | Type | Description |
|---|---|---|---|
| Input Resolution | Inputresolution | menu | Downscale options for reducing the image resolution - reducing your input resolution by a half or quarter will help maintain high performance |
| Use Input | Useinput | toggle | When on, uses the resolution and aspect ratio of the input image. When off, allows for overriding the resolution and aspect ratio |
| Resolution | Resolution | menu | The output image resolution |
| Aspect Ratio | Aspectratio | menu | The output image aspect ratio |
| Save Image | Saveimage | pulse | Prompts the user to save the image to file, note that the user is response for selecting a file extension |
Outputs
| Output Index | Name | Type | Description |
|---|---|---|---|
| 0 | out_response | TOP | The image output from the Google Gemini API |
| 1 | out_metadata | DAT | Contains the metadata back from the Google Gemini API, this includes data like total token count, and prompt token count |