Montek Developers
CAD

Draw a sketch as CAD

POSThttps://api.montek.io/v1/cad

Starts a job that turns a hand sketch into one DXF per part. Poll GET /v1/cad/{id} or pass webhook_url. Each part drawn counts as one part of usage, billed when the job succeeds.

Parameters

idempotency-key header · string optional

A retry with the same key and request returns the same job.

Request body multipart/form-data

model string required
fansipan-cad-1.0
webhook_url string optional

Receives cad.succeeded or cad.failed when the job ends, signed with Montek-Signature.

file file required

The sketch: a photo or scan (PNG, JPEG, WebP, GIF up to 5 MB, or PDF up to 10 MB).

Request body application/json

model string required
fansipan-cad-1.0
webhook_url string optional

Receives cad.succeeded or cad.failed when the job ends, signed with Montek-Signature.

url string required

Where to download the sketch from; same limits as an upload.

Responses

202 The job.
400 The request is malformed.
401 Missing or invalid API key.
402 The project has no active plan for this model, or the plan does not allow more use.
403 The key may not call this endpoint, or its project is suspended.
413 The file is too large.
415 The file type is not supported.
422 The document could not be read.
429 Too many requests for this key. Retry after the number of seconds in Retry-After.
503 The model is temporarily unavailable. Retry later.

202

id string required
model string required
status string required
queuedrunningsucceededfailed
created_at string required
finished_at string required
parts array of object optional

When the job succeeded.

usage object optional
error object optional

When the job failed.