Experimental nodes for ComfyUI. For more, see a/https://kubi-meta.de/ai4artsed A custom ComfyUI node for stylistic and cultural transformation of input text using local LLMs served via Ollama. This node allows you to combine a free-form prompt (e.g. translation, poetic recoding, genre shift) with externally supplied text in the ComfyUI graph. The result is processed via an Ollama-hosted model and returned as plain text.
Experimental prompt transformation nodes for ComfyUI, developed as part of the AI4ArtsEd research initiative. These components support stylistic and cultural translation of prompts and images for use in educational, artistic, and cultural research contexts.
More information: https://kubi-meta.de/ai4artsed
STRING
or IMAGE
input from any upstream node.style_prompt
, context
, and instruction
.STRING
(for use in CLIP, chaining, or save/display).AI4ArtsEd Ollama Prompt
β Uses local Ollama models (GPU/CPU) for cultural prompt rewriting.
AI4ArtsEd OpenRouter Prompt
β Uses hosted LLMs via OpenRouter for stylistic transformations.
AI4ArtsEd OpenRouter/Ollama ImageAnalysis
β Sends image input (as base64-encoded JPEG) to multimodal LLMs via OpenRouter (e.g. GPT-4V) or Ollama with cultural-instruction prompts.
AI4ArtsEd Text Remix
β Selectively or randomly combines 1β12 text inputs.
Inputs:
mode
: "random"
, "all"
, or "1"
β"12"
text_1
to text_12
: Optional style or instruction inputsOutput:
text
: Combined or selected text based on mode.AI4ArtsEd Random Instruction Generator
β Generates four creative, symbolic, or surreal instruction phrases to be used as part of prompt contexts.
Input:
text
(STRING) β typically a core concept or messageOutputs:
instruction_1
to instruction_4
(STRING)AI4ArtsEd Random Artform Generator
β Generates four culturally or stylistically distinct reinterpretation prompts, suitable for LLM context use.
Input:
text
(STRING)Outputs:
artform_1
to artform_4
(STRING)AI4ArtsEd Random Language Selector
β Selects 12 random languages from a curated list including both major and marginalized world languages, suitable for translation-based workflows such as stille_post
.
Input:
Outputs:
language_1
to language_12
(STRING): Language names selected from a diverse set of model-supported languages (including Yoruba, MΔori, Guarani, etc.)api_key
input field (masked).openrouter.key
in this node folder with your key on one line.
.gitignore
ensures this key is not versioned.
Use the ComfyUI Node Manager or clone the repo into your ComfyUI custom_nodes
directory:
This project includes adapted code from the following third-party sources:
ComfyUI-Show-Text by fairy-root
https://github.com/fairy-root/ComfyUI-Show-Text
Licensed under the MIT License.
Adapted in ai4artsed_show_text.py
to enable text output display in ComfyUI workflows.
comfyui-ollama by stavsap
https://github.com/stavsap/comfyui-ollama
Licensed under the Apache License 2.0.
Adapted in ai4artsed_openrouter_imageanalysis.py
and related files to support multimodal LLM image analysis.
See license/THIRD_PARTY_LICENSES/comfyui-ollama_APACHE.txt
for license details.
git clone https://github.com/yourusername/ai4artsed_comfyui.git