Prompt2CAD / Developer API
AI CAD API · Beta

Put real CAD
in your workflow.

Turn text and reference images into dimensioned CAD. Build generation and refinement into your product, internal tools, or automation.

Up to 160 trial credits · No credit card required

Text + image promptsBackground jobsCAD exports
Prompt2CAD API
REST / JSON
curl -X POST "https://prompt2cad.com/api/v1/projects/$PROJECT_ID/generations" \
  -H "Authorization: Bearer $PROMPT2CAD_API_KEY" \
  -H "Idempotency-Key: bracket-v1" \
  -H "Content-Type: application/json" \
  -d @- <<JSON
{
  "prompt": "An L bracket, 100 mm wide, with 6 mm walls and two mounting holes.",
  "executionMode": "autonomous"
}
JSON
Example response: 202 Acceptedcurl · More examples in docs

Create a project first, then submit a generation. Set PROJECT_ID and GENERATION_ID to the IDs returned by the API. Poll progress before exporting.

Real dimensions

Describe physical objects at the scale you need.

One retained project

Generate, inspect the outcome, and refine by API.

Your existing credits

One account balance across the app and API.

The CAD agent, through an API

A design workflow.
Not just a file generator.

The agent builds parametric geometry and retains the design between requests. Start with a brief, then keep improving the same project.

A brief, a photo, or both

Describe the object, dimensions, materials, and constraints. Add reference images when words alone aren't enough.

Refine the same design

Keep the project ID and send follow-up changes. The agent carries the conversation and CAD model forward.

Built for background work

Submit a job and poll its progress. Idempotency keys make retries refer to the same operation rather than a new generation.

From request to model

Fit it into the way
you already build.

Use curl, JavaScript, Python, or any HTTP client. The quickstart includes working examples and the OpenAPI specification.

Explore the API reference
01

Create a project and submit a brief

Send dimensions and constraints, with optional image file IDs. Autonomous mode accepts the agent's suggested defaults; interactive mode exposes questions and plan approval.

POST /projects/:id/generations
02

Follow progress and refine

Poll the generation ID to read status, usage, and outcomes. Send another prompt to the same project when you want a change.

GET /projects/:id/generations/:generationId
03

Export the completed design

Request your formats from an immutable completed-generation snapshot, then download the resulting artifacts. A later refinement won't change an export already requested.

POST /projects/:id/exports

Take the geometry with you

CAD files. Printing meshes.
Web previews.

Nine formats, using the same serializers as the app. Choose the output that fits your downstream workflow.

STEP

.step

CAD interchange

DXF

.dxf

3D CAD geometry

SketchUp

.skp

Editable faces

GLB

.glb

Web and 3D viewers

DAE

.dae

Scene interchange

OBJ + MTL

.zip

Mesh and materials

STL

.stl

3D-printing mesh

3MF

.3mf

Millimeter-native printing

PNG

.png

Viewport preview

Exports contain the geometry at the chosen model state, not the agent's editable parameter source. DXF contains 3D geometry; PNG is a viewport preview. See format details.

For tools that design physical things

Build your own
CAD-powered experience.

Prototype internal design tools, custom-object workflows, and hardware integrations. The same engine models furniture, built-ins, mechanical parts, and products.

Custom-object workflows

Turn customer briefs into furniture or product design iterations.

Hardware and prototyping

Generate brackets and enclosures, then continue in your CAD or printing workflow.

Internal tools and automation

Connect design requests to your own system, with retained projects and background jobs.

One account. One balance.

Start with your trial.
Grow with your usage.

API generation uses the same token-based credit billing as the app. API CAD downloads are available during the trial without a purchase; top up your existing account when you need more generation credits.

Create your API key

No separate API subscription or credit balance

API downloads included during the trial

Three concurrent generations per account

Private export artifacts retained for seven days

Read the limits and billing details