One file instead of three, and a format the browser actually speaks.
An OBJ is rarely just an OBJ. It is an .obj, plus an .mtl
describing materials, plus however many texture images — all referenced by relative
path, all easy to lose. Anyone who has received a "broken" model that was really a
missing .mtl knows the problem. GLB packs the whole thing into a single
binary file with nothing to lose.
curl -X POST "https://apimycad.com/v1/mesh?to=glb" \
-H "X-API-Key: YOUR_KEY" \
-F "file=@model.obj" \
-o model.glb
This endpoint takes a single uploaded file, so an OBJ that references an external
.mtl converts with its geometry intact but without those material
definitions. If appearance matters, either bake materials before exporting, or export
GLB directly from your 3D tool. If you only need the shape — a preview, a viewer, a
configurator body — the conversion is exactly what you want.
| Single file | Geometry, materials and textures in one binary — nothing to lose in transit |
|---|---|
| Smaller | Binary rather than ASCII text; an OBJ's vertex list is enormous by comparison |
| Native support | Loads directly in three.js, Babylon.js, <model-viewer> and iOS/Android AR |
| Open standard | Khronos glTF 2.0 — no vendor licence, no proprietary reader |