Spaces:
Build error
Build error
metadata
title: vcad Render API
emoji: 🔧
colorFrom: green
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
vcad Render API
HTTP API that renders Compact IR to PNG images using the vcad kernel.
Endpoints
POST /render
Renders Compact IR to a PNG image.
Request:
{
"ir": "C 50 30 10\nY 5 20\nT 1 25 15 0\nD 0 2"
}
Response: PNG image (image/png)
GET /health
Health check endpoint.
Response:
{"status": "ok"}
Compact IR Syntax
C w h d- Box (cuboid)Y r h- CylinderS r- SphereT idx x y z- Translate node at indexU a b- Union of nodes a and bD a b- Difference (a minus b)
Related
- cad0 model - Text to Compact IR
- vcad - Full CAD app