---
title: "Convert - STEP to glTF (.glb), advanced options"
method: POST
path: "/api/v1/convert/step-to-gltf-advanced"
tags: ["Convert"]
---

# Convert - STEP to glTF (.glb), advanced options

`POST /api/v1/convert/step-to-gltf-advanced`

Full-control STEP → glTF conversion with fine-grained mesh, export, and coordinate options. Requires the 'convert' API key scope. Returns 202 with a task ID.

## Request body

- StepToGltfAdvancedBody — Convert a STEP file to glTF with full control over tessellation, naming, coordinate systems, and output format.
  - `stepFileId` string, required — ID of the previously uploaded STEP file (returned by the file upload endpoint)
  - `options` ConvertAdvancedOptions — Fine-grained options controlling STEP → glTF conversion: tessellation quality, attribute extraction, coordinate systems, and output format.
    - `readColors` boolean — Extract color attributes from the STEP file and apply to glTF materials
    - `readNames` boolean — Extract product/instance names from the STEP file and apply to glTF node names
    - `readMaterials` boolean — Extract material definitions from the STEP file
    - `readLayers` boolean — Extract layer/group structure from the STEP file
    - `readProps` boolean — Extract custom properties (e.g. part numbers, metadata) from the STEP file
    - `meshDeflection` number — Mesh tessellation precision (lower = finer). Range: [0.0001, 10]
    - `meshAngle` number — Mesh angular deflection in radians. Range: [0.01, π]
    - `meshParallel` boolean — Enable parallel tessellation for faster processing
    - `meshRelative` boolean — Use size-aware relative deflection per face. When true, meshDeflection is a fraction of each edge's length. Set to false for absolute deflection in model units.
    - `internalVerticesMode` boolean — Add interior vertices for better curved face fidelity (slower, set false for speed).
    - `controlSurfaceDeflection` boolean — Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed).
    - `faceCountThreshold` integer — Face count threshold for per-sub-shape meshing fallback. Default -1 means single-pass meshing of the whole compound (fastest). Set to a positive value (e.g. 100000) to fall back to per-solid meshing for very large assemblies in memory-constrained environments.
    - `mergeFaces` boolean — Merge co-planar adjacent faces to reduce mesh complexity
    - `splitIndices16` boolean — Split meshes so each uses 16-bit index buffers (max 65535 vertices per mesh). Improves compatibility with some renderers.
    - `parallelWrite` boolean — Write glTF output in parallel for faster file generation
    - `embedTextures` boolean — Embed texture data directly in the .glb file instead of referencing external URIs
    - `forceUVExport` boolean — Generate UV coordinates even when no textures are present (useful for post-processing)
    - `nodeNameFormat` 'empty' | 'product' | 'instance' | 'instanceOrProduct' | 'productOrInstance' | 'productAndInstance' | 'productAndInstanceAndOcaf' — How node/mesh names are derived from STEP product/instance labels
    - `meshNameFormat` 'empty' | 'product' | 'instance' | 'instanceOrProduct' | 'productOrInstance' | 'productAndInstance' | 'productAndInstanceAndOcaf' — How node/mesh names are derived from STEP product/instance labels
    - `transformFormat` 'compact' | 'mat4' | 'trs' — Transform representation in glTF output
    - `adjustZtoY` boolean — Convert from Z-up (CAD convention) to Y-up (glTF/WebGL convention) coordinate system
    - `scale` number — Uniform scale factor. Range: [1e-6, 1000]

## Response `202`

Task accepted

- TaskAcceptedResponse — HTTP 202 response when a task is accepted for async processing
  - `ok` true, required
  - `data` TaskCreatedResult, required — Returned when a CAD task is accepted. Poll the statusUrl to track progress.
    - `taskId` string, uuid, required — Unique task identifier - use this to poll for status and retrieve results
    - `status` 'queued', required — Initial task status (always 'queued' upon creation)
    - `statusUrl` string, required — Relative URL to poll for task status updates

## Other responses

- `400` — Validation error
- `403` — Insufficient scope
- `500` — Server error

## Changes

- **2026-05-22** `57c0552c7891` — 3 info
  - added the new optional request property `options/controlSurfaceDeflection`
  - added the new optional request property `options/internalVerticesMode`
  - added the new optional request property `options/meshRelative`
- **2026-05-04** `43c3bc84d7c1` — 1 info
  - the `options/meshDeflection` request property's min was decreased from `0.01` to `0.00`
- **2026-04-30** `bef883f8a334` — 1 breaking, 13 info
  - the `stepFileId` request property's minLength was increased from `0` to `1`
  - api operation id `convertStepToGltfAdvanced` removed and replaced with ``
  - the `options/meshAngle` request property's max was increased from `3.14` to `3.14`
  - the `stepFileId` request property type/format was generalized from `string`/`uuid` to `string`/``
  - …10 more
- **2026-04-17** `5eb4ed0f33c7` — 8 breaking, 6 warning, 4 info
  - the `options/meshAngle` request property's max was decreased to `3.14`
  - the `options/meshDeflection` request property's min was increased to `0.01`
  - the `stepFileId` request property type/format changed from `string`/`` to `string`/`uuid`
  - the response property `data` became optional for the status `202`
  - …14 more

[Change history](https://skmtc.dev/bitbybit-dev/apis/bitbybit-cad-cloud-api/changes/api/v1/convert/step-to-gltf-advanced/post.md)

---

[API](https://skmtc.dev/bitbybit-dev/apis/bitbybit-cad-cloud-api.md) · [All operations](https://skmtc.dev/bitbybit-dev/apis/bitbybit-cad-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bitbybit-dev/bitbybit-cad-cloud-api/revisions/1135d4473bc2/schema)
