Skip to main content

Models - build a Dragon Cup

POST 

/api/v1/models/dragon-cup

Parametric dragon-scale textured cup with twisted lofted body, voronoi-like skin cells, and configurable shell thickness. All parameters are optional - defaults produce a ready-to-print model.

Request

Responses

Task accepted

Reference

POST /api/v1/models/dragon-cup

Parametric dragon-scale textured cup with twisted lofted body, voronoi-like skin cells, and configurable shell thickness. All parameters are optional - defaults produce a ready-to-print model.

Request body

Content type: application/json (required)

FieldTypeRequiredDescription
paramsobjectnoDragon Cup model parameters - all optional, sane defaults apply
params.heightnumbernoTotal cup height (cm)
params.radiusBottomnumbernoRadius at the base (cm)
params.radiusTopOffsetnumbernoHow much the top radius differs from bottom
params.radiusMidOffsetnumbernoMid-section radius offset
params.rotationTopAnglenumbernoTop twist angle (degrees)
params.rotationMidAnglenumbernoMid twist angle (degrees)
params.nrSkinCellsVerticalintegernoVertical skin cell count
params.nrSkinCellsHorizontalintegernoHorizontal skin cell count
params.nrSkinCellDivisionsTopintegernoSubdivisions at top of each cell
params.nrSkinCellDivisionsBottomintegernoSubdivisions at bottom of each cell
params.skinCellOuterHeightnumbernoOuter cell extrusion height
params.skinCellInnerHeightnumbernoInner cell extrusion height
params.skinCellBottomHeightnumbernoBottom cell height
params.skinCellTopHeightnumbernoTop cell height
params.thicknessnumbernoShell wall thickness
params.bottomThicknessnumbernoBottom plate thickness
params.precisionnumbernoMesh tessellation precision (lower = finer). Range: [0.0001, 10]
params.rotationnumbernoFinal rotation angle (degrees)
params.scalenumbernoUniform scale factor. Range: [1e-6, 1000]
params.originarray of objectno3D point as [x, y, z] tuple, each coordinate in [-1000, 1000]
params.directionarray of objectno3D point as [x, y, z] tuple, each coordinate in [-1000, 1000]
outputsobjectyesControls which output formats are generated and their quality settings
outputs.formatsarray of objectyesOutput formats to generate. Multiple formats can be requested (e.g. ['gltf', 'stpz']) - each produces a separate downloadable result. Do not include both 'step' and 'stpz' - only one STEP variant is supported per request.
outputs.meshPrecisionnumbernoMesh tessellation precision (lower = finer). Range: [0.0001, 10]
outputs.gltfMeshPrecisionnumbernoMesh tessellation precision (lower = finer). Range: [0.0001, 10]
outputs.adjustYtoZbooleannoConvert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up.

Responses

StatusDescription
202Task accepted
400Validation error
500Server error

Example request

curl -X POST "https://api.bitbybit.dev/api/v1/models/dragon-cup" \
-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.