Open video-to-3D · GGUF · runs locally
A video in,
a 3D scene out.
VGGT-Omega as a single GGUF file. Run it on your own GPU, send it a clip over an OpenAI-style endpoint, and get back the place it was filmed in as a coloured point cloud, with the route the camera took through it.
# 1. runtime
GGK_CUDA=1 pip install ggk
# 2. serve the model
ggk -m vggt-omega-1b-q8_0.gguf \
--serve --port 8888
# 3. video in, scene out
curl -f 127.0.0.1:8888/v1/images/edits \
-F image=@clip.mp4 -o scene.glb
- Model
- VGGT-Omega 1B image encoder, aggregator, camera and depth heads in one file
- Download
- 1.06 to 2.29 GB nvfp4, q8_0 or f16; one GGUF
- Hardware
- 6 GB GPU about 10 s for a 15 second clip
- Output
- glb · ply points, plus a camera per frame
- API
- OpenAI-style POST /v1/images/edits
Try it
This page talks to your server, straight from the browser. Your videos are sent nowhere else.
Endpoint: http://127.0.0.1:8888/v1/images/edits
ggk -m vggt-omega-1b-q8_0.gguf --serve --port 8888
- Film one place while moving through it or around it. A camera that only turns on the spot gives the model little to measure depth with.
- One frame per second is taken, 32 at most: a 10 to 30 second clip is plenty. Longer clips are sampled more thinly.
- A scene can be changed after it arrives: press Edit under the viewer. A
.glbor.plydropped here opens for editing too. - Frames per second, resolution, confidence and format are under .
Your 3D scene appears here.
Reconstruction runs on your machine: about 10 seconds for a 15 second clip on a 6 GB GPU.
0:00
Reconstructing…
Region and Clean up work on the selection, or on the whole scene when nothing is selected.
Request
Quickstart
Two packages ship the same engine. Pick one; only the command name differs.
-
Install the runtime
Python 3.8+. The install compiles the engine: CPU by default, Metal on macOS. A GPU makes this model quick, so pick a backend.
GGK_CUDA=1 pip install ggk # NVIDIA GGK_HIP=1 pip install ggk # AMD ROCm GGK_VULKAN=1 pip install ggk # Vulkan pip install ggk # CPU only: works, allow minutes per clipThe video-to-3D server is in
ggkreleases after 1.2.2 andgguf-corereleases after 1.0.4. An older one answers--serve is not available for VGGT-Omega: upgrade it. On Windows cmd, set the variable first:set GGK_CUDA=1, thenpip install ggk. -
Get the model file
One GGUF holds the whole model. Download one from huggingface.co/gguf-org/vggt-omega-gguf.
File What it is Size vggt-omega-1b-q8_0.ggufVGGT-Omega 1B, 8-bit weights. The one used on this page. 1.36 GB vggt-omega-1b-nvfp4.ggufNVFP4 weights: the smallest. 1.06 GB vggt-omega-1b-f16.ggufHalf precision: the reference. 2.29 GB -
Start the server
--serveanswers over HTTP instead of writing one file and exiting.ggk -m vggt-omega-1b-q8_0.gguf --serve --port 8888It listens on
127.0.0.1:8888at once. Add--api-key <key>to require a key,--host 0.0.0.0to serve your network,--video-max-frames 16for a small GPU or the CPU. -
Turn a video into a scene
curl -f http://127.0.0.1:8888/v1/images/edits \ -F image=@clip.mp4 \ --output scene.glbThe answer is the scene file itself, when it is done: about 10 seconds for a 15 second clip on a 6 GB laptop GPU. Or skip the server and write one file:
ggk -m vggt-omega-1b-q8_0.gguf --video clip.mp4 -o scene.glbKeep the
-f. Without it a failed request saves the JSON error message asscene.glb.
API
OpenAI has no 3D endpoint, so the server borrows the one with the same shape: the image edit. Pictures go in, an asset comes out. The video travels in the image field, which is what OpenAI SDKs send; set their base_url to your server.
POST /v1/images/edits
A multipart form with the video as a file part, or a JSON body with it as base64. The response is the scene file itself.
| Field | Meaning |
|---|---|
image required | The video (also read from video or file), up to 1 GB. Or the frames themselves: several image parts, PNG, JPEG, WebP or BMP, in order. In JSON: base64 or a data: URI, one string or an array. URLs are not fetched. |
fps | Frames taken per second of video. Default 1. |
max_frames | The most frames given to the model, spread evenly over the video. Default 32, at most 256. Time grows with its square. |
pipeline | The resolution the frames are seen at, 112 to 1024. Default 512, what the model is trained at. resolution is the same field. |
confidence | Percent of the points dropped as the least confident, 0 to 100. Default 20; 30 to 50 suits sky and water. |
max_points | The most points returned. Default 1000000; -1 for every confident pixel of every frame. |
cameras | false leaves the cameras out of the .glb: the points alone. |
output_format | glb (default) or ply. |
response_format | Leave it out for the file. b64_json wraps it in OpenAI's images object, data[0].b64_json, and adds the cameras as numbers under scene.cameras. |
model, prompt, seed, size | Accepted and ignored: the model is one feed-forward pass. n must be 1. |
The scene
.glb | Binary glTF 2.0. Node points: a POINTS primitive with POSITION and COLOR_0. Nodes frame_000, frame_001, …: one glTF camera per frame, in order: the motion route. Mesh cameras draws them as small pyramids, red for the first frame through the rainbow to violet. |
.ply | Binary, the points with 8-bit colours. No cameras. |
| Axes | The first frame's camera sits at the origin looking down −z with y up. The unit is the model's own: it does not know the scene's true size. |
| Size | One point per confident pixel, a million at most by default: about 20 MB as GLB, 15 MB as PLY. |
| Headers | X-Scene-Points, X-Scene-Cameras, X-Scene-Frame-Size, X-Scene-Extent. |
Other endpoints
GET /health | {"status":"ok"} as soon as the port is open. |
GET /v1/models | The model, with meta.type = "video-to-3d", its defaults, limits and output formats. |
curl -f http://127.0.0.1:8888/v1/images/edits \
-F image=@clip.mp4 \
-F fps=2 -F max_frames=24 \
--output scene.glb
# photographs instead of a video, as PLY, with an API key
curl -f http://127.0.0.1:8888/v1/images/edits \
-H "Authorization: Bearer $API_KEY" \
-F image=@a.jpg -F image=@b.jpg -F image=@c.jpg \
-F output_format=ply \
--output scene.ply
# request.json: {"video": "<base64 of the file>", "fps": 2}
python -c "import base64, json; json.dump({'video': base64.b64encode(open('clip.mp4','rb').read()).decode(), 'fps': 2}, open('request.json','w'))"
curl -f http://127.0.0.1:8888/v1/images/edits \
-H "Content-Type: application/json" \
-d @request.json \
--output scene.glb
import base64, json, urllib.request
video = base64.b64encode(open("clip.mp4", "rb").read()).decode()
req = urllib.request.Request(
"http://127.0.0.1:8888/v1/images/edits",
data=json.dumps({"video": video, "response_format": "b64_json"}).encode(),
headers={"Content-Type": "application/json"},
)
# the answer comes when the scene is done
with urllib.request.urlopen(req, timeout=1800) as res:
out = json.load(res)
open("scene.glb", "wb").write(base64.b64decode(out["data"][0]["b64_json"]))
# the motion route: where each frame was taken from
for cam in out["scene"]["cameras"]:
print(cam["frame"], cam["position"])
import base64
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8888/v1",
api_key="not-needed", timeout=1800)
result = client.images.edit(
model="vggt-omega",
image=open("clip.mp4", "rb"),
prompt="",
response_format="b64_json",
)
with open("scene.glb", "wb") as f:
f.write(base64.b64decode(result.data[0].b64_json))
Errors come back as JSON: {"error": {"code": 400, "message": "…"}}. One scene is reconstructed at a time; concurrent requests queue.
For AI agents
Hand your coding agent one file and it can install the runtime, start the server and turn videos into scenes. It is plain text, self-contained, and needs no JavaScript to read.
/llms-full.txtThe complete guide: install, the model file, server options, every request field, the scene file and its cameras, timings, pitfalls./llms.txtThe short index, in the llms.txt convention.
Read llms-full.txt and follow it:
install ggk with the GPU backend for this machine, start the
VGGT-Omega video-to-3D server on port 8888, then turn
clip.mp4 into a 3D scene and save it as scene.glb. Use
curl -f, wait for the response, and tell me how many
points and cameras came back and where the camera went.