Skip to main content

Text to Text

TOX name base_txt_to_txt

Summary

A TouchDesigner component for generating synthetic text with the Google Gemini API based on an input prompt. The first input to this component should be a Text DAT - the contents of this DAT will be used as the prompt for generating text.

Controls

This component has additional parameters. Refer to the Common Controls for a list of all available parameters.

Outputs

Output IndexNameTypeDescription
0out_responseDATContains the response back 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