Evaluate expression
Evaluate a mathematical expression with optional named variables — arithmetic, comparison and logic operators plus functions like sqrt, abs, min, max, sin, cos, log, floor, round, etc. A syntax error, an undefined variable, or a non-finite result is a clean 400. The factorial operator is disabled for safety.
- Category
- Developer tools
- Starting price
- $0.004
- Paid calls · 30 days
- 3
- Unique payers · 30 days
- 3
Paid endpoints
2 endpoints, sorted by usage. Prices are per request.
- POST/v1/eval
Evaluate a mathematical expression with optional named variables — arithmetic, comparison and logic operators plus functions like sqrt, abs, min, max, sin, cos, log, floor, round, etc. A syntax error, an undefined variable, or a non-finite result is a clean 400. The factorial operator is disabled for safety.
$0.004Base2calls / 30d - POST/v1/variables
Parse an expression and return the free variables it references, without evaluating it — so an agent can discover which inputs a formula needs before supplying values. A syntax error is a clean 400.
$0.004Base1calls / 30d