Skip to main content

Convert - STEP to Draco-compressed glTF (.glb)

POST 

/api/v1/convert/step-to-gltf-with-draco

STEP → glTF conversion with Draco geometry compression using a previously uploaded file. Requires the 'convert' API key scope. Returns 202 with a task ID.

Request

Responses

Task accepted

Reference

POST /api/v1/convert/step-to-gltf-with-draco

STEP → glTF conversion with Draco geometry compression using a previously uploaded file. Requires the 'convert' API key scope. Returns 202 with a task ID.

Request body

Content type: application/json (required)

FieldTypeRequiredDescription
stepFileIdstringyesID of the previously uploaded STEP file (returned by the file upload endpoint)
meshPrecisionnumbernoMesh tessellation precision (lower = finer). Range: [0.0001, 10]
meshAnglenumbernoMesh angular deflection in radians. Range: [0.01, π]
meshRelativebooleannoUse size-aware relative deflection per face. When true, meshPrecision is a fraction of each edge's length. Set to false for absolute deflection in model units.
internalVerticesModebooleannoAdd interior vertices for better curved face fidelity (slower, set false for speed).
controlSurfaceDeflectionbooleannoExtra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed).
dracoobjectnoDraco geometry compression options applied during glTF export.
draco.useDracobooleannoApply Draco geometry compression to the glTF output. Defaults to true for the *-with-draco endpoints.
draco.dracoCompressionLevelintegernoDraco compression level (0 = fastest/largest, 10 = slowest/smallest). Typical good default is 7.
draco.dracoQuantizePositionBitsintegernoQuantization bits for vertex positions (higher = more precise, larger file). Typical: 14.
draco.dracoQuantizeNormalBitsintegernoQuantization bits for normal vectors. Typical: 10.
draco.dracoQuantizeTexcoordBitsintegernoQuantization bits for texture coordinates. Typical: 12.
draco.dracoQuantizeColorBitsintegernoQuantization bits for vertex colors. Typical: 8.
draco.dracoQuantizeGenericBitsintegernoQuantization bits for generic vertex attributes. Typical: 12.
draco.dracoUnifiedQuantizationbooleannoUse unified quantization across all meshes (better when meshes share a coordinate frame).

Responses

StatusDescription
202Task accepted
400Validation error
403Insufficient scope
500Server error

Example request

curl -X POST "https://api.bitbybit.dev/api/v1/convert/step-to-gltf-with-draco" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ ... }'

Authentication: send your key in the x-api-key header. The full machine-readable specification is at openapi.json.