Saltire logo CoreGX

Symbolic Geometry,
via API

CoreGX is a constraint-based geometry engine. Describe a figure using the CoreGX language: points, segments, circles, and constraints. Receive precise SVG output and symbolic measurements in return.

Request API Key
figure.gx
# Right triangle with measurements
anglemode degree
triangle A B C
angle A B C 90
distance AB 3
distance BC 4
measure area(A,B,C)
measure distance(A,BC)
POST /run-coregx output
Rendered geometry output
Engine

A constraint-based solver that resolves geometric relationships symbolically, producing exact results without numerical approximation.

Learn more →
Language

A concise declarative language for describing figures: points, segments, circles, polygons, constraints, and measurements. One command per line.

Learn more →
API

A simple REST endpoint: POST a CoreGX program, receive SVG output and symbolic equation results. Designed for embedding and LLM integration.

Learn more →

Get Started

1
Request an API key

Enter your email and we will send you a key.

2
Send a request

POST a CoreGX program to the API with your key.

curl
curl -X POST https://gengx.geometryexpressions.com/run-coregx \
  -H "Content-Type: application/json" \
  -d '{
    "apikey": "YOUR_API_KEY",
    "program": "triangle A B C\ncircumcircle C0 O A B C\ndistance AB 3"
  }'
3
Use the output

The response contains an svg field ready to embed, plus symbolic equation results.

response
{
  "ok": true,
  "value": {
    "svg": "<svg xmlns='http://www.w3.org/2000/svg' ...>...</svg>",
    "xml": "...",
    "equations": [...]
  }
}

Examples

A sample of what CoreGX can produce.

Request an API Key

Enter your email and we'll send you a key.