AI OpenSCAD generator

OpenSCAD written by AI, compiled and checked before you print

Describe the part in millimetres and SpeakCAD's AI writes a parametric OpenSCAD program for it: named dimensions, fit clearances, a flat face on the bed. The browser compiles it on the spot, so you see the part before you print it, and every number stays editable. Paste OpenSCAD you already have and it opens as a model. Download a watertight STL or 3MF, or G-code sliced for your printer.

Free, no card: the live demo (3 AI edits) and 650+ ready-made models. Your own part: 2 credits per AI request, 50 credits for $5 once.

How it works

From a description, or your own .scad, to a printed part

The AI works in OpenSCAD because it is exact: every size is a number in the program, so a change touches one number and leaves the rest of the part alone.
1

Describe the part, or paste OpenSCAD

Type what it is and the sizes you know (“a 58 x 38 mm board case, 2 mm walls, USB-C on the short side”), or paste OpenSCAD code in the box above. Pasted code opens as a model in your account after sign-up, without an AI request; a description is one AI request (2 credits).
2

See it compiled

The program compiles in the browser tab, on a phone as on a computer. The first render usually appears within a minute or two: a new part gets deeper reasoning through the geometry, and small edits land in seconds. If a program does not compile, ask the AI to repair it.
3

Change it by number or by chat

The numeric parameters at the top of the program show in the dimensions panel: tap a part and type a new value, at no cost. For anything else, say it: “add two M3 holes 40 mm apart on the back” is one request (2 credits), and the AI rewrites the program without touching the rest.
4

Download STL, 3MF or G-code

A watertight, manifold STL or 3MF in millimetres (10 credits), or G-code sliced with the official OrcaSlicer profile of one of 380+ printers.

OpenSCAD from SpeakCAD vs OpenSCAD from a chat assistant

SpeakCADAsking ChatGPT, Claude or Gemini
Writes OpenSCAD from a descriptionYes, parametric, with named dimensionsYes
Compiles itYes, in the browser tab, before you download anythingNo: you find out in OpenSCAD desktop
Shows the partLive 3D render; tap a face to read its sizeNo render: you read the code
Print rulesWall thickness, fit clearances, a flat base, overhangs checkedOnly if you ask, and nothing checks them
Changing a sizeType the number in the dimensions panel, or say it in one sentenceAsk again and paste the new code into OpenSCAD
LibrariesPlain OpenSCAD; BOSL2 and MCAD are not availableOften includes BOSL2 or MCAD, which must be installed
OutputSTL, 3MF, or G-code sliced for 380+ printersCode text; the STL comes from your own OpenSCAD install
The .scad fileStays in the editor: no .scad downloadIt is the answer itself
Writes OpenSCAD from a descriptionSpeakCAD: Yes, parametric, with named dimensionsAsking ChatGPT, Claude or Gemini: Yes
Compiles itSpeakCAD: Yes, in the browser tab, before you download anythingAsking ChatGPT, Claude or Gemini: No: you find out in OpenSCAD desktop
Shows the partSpeakCAD: Live 3D render; tap a face to read its sizeAsking ChatGPT, Claude or Gemini: No render: you read the code
Print rulesSpeakCAD: Wall thickness, fit clearances, a flat base, overhangs checkedAsking ChatGPT, Claude or Gemini: Only if you ask, and nothing checks them
Changing a sizeSpeakCAD: Type the number in the dimensions panel, or say it in one sentenceAsking ChatGPT, Claude or Gemini: Ask again and paste the new code into OpenSCAD
LibrariesSpeakCAD: Plain OpenSCAD; BOSL2 and MCAD are not availableAsking ChatGPT, Claude or Gemini: Often includes BOSL2 or MCAD, which must be installed
OutputSpeakCAD: STL, 3MF, or G-code sliced for 380+ printersAsking ChatGPT, Claude or Gemini: Code text; the STL comes from your own OpenSCAD install
The .scad fileSpeakCAD: Stays in the editor: no .scad downloadAsking ChatGPT, Claude or Gemini: It is the answer itself

Descriptions that make clean OpenSCAD

Sizes in millimetres, what the part fits, how it mounts. Each opens in the editor with the text already typed.

“A parametric wall-mount bracket for a 22 mm tube: 50 x 30 x 4 mm back plate with two 4.5 mm countersunk holes 34 mm apart, a C-shaped clip with 0.3 mm clearance, 3 mm walls, printed flat on the back.”

Open this prompt in the editor

“A two-part box for a 70 x 45 mm PCB with M3 holes 4 mm from each corner, 20 mm internal height, 2 mm walls, a screwed lid on four corner pillars, and a 9 x 4 mm USB-C cutout centred on one short side.”

Open this prompt in the editor

“A spool holder axle for a 52 mm spool hole: 90 mm long, 50 mm diameter with a 2 mm lip at one end, a 608 bearing pocket (22 mm, 0.2 mm clearance) at each end, printed standing up.”

Open this prompt in the editor

What an AI OpenSCAD generator should do

Writing OpenSCAD is the easy half: ChatGPT, Claude and Gemini all do it. The hard half is knowing the code compiles, that the part looks like what you meant, that the walls are thick enough to print, and that the lid actually fits the box. SpeakCAD does the whole loop: the AI writes a parametric program from your description, the browser compiles it into exact geometry, FDM design rules are applied (minimum wall thickness, fit clearances, a flat face on the bed), and you download a file your slicer accepts without repair.

How the program is written

  • Every size you give is a named parameter, declared at the top of the program with a label, in the OpenSCAD customizer style. That is what the dimensions panel shows.
  • Each feature is a named part, so tapping the lid or a boss in the 3D view brings up its own numbers.
  • Mating surfaces get their own clearance parameter. Fit Check can then tune them to your printer.
  • Plain OpenSCAD only. Rounded edges come from hull() and offset(), not from a library, so the program compiles anywhere.

Pasting OpenSCAD you already have

Paste a program into the box at the top of this page: it is recognised as OpenSCAD and, after you sign up, it opens as a model in your account and compiles in the tab, without an AI request. Its numeric parameters at the top of the file (the usual customizer variables) show in the dimensions panel, so a Thingiverse Customizer model or code an assistant wrote can be resized by typing numbers. You can also attach a .scad file in the editor's chat.

When the code does not compile, or you want a change the numbers cannot make, ask the AI in the chat (2 credits per request): it repairs the program or rewrites it with the same dimensions. BOSL2 and MCAD are not available, so library calls are replaced with plain OpenSCAD. ChatGPT to STL covers the usual reasons assistant code fails.

What you do not get

  • The .scad file. The program stays inside the editor: downloads are STL, 3MF and G-code. You read and change the design through the render, the dimensions panel and the chat, not in a code editor.
  • STEP or other CAD formats for machining or a professional CAD workflow.
  • Organic shapes. OpenSCAD builds solid geometry: boxes, brackets, holders, adapters, knobs, gears. For a figurine, a mesh generator such as Meshy or Tripo fits better.

If you want to write and keep the code by hand, OpenSCAD desktop is free and excellent; SpeakCAD vs OpenSCAD says where each one wins. AdamCAD's open-source CADAM also writes OpenSCAD with AI and exports the .scad; the comparison goes through the differences.

What it costs

Free, without a card: the live demo (3 AI edits of a real part, no account) and the 650+ ready-made library models, which open in a free account and resize in the viewer. A description or an AI change uses credits. Starter credits: 50 credits for $5 once, no subscription. Turning the model around in 3D and changing its numbers in the viewer are free; each AI request (a new part or a chat edit) spends 2 credits, whichever model answers; a download spends 10 credits (+5 for G-code sliced for your printer without Pro or Unlimited); small fixes after a download re-download free.

Questions

Yes. ChatGPT, Claude and Gemini write OpenSCAD, but they cannot compile it or show you the part, so errors surface later in OpenSCAD desktop or in the slicer. SpeakCAD writes parametric OpenSCAD from a description, compiles it in the browser, applies FDM print rules and gives you a watertight STL, 3MF or G-code sliced for your printer. AdamCAD's CADAM is another AI OpenSCAD tool, open source.

No. The OpenSCAD program stays in the editor, and downloads are STL, 3MF or G-code sliced for your printer. You change the design through the dimensions panel, which lists the program's numeric parameters, or by asking the AI in the chat.

Yes. Paste it in the box at the top of this page: after you sign up it opens as a model in your account and compiles in the browser, without an AI request. Its numeric parameters show in the dimensions panel. If it does not compile, or you want it changed, ask the AI in the chat (2 credits per request). BOSL2 and MCAD are not available, so the AI replaces library calls with plain OpenSCAD.

Yes. SpeakCAD compiles OpenSCAD in the browser tab with a WebAssembly build, in Safari on iPhone and iPad and in Chrome on Android as on a computer. Nothing to install. The STL, 3MF or G-code lands in Files or Downloads.

Yes. Pick your printer in the download dialog (380+ printers with their official OrcaSlicer profiles), a print profile and a filament, and download G-code; Bambu printers get a sliced .gcode.3mf. G-code sliced for your printer is included in Pro and Unlimited and spends 5 extra credits per slice otherwise.

Each AI request (a new part or a chat change) spends 2 credits and a download 10 credits; typing a number in the dimensions panel spends nothing. A typical part with a couple of changes spends about 16 credits. Starter credits: 50 credits for $5 once, no subscription. The live demo (3 AI edits of a real part) needs no account.

The first render usually appears within a minute or two: a new part gets deeper reasoning through the geometry, and small edits land in seconds. A typical functional part, with a couple of edits and a dimension check, is a downloaded file in about 10 to 15 minutes.

Describe the part. The OpenSCAD is written for you.

Or paste your own. Check the render, change a number, download the STL, 3MF or G-code.