The Last Shift: Qwen Image and LTX 2.5 Video with ComfyUI on a Mac

A robot's final act in nine shots. Every still and every clip was generated locally with Qwen Image 2.1 and LTX-2.5.

A robot has one percent of its power left. A seedling is freezing beside it. The robot gives the greenhouse its battery, sits down, and goes dark. Years later, a white flower grows in its open palm.

That is the story of The Last Shift, a 30-second science-fiction short made entirely with local models on Apple Silicon. Qwen Image 2.1 generated the character design and the scene keyframes. LTX-2.5 animated the approved images. ComfyUI ran the image, motion, and edit stages, and Rapid-MLX served both models. Thirteen still generations and eleven video generations produced the nine selected shots.

Watch The Last Shift (30 seconds, sound on). This 720p preview is smaller than the 1920×1080 editorial master. Download the MP4.

Try it on your Mac

With Python 3.11 or newer and FFmpeg on an Apple Silicon Mac, install Rapid-MLX 0.16.0 or newer. (Update, October 30, 2026: Rapid-MLX 1.0.1 and later need Python 3.12 or newer.) Start the image server to make keyframes:

pip install rapid-mlx
rapid-mlx serve qwen-image-2.1

When the stills are approved, stop it and start the video server:

rapid-mlx serve ltx-2.5-mlx-q8

The v0.16.0 model catalog lists both aliases:

Alias Job Minimum unified memory First download
qwen-image-2.1 Text to image 8 GB about 8.9 GiB
ltx-2.5-mlx-q8 Image to video 24 GB about 67.7 GB

Vision, image, and video runtimes ship in the base install. This film used an M4 Pro with 48 GB and an M5 Max with 36 GB.

For a keyframe, send POST /v1/images/generations with model, prompt, size, steps, and guidance. For image-to-video, send a motion prompt and the still as input_reference in a multipart POST /v1/videos request. Poll GET /v1/videos/{id} until it completes, then download GET /v1/videos/{id}/content. The Qwen-Image and LTX family guides show the request shapes; the production example includes the ComfyUI nodes and clients.

Film transcript and visual description

There is no dialogue. A sparse piano cue and quiet air run beneath the shots; warning beeps, a relay click, a heater hum, and a descending shutdown tone mark the story beats. The player includes English captions for these sounds and the on-screen text.

Time What happens on screen
0–3 s “MARS · ABANDONED OUTPOST.” A worn ivory robot with one amber eye notices a small seedling inside a cold greenhouse.
3–5.5 s “POWER REMAINING: 1%.” Two warning beeps sound over a close view of the orange power cartridge in the robot's chest.
5.5–8.5 s The seedling droops beneath an unlit heater as the robot watches through the glass.
8.5–11.5 s The robot holds its only cartridge up to the heater. Its chest is empty.
11.5–15 s A relay clicks. The cartridge is installed in the heater; warm light falls on the seedling as the heater hums.
15–18 s The robot sits down in the greenhouse. A descending tone accompanies its shutdown; its eye goes dark.
18–20.5 s A close view holds on the dark eye, with the seedling upright behind it.
20.5–24.5 s “YEARS LATER.” Daylight fills the now-green greenhouse. The same robot remains seated and unlit.
24.5–30 s A white flower grows in the robot's open palm. “THE LAST SHIFT” appears, and the piano fades.

The production at a glance

Stage What we used
Story and shot planning A nine-shot script with explicit character and prop states
Character design and keyframes Rapid-MLX serving Qwen Image 2.1, MLX 4-bit
Workflow orchestration ComfyUI with image, motion, and edit nodes that call Rapid-MLX
Video inference Rapid-MLX serving LTX-2.5, MLX Q8 distilled runtime
Hardware Apple M4 Pro with 48 GiB and M5 Max with 36 GiB unified memory
Editing and delivery FFmpeg inside a ComfyUI node, motion interpolation, Lanczos scaling, typeset English graphics
Music and sound Original piano rendered through AVFoundation, synthesized effects, quiet native clip audio

Images use the Qwen Image 2.1 Q4 checkpoint, with the transformer and the Qwen3-VL text encoder both quantized to four bits. Video uses MrMofer/ltx-2.5-mlx-q8 weights. The M4 Pro generated the turnaround and the opening still; the M5 Max generated the remaining stills and retakes. Both Macs generated video clips.

Start with a story the pictures can explain

Thirty seconds leaves little room for exposition. We chose one location, one protagonist, and one important prop: an orange power cartridge. The audience needed to understand where that cartridge was, what it powered, and what giving it away cost.

The film transcript follows the cartridge and the robot's state through all nine shots. Each image has one visual job.

Cold blue light gives way to amber warmth and then golden daylight. The change in light supports the story without requiring dialogue.

Establish the robot before generating the scenes

We first generated a turnaround for R-07: worn ivory enamel, black mechanical joints, a rounded cube head, one circular optical eye, a navy triangle on the head, and a single orange chest cartridge. The eye and the cartridge give the audience two simple signals to track.

R-07 character turnaround from Qwen Image 2.1 showing front, three-quarter, and back views of a worn ivory robot with one amber eye and an orange chest cartridge.

R-07, generated with local Qwen Image 2.1. The weathered silhouette, single eye, and orange cartridge set the visual brief for the scene prompts.

The scene keyframes are independent text-to-image generations. We turned the turnaround's visible features into a written character brief and repeated it in every scene prompt; the turnaround's pixels were not fed into the scene generations. The design stays recognizable, while small differences in proportions, markings, and greenhouse geometry remain visible across shots. Review and composition carry part of the continuity burden.

The most important continuity rules were simple:

These rules make the sacrifice legible. A battery reappearing in the chest or an eye lighting up again would change the meaning of the ending.

Approve the keyframes before asking for motion

We generated the turnaround and nine scene keyframes at 1536×768 with 40 steps and guidance 1.0. Thirteen still generations produced the ten selected images. Approving stills first let us inspect the character, staging, and narrative state before spending time on motion.

The ComfyUI image node sends POST /v1/images/generations with model: qwen-image-2.1, the prompt, a seed, size: 1536x768, steps: 40, and guidance: 1.0. Rapid-MLX returns one image, which ComfyUI saves before visual review. Each accepted keyframe is tied to a SHA-256 digest, so motion cannot silently use a different input.

Nine Qwen Image 2.1 keyframes following the robot from the power decision to the flower years later.

The nine selected keyframes, in story order. These are still-image inputs, rather than nine frames sampled from a single generated video.

The motion prompts were deliberately restrained: a slow camera push, a slight head movement, drifting dust, trembling leaves. Each shot had one visual task. We avoided asking a short generation to perform an entire sequence of actions.

For example, the battery insert uses this prompt excerpt:

Cinematic close-up insert of the single orange power cartridge installed vertically in the worn ivory robot chest. Extremely slow camera push only. Robot completely motionless. Plain blank ivory chest panel remains unchanged around the cartridge.

The image provides the composition. The prompt specifies the limited change that should occur over time.

Connect ComfyUI to Rapid MLX

ComfyUI orchestrates all three stages. The image node calls the local image endpoint and returns a ComfyUI IMAGE tensor. The motion node encodes the approved image as a PNG, submits a video job, and returns a VIDEO object with generated audio. The edit node runs the soundtrack and FFmpeg renderer, then returns the finished VIDEO to SaveVideo. The learned models run in Rapid-MLX; the final edit is deterministic code.

Story and continuity rules
            |
            v
ComfyUI: RapidMLXQwenImage -> SaveImage
            |
            v
Rapid-MLX image API -> Qwen Image 2.1 / MLX Q4
            |
            v
Visual review -> Accepted keyframe + SHA-256
            |
            v
ComfyUI: LoadImage -> RapidMLXLastShift -> SaveVideo
                           |
                           v
               Rapid-MLX asynchronous video API
                           |
                           v
               LTX-2.5 / MLX Q8 distilled
                    M4 Pro and M5 Max
                           |
                           v
              Review -> Retake -> Select
                           |
                           v
ComfyUI: RapidMLXLastShiftEdit -> SaveVideo
         Original score and sound effects
         FFmpeg timing, interpolation, and upscale
         Typeset English graphics
                           |
                           v
                 30-second English film

Each native clip used the same geometry and frame rate:

{
  "model": "ltx-2.5-mlx-q8",
  "size": "1024x512",
  "frames": 65,
  "fps": 24,
  "seed": 90102
}

The request also included a motion prompt and the PNG as input_reference. Each native clip contained approximately 2.71 seconds of footage.

The asynchronous API flow was:

POST /v1/videos
       |
       v
Persist accepted job ID and request fingerprint
       |
       v
GET /v1/videos/{id} until completed
       |
       v
GET /v1/videos/{id}/content
       |
       v
Save MP4 and its SHA-256 digest

Persisting receipts matters on long-running workers. Video jobs record their accepted IDs before polling, and completed files are checked against SHA-256 before reuse. Image requests are synchronous and record their intent before submission. If an image response is lost, the unresolved receipt stops an automatic retry until the server is inspected. The batch also checks that the image ComfyUI loaded matches the reviewed hash.

Retake what changes the meaning of the story

Review happens at two levels. Still-image review catches framing, pose, and text errors before any motion is generated. Start, middle, and end frames of each clip then reveal changes that appear over time.

Three stills were rejected. The first low-power insert was framed too wide. The second showed an incorrect power number. A shutdown portrait showed the robot standing. The fix for the insert was to change what the camera needed to see: the selected take leaves the chest panel blank, and the edit typesets the exact warning.

Three low-power stills: one rejected for wide framing, one rejected for an incorrect generated number, and the selected plain-panel close-up.

Rejected low-power stills and the selected blank-panel insert. Generated numbers were removed from the visual requirement; exact English typography is added during the edit.

Two clips were retaken. An opening take let the robot's eye go dark before the sacrifice, so we regenerated it with a stationary head and an explicit instruction to keep the amber core lit. A shutdown close-up was retaken to reduce head movement. The selected take still settles slightly before it holds, while the eye stays dark; a stationary-pose prompt alone does not guarantee perfect stillness.

Reducing the action in each shot makes temporal errors easier to catch. We checked identity, cartridge count, chest state, eye state, and the intended action. Independent text-to-image shots still vary a little in geometry; this pipeline does not produce a rigid character or set reconstruction.

Build the final rhythm in the edit

Nine native clips did not automatically make a finished film. The renderer assigned explicit durations, retimed the footage, used motion-compensated interpolation, and added a brief hold at the end of the closing shot.

The edit contains exactly 720 frames at 24 fps, giving a 30.000-second delivery.

Native generation was 1024×512. FFmpeg scaled the image to 1920×960, then placed it inside a 1920×1080 frame with letterboxing. The master is a 1080p delivery derived from lower-resolution inference; it is an editorial upscale.

We added four pieces of English text in post:

MARS · ABANDONED OUTPOST
POWER REMAINING: 1%
YEARS LATER
THE LAST SHIFT

English title cards and captions typeset over frames from the finished film.

Typeset graphics from the English export. Critical story information remains readable independently of small generated lettering on props.

Keeping typography in the edit node makes language and numbers exact. The power warning, time jump, and title are typeset in English; they do not depend on an image or video model reproducing small lettering.

Give the shots a continuous sound world

The soundtrack combines quiet native clip audio with an original sparse piano cue and synthesized warning, relay, and shutdown effects.

The piano was rendered offline through AVFoundation using a bundled macOS instrument. The effects were synthesized in code. No separate music-generation model was used. Continuous music, short fades, and a controlled mix connected the individual shots into one scene.

Keep the production reproducible

The production source includes the Qwen image prompts, motion prompts, ComfyUI API workflows, three custom nodes, persisted-job clients, music and sound code, the renderer, and verification notes. Media is maintained separately from the source tree.

The three stages run from the example directory. Replace the loopback ports with your own server endpoints:

python qwen_batch.py --stage images \
  --image-url http://127.0.0.1:19427 \
  --output media/qwen-v1 --comfy-input /path/to/ComfyUI/input

# Inspect the stills before requesting motion.
python qwen_batch.py --stage videos \
  --video-url http://127.0.0.1:19428 \
  --output media/qwen-v1 --comfy-input /path/to/ComfyUI/input

python qwen_batch.py --stage edit \
  --output media/qwen-v1 --comfy-input /path/to/ComfyUI/input

The remake used Rapid-MLX d4143862f, ComfyUI 0df64eb242b7c5759c3e86afd5d1846d923b1033, and LTX runtime 57952288076766abe27dda3a774b2c24f7346977. Qwen weights were pinned to 746a58556820933a2df5c75887a2570f1ad200c0; LTX weights to f1b56e7dc89f71a9af2cddac787b89ed22a8b7fc.

The selected source clips and English master passed full decoding checks. Per-shot receipts, source hashes, final stream metadata, and review images preserve the connection between the selected takes and the finished edit.

For another ComfyUI project, see our imaginary travel posters made with Rapid-MLX image generation. That project stops at still images; this one carries the same local image model into video.

The production shows a practical division of work: establish identity with Qwen Image stills, generate controlled motion with LTX-2.5, then use editing and sound to shape the viewer's attention. R-07's story works when the audience can follow one cartridge from its chest to the heater—and understand why its eye never lights up again.


Run this yourself. Rapid-MLX is an open-source, OpenAI- and Anthropic-compatible inference server for Apple Silicon. One command installs it, then rapid-mlx serve <alias> serves any model on localhost:8000/v1.
curl -fsSL https://rapidmlx.com/install.sh | bash

New models and speedups, in your inbox

A short note whenever Rapid-MLX gets faster or adds models worth running on your Mac. No spam — unsubscribe anytime.