The workflow here is:
1. 3D Model code generation
- generate the model via AI, using plain text
- review the result (using FreeCad for visual feedback)
- iterate until the model is fine
- tell the AI which parameters shall be customizable
(see my tablet holder example, there I have parametes for a Huawei MediaPad and also for an old Samsung Galaxy Tab, both using the same model)
2. 3D Model export
This can be done entirely headless and it's very robust. No AI involved, only the python code previously generated by AI.
Currently a generic 3mf file is exported, so It needs to go though a slicer and you need to apply your printer's settings (printer type, nozzle type, all that stuff).
But the generated 3mf is just a ZIP with 3d model and the settings within. So this could also easily be automated.