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 Index | Name | Type | Description |
|---|---|---|---|
| 0 | out_response | DAT | Contains the response back 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 |