Open FlatCad 3D

Design a 3D print with ChatGPT or Claude

AI chat assistants are good at turning "a wall hook for a 20 mm broom handle" into numbers, but they can't hand you a 3D file. FlatCad 3D closes the gap: it gives the AI a short description of its recipe format, the AI writes the part as a list of features, and you paste that back and get a real, editable 3D model you can print.

The Design with AI dialog in FlatCad 3D with the request 'a phone stand, 70 mm wide, tilted back 15 degrees, with a slot for the charging cable', a Copy prompt button and a box for the AI's reply
Describe the part, copy the prompt, paste it into your AI chat, then paste the reply back and press Build it.

How it works

  1. Open the AI dialog. In FlatCad 3D, click ✦ AI / Code at the top.

  2. Describe the part. Sizes in millimetres help: "a 60 × 40 mm plate, 4 mm thick, rounded corners, four M3 countersunk holes 4 mm from the edges".

  3. Copy the prompt. Copy prompt puts your request plus the recipe format on the clipboard. Tick include my current part to ask for a change to what you already have.

  4. Paste it into ChatGPT, Claude or Gemini. The reply is a JSON recipe: a name and a list of features.

  5. Paste the reply back and press Build it. Code fences and chatter around the JSON are ignored. Any feature with a problem is marked with a ! in the list.

  6. Adjust and export. Every feature is editable in the Properties tab, then Export → STL or 3MF.

Why a recipe and not a mesh

When an AI writes a mesh or OpenSCAD code, a small mistake means asking again and hoping. A FlatCad recipe is a short list of named features, a box, a hole, a pattern, so you can see exactly what the AI meant and fix one number yourself. The Recipe code tab shows the whole part as JSON, for anyone who'd rather edit it by hand.

A worked example: a clip for a broom handle

Here is the whole loop for one real part, a clip that screws to a wall and holds a 20 mm broom handle. The request typed into the dialog was:

a wall clip for a 20 mm broom handle: 70 × 15 × 5 mm back plate, a ring that the handle snaps into from the front, two countersunk M4 screw holes

A good reply is a recipe like the one below. Every line is one feature, applied in order:

{"name":"Broom handle clip","features":[
 {"id":"plate","type":"box","size":[70,15,5],"corner":3},
 {"id":"ring","type":"cylinder","d":28,"h":15,"at":[0,7.5,18],"rot":[90,0,0]},
 {"id":"bore","type":"cylinder","d":20.6,"h":17,"at":[0,8.5,18],"rot":[90,0,0],"op":"cut"},
 {"id":"mouth","type":"box","size":[16,17,20],"at":[0,0,18],"op":"cut"},
 {"id":"s1","type":"hole","d":4.5,"depth":6,"csink_d":9,"at":[-26,0,5]},
 {"type":"mirror","plane":"x","of":"s1"}
]}

Reading it top to bottom:

After Build it, the readout in the corner says 70 × 15 × 29.5 mm, 8.11 cm³ and about 10 g of PLA if printed solid. The part prints as it sits: the plate is flat on the bed, and the ring stands up from it.

Fixing a recipe in the editor

The first version is rarely the one you print, and the point of a recipe is that you can change one number instead of asking again. For this clip, the obvious candidate is the mouth. A 4 mm squeeze through 3.7 mm PLA walls is on the stiff side, and a PLA ring flexed too far cracks at the thinnest point rather than springing back. Click the mouth feature in the list and change its first size from 16 to 17, and the ring rebuilds with a gentler snap. PETG bends further before it breaks, so in PETG the 16 mm mouth is a reasonable place to start. Print just the ring first if you can: the handle you have is the only real test, and a 15 mm slice of ring costs a few minutes.

The other numbers worth checking against your own hardware are the bore and the screw holes. Measure the handle with calipers rather than trusting the label, then set the bore 0.5 to 0.6 mm larger and keep the mouth about 3 to 4 mm smaller than the handle. The 4.5 mm holes are clearance for M4; for wood screws, measure the screw's thread and head and set d and csink_d a little over each.

Where AI recipes go wrong

FlatCad quietly repairs the small slips a chat assistant tends to make in the format: cube and cyl become box and cylinder, "op": "subtract" becomes a cut, a radius r is turned into a diameter, and a feature of an unknown type is skipped with a message rather than stopping the build. The mistakes it cannot guess are about position and direction, and they show up as a part that looks wrong rather than an error:

For bigger changes, tick include my current part and describe the change. The prompt then carries your recipe and asks the AI to keep the feature ids stable, so the reply changes what you asked for and leaves the rest alone.

Prompts that work

The recipe format is also published at flatcad.com/3d/llms.txt, so an assistant can read it directly and give you a link that opens the part.

Open FlatCad 3D, free, no signup

Questions

Does FlatCad send my description to an AI?

No. FlatCad 3D builds a prompt and copies it for you; you paste it into whichever AI chat you already use. Nothing is sent from FlatCad to an AI service.

Which AI works best?

Any chat assistant that can write JSON: ChatGPT, Claude and Gemini all work. Give sizes in millimetres and say what the part attaches to; the more precise the description, the better the first try.

The AI's part has a mistake. Do I start over?

No. Fix it like any other part: click the wrong feature and change its numbers, or tick 'include my current part', describe the change, and paste the AI's new reply.

Can an AI open a part in FlatCad 3D directly?

Yes. A link of the form flatcad.com/3d/#json= followed by the URL-encoded recipe opens that part. The format is described for AI assistants at flatcad.com/3d/llms.txt.

Is the result a mesh or real CAD?

Real features: boxes, holes, text, patterns and so on, each with numbers you can edit. You export STL or 3MF only when you're ready to print.