What is glTF?
glTF is already web-ready but often unoptimized; Zlim applies mesh quantization, Draco compression, and texture mipmap generation to produce a production-grade GLB.
Zlim converts glTF (.gltf) to an optimized GLB file — typically 70–80% smaller than the source — without any manual mesh cleanup or format-juggling.
How to convert glTF to GLB via the API
The hosted API is asynchronous: create a job, upload your glTF file to the returned grant, mark the upload complete, then poll until it succeeds. See the full REST flow.
# 1. Create a job → returns an upload grant (putUrl)
curl -X POST https://zlim.ai/api/v1/jobs \
-H "Authorization: Bearer $ZLIM_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "filename": "model.gltf", "options": { "preset": "balanced" } }'
# 2. Upload the bytes, then mark the upload complete
curl -X PUT "$PUT_URL" --data-binary @model.gltf
curl -X POST https://zlim.ai/api/v1/jobs/$JOB_ID/complete-upload \
-H "Authorization: Bearer $ZLIM_API_KEY"
# 3. Poll until succeeded, then download the signed result URL
curl https://zlim.ai/api/v1/jobs/$JOB_ID/result-url \
-H "Authorization: Bearer $ZLIM_API_KEY"How to convert glTF to GLB via the CLI
The Zlim CLI runs the engine locally and in-process — no account or API key required (see the CLI docs):
zlim optimize model.gltf -o model.glb -p balanced
# → model.glb (70–80% smaller)glTF vs. GLB — why convert?
glTF was designed for content-creation workflows — it may carry rig data, animation tracks, or verbose ASCII that's unnecessary for real-time rendering. GLB is the W3C/Khronos real-time standard: a single binary bundle, GPU-friendly, supported by every web viewer, AR framework, and game engine. Converting with Zlim yields a GLB that is 70–80% smaller than a naive export.
FAQ
Does Zlim support all variants of glTF?
Zlim handles the most common glTF variants (.gltf). If your file uses a non-standard extension or proprietary sub-format, check the docs or contact support.
Will the converted GLB look the same?
Yes — Zlim preserves visual fidelity. Mesh topology, UV maps, and materials are retained. The reduction comes from compression and quantization, not geometry removal.
How long does the conversion take?
Most jobs complete in seconds. Large CAD assemblies or high-polygon meshes (50 MB+) may take 15–30 seconds.
Is there a file size limit?
The limit depends on your plan: 50 MB on Free, 250 MB on Pro, and 1 GB on Studio and Enterprise.
Convert glTF to GLB now
Start free — 25 optimizations a month. No card required.