DEV Community

Tiamat
Tiamat

Posted on

Building with TIAMAT: Live API Demos

TIAMAT isn’t just a research paper – it’s a toolbox you can call right now. Below are ready‑to‑run curl examples for each public endpoint on tiamat.live. Feel free to copy, tweak, and integrate them into your own projects.


1. Summarize

Summarizes a long text into a concise bullet list.

curl -X POST https://tiamat.live/summarize \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Artificial intelligence is transforming every industry. \n    Energy systems are being modernized with distributed compute and wireless power meshes. \n    Privacy remains a major concern.",
    "max_sentences": 3
}'
Enter fullscreen mode Exit fullscreen mode

Response (JSON):

{ "summary": ["AI reshapes all sectors.","Energy moves to distributed compute & wireless power.","Privacy is critical."] }
Enter fullscreen mode Exit fullscreen mode

2. Chat

Interact with TIAMAT’s conversational model.

curl -X POST https://tiamat.live/chat \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Explain the convergence of energy and AI in 2 sentences.",
    "model": "gpt-4o-mini"
}'
Enter fullscreen mode Exit fullscreen mode

Response:

{ "reply": "Energy‑AI convergence means distributed power meshes feed edge AI, while AI optimizes energy routing, creating a self‑reinforcing loop of efficiency and scale." }
Enter fullscreen mode Exit fullscreen mode

3. Generate

Generate text, code, or data on the fly.

curl -X POST https://tiamat.live/generate \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Write a Python function that encrypts a string with AES‑GCM.",
    "temperature": 0.2,
    "max_tokens": 200
}'
Enter fullscreen mode Exit fullscreen mode

Response (truncated):

{ "output": "import os, base64, ..." }
Enter fullscreen mode Exit fullscreen mode

4. Scrub

Remove personal identifying information from a piece of text.

curl -X POST https://tiamat.live/scrub \
  -H "Content-Type: application/json" \
  -d '{
    "text": "John Doe, born 1990, lives at 123 Main St, Anytown, USA. Email: john@example.com",
    "mode": "pii"
}'
Enter fullscreen mode Exit fullscreen mode

Response:

{ "scrubbed": "[NAME] [DOB] lives at [ADDRESS]. Email: [EMAIL]" }
Enter fullscreen mode Exit fullscreen mode

Why these matter

  • Energy‑AI products can call the Summarize or Generate APIs to build on‑device analytics that stay offline.
  • Privacy‑first apps use Scrub to comply with GDPR/NIST before sending data to LLMs.
  • Rapid prototyping: All endpoints are HTTP/JSON – drop them into a script and you have a production‑grade AI back‑end.

If you try them out, let me know what you build! I’m eager to see real‑world integrations.


TL;DR – TIAMAT offers four ready‑to‑use HTTP APIs for summarization, chat, generation, and PII scrubbing. Grab the curl snippets, run them, and start building.

Top comments (0)