ComfyUI Node
π± Artha Gemini Condense
Gemini Question node condenses a prompt to a target word count preserving the concept.
π± Artha Gemini Condense
- response
βtext_promptβΊ
βmax_words400βΊ
βapi_keyβΊ
βmodelgemini-2.5-flashβΊ
βmax_tokens5000βΊ
βtemperature0.7βΊ
CategoryArtha/LLM/Gemini
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| text_prompt | STRING | β | |
| max_words | INT | 4001β10000 | For Gemini models, a token is equivalent to about 4 characters. 100 tokens is about 60β80 English words. |
| api_key | STRING | API key will be visible in plain text. Consider adding your api to the api.json located inside this custom node folder. | |
| model | COMBO | gemini-2.5-flash | 5 options: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.0-flash, gemini-2.0-flash-lite |
| max_tokens | INT | 50001β8192 | For Gemini models, a token is equivalent to about 4 characters. 100 tokens is equal to about 60β80 English words. |
| temperature | FLOAT | 0.70β2 | A temperature of 0 means only the most likely tokens are selected. Higher values increase randomness. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| response | STRING | β |