$ open guides/sand3d-3d-model-from-ai
FreeSand3D3DClaude CodeSTL
Sand3D: how to get a 3D model from AI as code
You describe an object in words, the AI writes a short program, and the program builds the model. Need a different size? Change one number. You can save the finished part as STL for a 3D printer.

What you'll get
5 sections6 steps3 prompts
What is openly available
100,000
3D objects, and each one is a program
a slot machine takes 348 lines
3 600
tokens for the whole library reference
so it fits into a prompt in full
5
output file formats
GLB, URDF, USDA, OBJ and STL
01In plain words
Here a model is a recipe, not a cast
A regular 3D file is like a finished cake: you can look at it, but it's hard to change. Here every object comes with a recipe. Sand3D describes parts by name, and every size is its own number, so you can change them, and an AI can read these programs and write new ones.
- The sand3d libraryThe language the programs are written in. Runs on Python on top of Blender, and Blender is installed along with it.
- Objaverse, 67KEveryday things rewritten as code.
- CAD, 24KMechanical parts in the same language.
- Articraft, 9.2KDoors and drawers with hinges in code.
- AutoMate, 3.1KAssemblies with joints between parts.
- SimReady, 2.3KObjects for simulations.
- ExplorerA page where you can browse objects together with their programs without installing anything.

02Try it yourself
Three prompts: install, get a part, change the size
It works best in an assistant that runs commands on your computer by itself: Claude Code or Codex. If you use a regular ChatGPT or Claude chat, see the tip for the second prompt.
01Step 1. Install Sand3D
The install itself is one command, pip install sand3d. The prompt makes the assistant check your Python version too.
Install the Python library sand3d with the command pip install sand3d. First check the Python version: it needs 3.13 or 3.11, the library won't install on 3.12. If there is no suitable version, create a separate environment with Python 3.13 in this folder and install it there. Then check that import sand3d works and tell me the result.Result: the assistant confirms the library works. You don't need to install Blender separately.
02Step 2. Get a part
Replace the description at the end with your own object: what it is, its sizes in millimeters, where the holes go. In a regular chat, paste the text of the API reference file instead of the link, and run the finished program yourself.
Read the full API reference of the sand3d library: https://raw.githubusercontent.com/Sandflow-ai/sand3d/main/docs/api.md
Write a sand3d program for this object. Put all sizes into function parameters with clear names. Name the parts with words. Save the program to detail.py, run it and export the model to detail.glb and detail.stl. If there is an error, fix it yourself. At the end, list the parameters I can change.
Object: a shelf bracket, a plate 80 by 40 mm, 6 mm thick, with two screw holes 6.6 mm in diameter.Result: detail.py, detail.glb and detail.stl plus a list of parameters. Open the GLB in any 3D viewer and check that it's what you wanted.
03Step 3. Change the size
This is where code pays off: the AI doesn't redraw the object, it changes a number.
In detail.py, change only the parameters: make the plate 20 mm wider and 2 mm thicker, and adjust the distance between the holes so they stay centered. Don't touch the rest of the code. Run the program, update detail.glb and detail.stl, and show me which lines changed.Result: a new part and one or two changed lines. If the assistant rewrote everything, ask it to restore the previous version and change only the parameters.
03Checklist
Before you send the STL to the printer
Check
- Scale: STL is saved in meters, so in your slicer the part may look like a dot. Scale it up 1000 times
- The sizes match what you asked for: measure the part in your slicer
- The wall thickness suits your printer
- The part lies flat on the bed instead of floating in the air
04Plan for tonight
Your first part in one evening
What to do, in order. The prompts for each step are above.
Look at examples
Open Explorer and find an object similar to yours: you'll see how it's described in code.
Install the library
The first prompt. Make sure a suitable Python was found and the install went through.
PythonDescribe a simple object
Pick something made of one part: a bracket, a stand, a cap. Leave complex assemblies for later.
Get the files
The second prompt. Look at the GLB first: it's the fastest way to see whether it came out right.
GLBChange the size
The third prompt. Also check that the part gets edited, not redrawn from scratch.
Prepare for printing
Go through the checklist above and open the STL in your slicer.
STL
05
What to know in advance
- 01
The library runs on Python 3.13 or 3.11. It won't install on 3.12, and Intel Macs need 3.11.
- 02
Units in the program are millimeters, but the file is saved in meters. Hence the scaling step before printing.
- 03
There are no ready commands like "make a chair": each object is described as a program made of parts. So a complex object won't come out right on the first try.
- 04
Sand3D knows nothing about your printer. Check walls, overhangs and supports in your slicer.
- 05
The object collections are published under CC BY 4.0: you need to credit the source when you use them. The library itself is licensed under Apache-2.0.
Sources
Go deeper
Mastering Claude Code: From Zero to Power User
A terminal assistant installs libraries, runs programs and fixes errors by itself: the whole guide relies on that. In the course we cover in detail how to give such an assistant tasks and check the result.
$44.90 · one payment, lifetime access

More guides on this topic
All guidesRead next
Claude Code · PrivacyClaude, do not let me get sued: a 20-point promptCopy one prompt into Claude Code before launch. Below, each point in short: why it matters, how to check it yourself and a link to the official source.Nov 25, 2026
Certificates · Generative AI11 certificates in a weekend: links and what you really getThe full list from the video in the same order. Each item has a direct link, time, price and an honest note: certificate, badge, profile mark or no confirmed document.Nov 24, 2026
Claude Code · PerformanceClaude, do not let my app be slow: a 17-point promptCopy one prompt into Claude Code before launch. Below, each point in short: why it slows the app, how to check it yourself and a link to the docs.Nov 24, 2026
Comments