Skip to main content

Developer guide

Aztec-Calcs gives you three ways to put calculators in front of your users. All three use the same calculation engine, so the same inputs give the same results.

OptionUse it when
Hosted pagesYou want a link to a calculator that we run and brand for you
EmbedYou want a calculator inside your own web page
REST API and MCPYou build your own screens or tools and want the results as data

Guides​

GuideWhat it covers
Embed calculators with the loaderPut calculators in your web pages with one script tag
Mount calculators in single-page appsMount and unmount calculators from your app's code
Embed endpoints and allowed domainsThe browser-facing calls, public keys and the allowed-domain check
Hosted calculator pagesLink to calculator pages that we host
Hosted index pageA page that lists all your calculators
Hosted vanity addressesReadable hosted addresses
Hosted custom domainsServe hosted pages on your own domain
REST calculation APIRun calculators from your servers with a secret key
Rate limitsRequest limits and how to handle 429
MCP endpointLet AI agents run your calculators
Engine versions and opting inHow results stay stable between versions
Localization of resultsLocales, and how to format numbers and currencies

Calculation API reference​

The reference lists every operation, its parameters and its responses. We generate it from the API's OpenAPI document, so it always matches the API.

Authentication​

Every API operation needs a secret API key sent as a bearer token in the Authorization header. Use keys on your servers only. Never put a key in a browser or a mobile app, and never commit one to source control.