Sandflow-ai/sand3d

3D modeling in Python, built for LLMs.

What it solves

Creating 3D models can be complex and verbose. sand3d simplifies this by allowing you to write 3D objects as short, human-readable Python programs. It is specifically designed to be efficient for Large Language Models (LLMs) to generate, requiring significantly fewer tokens than traditional 3D scripting methods.

How it works

sand3d acts as a Python library built on top of Blender's bpy engine. Instead of manually calculating coordinates, you describe your object using a flat, intuitive vocabulary of "verbs" (like extrude, hole, or joint). Because the entire API is compact—fitting into about 3,600 tokens—you can easily provide it to an LLM as a system prompt to help it generate accurate, deterministic 3D code. Once your program is written, a single command exports it to standard formats like GLB, URDF, USD, OBJ, or STL.

Who it’s for

This tool is for developers, researchers, and AI engineers who want to automate 3D modeling or generate 3D assets using AI. It is ideal for those who need to create articulated assemblies or mechanical parts that are programmatically defined rather than manually sculpted.

Highlights

  • Token-efficient: Uses 2 to 6 times fewer tokens than standard Blender Python or other CAD scripting tools.
  • Deterministic: The same code always produces the exact same mesh.
  • Named references: Parts, edges, and faces are accessed by name, eliminating the need for manual coordinate math.
  • Format support: Exports to industry-standard formats including GLB for web/games and URDF for robotics simulation.
  • LLM-ready: Includes a compact API and clear guidelines for prompting AI models to build complex assemblies.

Related

  • Project
  • Project
  • Project
  • Project