CAD
Draw a sketch as CAD
POST
https://api.montek.io/v1/cadStarts 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 optionalA retry with the same key and request returns the same job.
Request body multipart/form-data
model string requiredfansipan-cad-1.0webhook_url string optionalReceives cad.succeeded or cad.failed when the job ends, signed with Montek-Signature.
file file requiredThe 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 requiredfansipan-cad-1.0webhook_url string optionalReceives cad.succeeded or cad.failed when the job ends, signed with Montek-Signature.
url string requiredWhere 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 requiredmodel string requiredstatus string requiredqueuedrunningsucceededfailedcreated_at string requiredfinished_at string requiredparts array of object optionalWhen the job succeeded.
usage object optionalerror object optionalWhen the job failed.