Nodes/ComfyUI-NynxzH3/H3 Rewrite Prompt
ComfyUI Node

H3 Rewrite Prompt

Builds the chat prompt the MiniMax-H3 prompt-rewriter LoRA was trained on — system prompt, task header, and reference-frame placeholders — plus the reference images batched in placeholder order. Feed both into Generate Text on a Qwen3-VL-8B encoder carrying the rewriter LoRA. ref2va is not supported by the adapter.

By Nynxz·Created 14 days ago·Updated 5 days ago· 4
H3 Rewrite Prompt
  • first_frame
  • last_frame
  • prompt
  • reference_images
prompt
taskt2va
resolution16:9
duration10
system_prompt
CategoryNynxz/H3/Prompt

Inputs (7)

NameTypeDefaultDescription
promptSTRINGThe short request to rewrite.
taskCOMBOt2vat2va: text only. i2va: first frame. l2va: last frame. fl2va: both.
resolutionCOMBO16:9Target aspect. Upstream defaults to 16:9 for t2va and adaptive for the image-conditioned tasks.
durationINT104–15Target duration in seconds. The rewriter paces the shot timeline to fit it.
first_frameoptIMAGERequired by i2va and fl2va.
last_frameoptIMAGERequired by l2va and fl2va.
system_promptoptSTRINGOverrides the trained system prompt. Leave empty — the adapter was trained on the built-in one, and replacing it moves the rewriter off the format it learned.

Outputs (2)

NameTypeDescription
promptSTRINGAlready chat-templated, so Generate Text's use_default_template has no effect on it.
reference_imagesIMAGEIn placeholder order. None for t2va — leave it unwired.