Extensions/anex.sh video
ComfyUI Extension

anex.sh video

Video with sound from MiniMax H3 and FastH3 on anex.sh, from inside ComfyUI: text to video, first and last frame, reference images and audio, video editing and upscaling to 2K or 4K.

By Mitoncz·Created 28 days ago·Updated 11 days ago· 4
Mitoncz/comfyui-anex
Nodes—
On cloudLocal install
Stars4
Updated11 days ago
Readme

anex.sh video for ComfyUI

Nodes that make video with sound on anex.sh from inside ComfyUI, billed to your anex.sh credits. Nothing runs on your GPU: each node sends a request to anex.sh, waits for the clip and hands it on as a ComfyUI VIDEO, audio included.

| node | model | does | |---|---|---| | anex.sh Text to Video | MiniMax H3 (50 steps), FastH3-8-Step-V2 (8 steps) | a clip from a prompt | | anex.sh First/Last Frame to Video | MiniMax H3 | a clip that starts on one image, ends on another, or both | | anex.sh Reference to Video / Edit Video | MiniMax H3 Ref2VA (the fast 4-step model, and the full 50-step render where offered) | people, products or places from up to 9 images in a new clip, voices or sounds from up to 3 audios, or up to 3 videos edited as the prompt describes | | anex.sh Upscale Video | | a clip at 2K, or at 4K where anex.sh offers it | | anex.sh Get Task | | the clip of a task made earlier, at no charge |

Clips are 768P (768 pixels on the short side), 2K or, where anex.sh offers it, 4K, 24 frames per second, 4 to 15 seconds. Every node also outputs the anex.sh task_id: connect it to Upscale Video to upscale that clip without sending it back. Upscale Video also takes a video you connect, from 768p up to 2K size.

Models

The model menu of the Text to Video, First/Last Frame and Reference nodes lists every model anex.sh offers for that node. The list is read from anex.sh when ComfyUI starts, so a model added on anex.sh shows up after a restart of ComfyUI, without updating the pack. Offline, the menus show the last list read, or the models the pack was released with.

The Reference node's menu lists the reference models anex.sh offers. It starts on MiniMax-H3-Ref2VA-SMD-4step, the fast 4-step model. MiniMax H3's full 50-step render appears in it as MiniMax-H3 when anex.sh offers it, and takes about ten times as long. Workflows saved before the menu existed open on the model they always used. A model that makes 768P only refuses 2K before anything is sent. The resolution menus list what anex.sh offers when ComfyUI starts, so 4K appears once anex.sh offers it.

Install

Search for "anex.sh video" in ComfyUI-Manager, or run comfy node install comfyui-anex. To install by hand, put this folder in ComfyUI/custom_nodes/ (for example git clone https://github.com/Mitoncz/comfyui-anex ComfyUI/custom_nodes/comfyui-anex) and restart ComfyUI. It needs nothing beyond ComfyUI's own packages.

The nodes are under "anex.sh/video" in the node library. Three ready workflows open from the Templates panel under "comfyui-anex", or by dragging a file from example_workflows/ onto the canvas:

  • anex_text_to_video: a 4 s FastH3 clip, then the same clip upscaled to 2K.
  • anex_first_last_frame: a clip that starts on an image you load.
  • anex_edit_video: a video you load, edited with an image as a reference.

Your API key

Create a key on the Keys page of the console and start ComfyUI with it in the environment:

export ANEX_API_KEY=<your key>
python main.py

The api_key field under each node's advanced inputs stays empty: its label reads "api_key (empty: ANEX_API_KEY is set)" when ComfyUI was started with the key, and the status line under the node names where a run took its key from. If the label reads "api_key (ANEX_API_KEY not set)", ComfyUI did not get the variable. ComfyUI Desktop, started from the Dock or the Start menu, does not see a variable exported in a terminal: on macOS run launchctl setenv ANEX_API_KEY <your key>, on Windows setx ANEX_API_KEY <your key>, then quit and reopen ComfyUI Desktop.

You can also paste the key into a node's api_key field. A key typed there is saved inside the workflow and in the metadata of the files ComfyUI writes, so anyone you share either with can use it. The environment variable keeps it out of both.

Organizations that keep their data in the EEA (European Economic Area) set region to eu on each node: the clip is then made and stored in the EU.

Prices

The node's status line shows the clip's list price before it starts. The prices are read from anex.sh when a node runs (and kept for 10 minutes), so they stay current without updating the pack or restarting ComfyUI; offline, the pack shows the last prices read, or those it was released with, which were:

| | per second of video | per reference image | per second of reference video | |---|---|---|---| | MiniMax H3 | $0.068 | first 5 free, then $0.034 | | | MiniMax H3 Ref2VA (4-step) | $0.051 | first 5 free, then $0.034 | $0.051 | | FastH3-8-Step-V2 | $0.017 | | | | 2K (MiniMax H3 and Ref2VA) | $0.11 | | $0.11 | | Upscale Video, to 2K | $0.0425 | | |

A reference video bills the part the model reads: its length or the clip's, whichever is shorter. Reference audio is free. Failed, refused and cancelled-while-queued requests cost nothing. Full details: anex.sh/docs/video.

Cancelling

Cancel the run in ComfyUI and the node cancels its anex.sh task. A task that is still queued is dropped at no charge. One that has started rendering finishes and is billed, because the render cannot be stopped part way.

Closing ComfyUI mid-run

The clip keeps rendering on anex.sh. If ComfyUI is still running when you come back, the node carries on and picks the clip up. If ComfyUI was closed or restarted, put the task id (shown under the node and in its error message) into an anex.sh Get Task node: it waits for the task if it has not finished and loads its clip, at no charge. Clips are kept 30 days.

Inputs you supply

Images, audio and videos are uploaded to anex.sh storage (never to a third party) and kept for 24 hours.

  • Images: 256 to 5,760 pixels a side, width / height from 0.4 to 2.5.
  • Reference audio: up to 3 AUDIO inputs, 2 to 15 seconds each, 15 seconds in total. The node sends each one as a WAV file, at most 15 MB, whatever it was loaded from. Name them in the prompt as Audio 1, 2 and 3 (or reference audio 1, 2 and 3), in the order they are connected.
  • Reference videos: 2 to 15 seconds each, 15 seconds in total, 50 MB each. A video that is not H.264 MP4 is re-encoded before upload.

Every request is checked against the use rules of the MiniMax H3 licence before anything is generated, reference sound included: the words spoken or sung in audio and in video soundtracks are transcribed for the check. A refused request fails the node with the reason and is not billed. See the terms.

Environment variables

| variable | for | |---|---| | ANEX_API_KEY | your API key |

The nodes send your key only to anex.sh: tasks.anex.sh and api.anex.sh, or tasks-eu.anex.sh and api-eu.anex.sh with region set to eu. Nothing in the environment can point them at another host.

Licence

MIT. The models' own licences apply to the video you make with them; see anex.sh/docs/video.