Best AI CAD

Can ChatGPT make STL files?

By the GrandpaCAD team ·

3 tools compared · facts checked · method v2

Technical drawing of a threaded jar and its knurled lid, the kind of parametric part code can describe
A threaded jar and lid: the kind of part that's easy to describe in code and hard to sculpt. Drawing from the GrandpaCAD cheatsheet.

As of November 2026, ChatGPT can make STL files for simple parts: it can write a basic STL directly, but the dependable route is asking it for OpenSCAD code that you render and export as STL or 3MF in the free OpenSCAD app. If you'd rather skip the code, we'd use GrandpaCAD: it connects to ChatGPT and Claude, so you keep the chat you already know, and builds the part with a slider for each dimension, as 3MF, STL or STEP.

Try GrandpaCAD free 3 free generations · downloads from $12

Here's how the OpenSCAD route works, what to put in the prompt, what usually breaks, and when a dedicated tool saves you the loop.

A chatbot writing OpenSCAD, and GrandpaCAD, on our eight criteria Bar length is the points each earns; the faint track is what the criterion is worth.

YesPartlyNoNot listed

ChatGPT, Claude or Gemini + OpenSCAD and GrandpaCAD on our eight criteria, with the points each earns out of the criterion's weight.
ChatGPT, Claude or Gemini + OpenSCAD6.5 / 14CriterionGrandpaCADour pick13 / 14
ChatGPT, Claude or Gemini + OpenSCAD: Partly. Exact when the code is right; frequent spatial mistakes. Source: Hacker News thread on LLM CAD (May 2026), checked 2026-11-08 1.5 of 3 points.Exact mm×3GrandpaCAD: Yes. Dimensions in your message land as real millimetres. Source: GrandpaCAD: CAD for 3D printing, checked 2026-11-08 3 of 3 points.
ChatGPT, Claude or Gemini + OpenSCAD: Partly. Edit variables in code by hand. Source: OpenSCAD, checked 2026-11-08 1 of 2 points.Edit after×2GrandpaCAD: Yes. Sliders rebuild CAD parts without a new generation. Sculpted parts need a re-cut. Source: GrandpaCAD pricing and FAQ, checked 2026-11-08 2 of 2 points.
ChatGPT, Claude or Gemini + OpenSCAD: No. CSG code doesn't sculpt. Source: OpenSCAD, checked 2026-11-08 0 of 2 points.Sculpts×2GrandpaCAD: Yes. Photo or prompt to a sculpted figurine. Source: GrandpaCAD: image to 3D model, checked 2026-11-08 2 of 2 points.
ChatGPT, Claude or Gemini + OpenSCAD: Yes. OpenSCAD exports STL and 3MF. Source: OpenSCAD, checked 2026-11-08 2 of 2 points.STL/3MF×2GrandpaCAD: Yes. 3MF and STL open 1:1 in Bambu Studio, PrusaSlicer and OrcaSlicer. Source: GrandpaCAD: CAD for 3D printing, checked 2026-11-08 2 of 2 points.
ChatGPT, Claude or Gemini + OpenSCAD: No. You paste, render and debug code yourself. Source: Hacker News thread on LLM CAD (May 2026), checked 2026-11-08 0 of 2 points.No CAD skills×2GrandpaCAD: Yes. Describe the part; no CAD skills needed. Source: GrandpaCAD: CAD for 3D printing, checked 2026-11-08 2 of 2 points.
ChatGPT, Claude or Gemini + OpenSCAD: Partly. Possible with extra work. Source: OpenSCAD, checked 2026-11-08 0.5 of 1 points.Multi-colour×1GrandpaCAD: Yes. Four filaments by default, one slot per region. Source: GrandpaCAD 2.0, checked 2026-11-08 1 of 1 points.
ChatGPT, Claude or Gemini + OpenSCAD: Partly. Only if the chatbot writes CadQuery or build123d. Source: OpenSCAD, checked 2026-11-08 0.5 of 1 points.STEP×1GrandpaCAD: Yes. STEP download on a paid pack or plan. Source: GrandpaCAD (STEP export), checked 2026-11-08 1 of 1 points.
ChatGPT, Claude or Gemini + OpenSCAD: Yes. Free tools, free chat tiers. Source: OpenSCAD, checked 2026-11-08 1 of 1 points.Free files×1GrandpaCAD: No. 3 free generations, but downloads need a paid pack or plan. Source: GrandpaCAD pricing and FAQ, checked 2026-11-08 0 of 1 points.

Made by the GrandpaCAD team. We set the criteria and score every tool ourselves, GrandpaCAD included. No sponsors or affiliate links. How we score

The short answer

A chatbot can write a cube or a wedge straight into an STL (more on that below), but past simple shapes it's far more reliable at writing OpenSCAD code, and OpenSCAD exports STL and 3MF. So the route is: prompt, copy code, render, export, slice. For a box, a bracket or a spacer, that takes a few minutes. For a hinge or an enclosure with snap fits, expect to go back and forth.

What you need: a ChatGPT, Claude or Gemini account (free tiers work), OpenSCAD installed (free, Windows, macOS and Linux), and your slicer.

Step by step

  1. Ask for OpenSCAD code, with numbers

    Name the language, give every size in millimetres, and ask for the sizes as variables at the top. Variables are what let you change the part later without asking again.

    prompt: Write OpenSCAD code for an open...
    Write OpenSCAD code for an open box 60 mm wide, 40 mm deep and 25 mm tall with 2 mm walls and a 2 mm floor.
    Put every dimension in a named variable at the top of the file.
    Use only built-in OpenSCAD modules (no libraries). Reply with the code only.
  2. Check the code looks like this

    Good output is short and readable: variables first, then geometry built from them. This is the kind of file you should get back.

    OpenSCAD code
    // Parametric box: change these numbers, press F6, export STL
    width  = 60;   // mm
    depth  = 40;   // mm
    height = 25;   // mm
    wall   = 2;    // mm
    
    difference() {
      cube([width, depth, height]);
      translate([wall, wall, wall])
        cube([width - 2 * wall, depth - 2 * wall, height]);
    }
  3. Paste it into OpenSCAD and render

    Open OpenSCAD, paste the code into the editor, press F5 for a quick preview, then F6 to render the final solid. If the console shows an error, copy the error back to the chatbot word for word.

  4. Export STL or 3MF

    Use File, then Export, then STL (or 3MF). OpenSCAD has no units of its own, and slicers read STL numbers as millimetres, so a 60 in the code is 60 mm on the bed.

  5. Check it in your slicer before printing

    Read the size the slicer reports, look at it from below and the sides, and note any repair warning. For a part that has to fit something, print a thin test slice of the critical feature first.

  6. Iterate by describing what's wrong

    Say exactly what's off ("the hole is on the wrong face, it should go through the 40 mm side"). Commenters in a Hacker News thread on AI CAD suggest feeding a screenshot of the render back to the chatbot, and checking it from several angles.

Need a starting point? Our 25 copy-ready AI CAD prompts work as OpenSCAD requests too: add "Write OpenSCAD code for" in front.

Can ChatGPT write an STL file directly?

Yes, for very simple shapes, in two ways.

One triangle of an ASCII STL
solid cube
  facet normal 0 0 -1
    outer loop
      vertex 0 0 0
      vertex 20 20 0
      vertex 20 0 0
    endloop
  endfacet
  ...11 more facets for the other faces...
endsolid cube

Both break down quickly. A cube is 12 triangles; a bracket with a fillet and two holes is thousands, and every one has to face outward and meet its neighbours exactly or the slicer reports a broken mesh. There are also no variables, so changing one size means generating the whole file again. Use the direct route for a test cube or a wedge, and OpenSCAD for anything you'll measure.

Can ChatGPT make G-code?

It can write or edit G-code text, and it's handy for explaining a line you don't understand or drafting a start script for your printer profile. Don't ask it to turn a model into G-code, though. G-code for a print is the toolpath for every layer, which depends on your printer, nozzle, filament and slicer settings, and a slicer computes it exactly. Make the STL or 3MF (with OpenSCAD or a CAD tool), slice it in Bambu Studio, PrusaSlicer, OrcaSlicer or Cura, and check the preview before you print. Treat any G-code a chatbot writes as untested: read it before it moves your printer's axes or heats the nozzle.

What goes wrong

These are reports from makers, not our own tests. They're anecdotal, from the threads and articles we could read.

Two habits help: keep parts simple and dimensioned, and start from code that already works instead of asking for everything at once.

Technical drawing of a counterbored hole with the screw head seated below the surface
Features like counterbores are easy to name and easy for a chatbot to put on the wrong face. Check them in the render.

Claude, Gemini and other chatbots

The process is identical: they all write OpenSCAD. If you need a STEP file, ask for CadQuery or build123d (Python libraries) instead, which export STEP as well as STL; you'll need Python installed to run them. We haven't compared chatbots on CAD code, so we can't tell you which is best.

Plans cost money only if you outgrow the free tier. Claude Pro is $20 a month ($17 billed annually) and Google AI Pro is EUR 21.99 a month on the EU listing. Source: Claude pricing, checked

When a dedicated CAD tool is faster

The chatbot route means you run the loop: paste, render, describe errors, repeat. GrandpaCAD runs that loop for you. Below, the do-it-yourself route, CADAM and GrandpaCAD on the same criteria as our main ranking.

YesPartlyNoNot listed

Doing it yourself with a chatbot, CADAM and GrandpaCAD compared, with each score out of 14. Every mark links to its source and check date.
ToolBuilds to your millimetres (weight 3)Change sizes without re-prompting (weight 2)Sculpted shapes (weight 2)Slicer-ready export (weight 2)No CAD skills needed (weight 2)Multi-colour 3MF (weight 1)STEP export (weight 1)Free plan includes downloads (weight 1)
GrandpaCAD13 / 14Yes. Dimensions in your message land as real millimetres. Source: GrandpaCAD: CAD for 3D printing, checked 2026-11-08Yes. Sliders rebuild CAD parts without a new generation. Sculpted parts need a re-cut. Source: GrandpaCAD pricing and FAQ, checked 2026-11-08Yes. Photo or prompt to a sculpted figurine. Source: GrandpaCAD: image to 3D model, checked 2026-11-08Yes. 3MF and STL open 1:1 in Bambu Studio, PrusaSlicer and OrcaSlicer. Source: GrandpaCAD: CAD for 3D printing, checked 2026-11-08Yes. Describe the part; no CAD skills needed. Source: GrandpaCAD: CAD for 3D printing, checked 2026-11-08Yes. Four filaments by default, one slot per region. Source: GrandpaCAD 2.0, checked 2026-11-08Yes. STEP download on a paid pack or plan. Source: GrandpaCAD (STEP export), checked 2026-11-08No. 3 free generations, but downloads need a paid pack or plan. Source: GrandpaCAD pricing and FAQ, checked 2026-11-08
CADAM10 / 14Yes. OpenSCAD solids in model units. Source: CADAM on GitHub, checked 2026-11-08Yes. Auto-detected sliders. Source: CADAM on GitHub, checked 2026-11-08Not listed. OpenSCAD only; no sculpting. Source: CADAM on GitHub, checked 2026-11-08Yes. STL export. Source: CADAM on GitHub, checked 2026-11-08Yes. Text or image in. Source: CADAM on GitHub, checked 2026-11-08No. No 3MF. Source: CADAM on GitHub, checked 2026-11-08No. No STEP. Source: CADAM on GitHub, checked 2026-11-08Yes. Free when self-hosted. Source: CADAM on GitHub, checked 2026-11-08
ChatGPT, Claude or Gemini + OpenSCAD6.5 / 14Partly. Exact when the code is right; frequent spatial mistakes. Source: Hacker News thread on LLM CAD (May 2026), checked 2026-11-08Partly. Edit variables in code by hand. Source: OpenSCAD, checked 2026-11-08No. CSG code doesn't sculpt. Source: OpenSCAD, checked 2026-11-08Yes. OpenSCAD exports STL and 3MF. Source: OpenSCAD, checked 2026-11-08No. You paste, render and debug code yourself. Source: Hacker News thread on LLM CAD (May 2026), checked 2026-11-08Partly. Possible with extra work. Source: OpenSCAD, checked 2026-11-08Partly. Only if the chatbot writes CadQuery or build123d. Source: OpenSCAD, checked 2026-11-08Yes. Free tools, free chat tiers. Source: OpenSCAD, checked 2026-11-08

What you keep by doing it yourself

The chatbot route is free or close to it, and you own and can read every line of code; GrandpaCAD doesn't hand you the code. If you enjoy the code, that's a real advantage.

Questions people ask

Can ChatGPT make STL files?

Yes, for simple parts. The dependable way is indirect: ask it for OpenSCAD code, paste the code into OpenSCAD (free), render it and export an STL or 3MF. It can also write a basic STL directly, but only for shapes like a cube. For anything complex expect several rounds of fixes.

Can ChatGPT write an STL file directly?

For very simple shapes, yes. It can type out an ASCII STL (a plain-text list of triangles) for a cube, or, on plans where it can run Python, build the mesh in code and give you a download link. Past a cube or a wedge both break down, because a real part has thousands of triangles and no variables to change, so ask for OpenSCAD code instead.

Can ChatGPT make G-code for my 3D printer?

It can write or explain G-code text, but don't use it to slice a model. Print G-code depends on your printer, nozzle, filament and settings, and a slicer such as Bambu Studio, PrusaSlicer, OrcaSlicer or Cura computes it exactly. Make the STL or 3MF, slice it, and read any chatbot-written G-code before it runs.

Can Claude make STL files?

The same way: Claude writes OpenSCAD, CadQuery or build123d code that you render yourself. CadQuery and build123d can also export STEP. We haven't compared ChatGPT and Claude on CAD code, so we won't tell you one is better.

Are STL files from ChatGPT printable?

If the OpenSCAD code renders, the result is usually a closed solid at the millimetres in the code, which slices fine. The common failures are code that doesn't compile and shapes that differ from what you asked for, such as holes in the wrong place. Check sizes and run your slicer's repair check before printing.

Can ChatGPT make a 3MF file?

Through OpenSCAD, yes: export the rendered model as 3MF instead of STL. Multi-colour 3MF from OpenSCAD takes extra work, because each colour has to be a separate part.

Is there a way to make 3D models inside ChatGPT or Claude without code?

Yes, through a connector (MCP server) that does the modelling. GrandpaCAD has one: in ChatGPT it currently connects through developer mode, and in Claude as a custom connector. Free accounts get 3 generations; downloading files needs a paid pack or plan. Setup steps are on GrandpaCAD's ChatGPT and Claude page.