mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-12 22:33:54 -04:00
Add a Darwin-only MLX-Video backend for LTX-2 and converted Wan checkpoints, expose it through the existing video API, and wire packaging, discovery, tests, docs, and an example. Assisted-by: Codex:gpt-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
MLX-Video on Apple Silicon
Install the backend and start LocalAI with the example model configuration:
local-ai backends install mlx-video
local-ai run --models-path ./examples/mlx-video
Generate a short video:
curl http://localhost:8080/video \
-H 'Content-Type: application/json' \
-d '{
"model": "ltx2-mlx",
"prompt": "Ocean waves at golden hour, locked camera",
"width": 768,
"height": 512,
"num_frames": 49,
"fps": 24
}'
MLX-Video and its models require substantial unified memory. Reduce the canvas and frame count first if generation exhausts memory.