A simple HTTP API for CAD file conversion — built for developers and the manufacturing industry.
Send a file, get a converted file back. No SDK, no account juggling — one API key, one
POST. This is the v1 preview; more (DWG → PDF, DWG → SVG,
STEP → STL, and a geometry /analyze endpoint) are on the roadmap.
We only ship conversions we have verified on real production drawings.
Every request under /v1 needs an API key in the X-API-Key header
(or Authorization: Bearer <key>). Free keys include a small daily quota;
the response returns X-Quota-Limit and X-Quota-Remaining headers.
?to= (default glb).
Upload the file as multipart/form-data in a field named file.
On success the response body is the converted file (with a Content-Type
and Content-Disposition for the download). Errors return JSON:
{ "error": { "code": "...", "message": "..." } }.
# DWG → DXF
curl -X POST https://apimycad.com/v1/dwg-to-dxf \
-H "X-API-Key: YOUR_KEY" \
-F "file=@drawing.dwg" \
-o drawing.dxf
# STL → GLB
curl -X POST "https://apimycad.com/v1/mesh?to=glb" \
-H "X-API-Key: YOUR_KEY" \
-F "file=@part.stl" \
-o part.glb
using var http = new HttpClient();
using var form = new MultipartFormDataContent();
await using var fs = File.OpenRead("drawing.dwg");
form.Add(new StreamContent(fs), "file", "drawing.dwg");
using var req = new HttpRequestMessage(HttpMethod.Post,
"https://apimycad.com/v1/dwg-to-dxf") { Content = form };
req.Headers.Add("X-API-Key", "YOUR_KEY");
using var res = await http.SendAsync(req);
res.EnsureSuccessStatusCode();
await File.WriteAllBytesAsync("drawing.dxf",
await res.Content.ReadAsByteArrayAsync());
| Code | Meaning |
|---|---|
200 | Success — body is the converted file. |
400 | No file, or an unknown mesh target. |
401 | Missing or invalid API key. |
413 | File exceeds the size limit (25 MB DWG, 50 MB mesh). |
415 | Unsupported input format for this endpoint. |
422 | The file couldn't be converted (corrupt / unsupported variant). |
429 | Daily quota reached — resets at 00:00 UTC. |
503 | That converter is temporarily unavailable on this host. |