Skip to main content

Convert - STEP to glTF (.glb)

POST 

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

Simple STEP → glTF conversion 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

Simple STEP → glTF conversion 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).

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" \
-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.