calora / embed
No signup · ~5 seconds · REST POST

Try the AI live.
Paste the snippet.

This page is the demo. The same API powers the widget below and your own page when you copy the snippet. JSON in, JSON out.

Live widget

Embed in 6 lines

Copy this snippet into any HTML page. Public demo endpoint — for production use (your own branding, your rate limits), get an API key.

<script>
  // Drop this into any HTML page. Calls /api/demo-estimate on submit.
  // For production use, get an API key at [email protected].
  async function estimate(meal) {
    const text = document.getElementById("calora-text").value;
    const res = await fetch("https://calora.develalfy.me/api/demo-estimate", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ text, context: { meal } }),
    });
    const data = await res.json();
    document.getElementById("calora-result").innerText =
      data.totals.calories + " kcal";
  }
</script>
<input id="calora-text" placeholder="2 eggs and toast">
<button onclick="estimate('lunch')">Estimate</button>
<div id="calora-result"></div>

Production keys include white-label JSON (no _metafield, custom notes), higher rate limits, and an uptime SLA. See pricing.