Skip to main content

Models - build a Phone Nest

POST 

/api/v1/models/phone-nest

Parametric 3D-printable desktop phone holder/stand with a lofted cradle surface, optional ornamental perforations, and a phone mock-up shape. All parameters are optional - defaults produce a ready-to-print model.

Request

Responses

Task accepted

Reference

POST /api/v1/models/phone-nest

Parametric 3D-printable desktop phone holder/stand with a lofted cradle surface, optional ornamental perforations, and a phone mock-up shape. All parameters are optional - defaults produce a ready-to-print model.

Request body

Content type: application/json (required)

FieldTypeRequiredDescription
paramsobjectnoPhone Nest model parameters - all optional, sane defaults apply
params.heightBottomnumbernoHeight of the bottom section (cm)
params.heightTopnumbernoHeight of the top section (cm)
params.widthBacknumbernoWidth at the back (cm)
params.widthFrontnumbernoWidth at the front (cm)
params.lengthnumbernoDepth / length (cm)
params.backOffsetnumbernoBack curve offset (cm)
params.thicknessnumbernoShell wall thickness
params.applyOrnamentsbooleannoAdd decorative perforations to the surface
params.filletRadiusnumbernoFillet radius on loft edges
params.phoneHeightnumbernoPhone mock-up height (cm)
params.phoneWidthnumbernoPhone mock-up width (cm)
params.phoneThicknessnumbernoPhone mock-up thickness (cm)
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/phone-nest" \
-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.