Skip to main content

HTML Quickstart

Developer Key

A rate-limited API developer key can be provisioned from the Sapling dashboard. Developer keys allow for processing of 5000 characters every 24 hours. Complete this questionnaire for production access and pricing.

Here's a minimal webpage using the Sapling SDK.


Do not serve a page like this publicly, as it exposes the API key.

  • During development, you can pass in the API key and use Sapling's endpoints by setting mode: 'dev' in the init function.
  • For production, do not pass the API key in JavaScript. Instead, include the API key in your backend and call Sapling's endpoints from the backend. This is the default setting with mode: 'prod'.
<script src=""></script>
<div contenteditable="true" id="check-space" sapling-ignore="true">Lets get started!</div>

<script type="text/javascript">
key: '<API_KEY>',
mode: 'dev',

const contentEditable = document.getElementById('check-space');