TamatoManage keys

Tamato Megisto API

Generate complete, unique websites programmatically. Powered by Megisto 4.8 (Claude Opus 4.8). No monthly fee — pay only for tokens.

Endpoint

POST https://api.tamato.design/v1/generate

Authentication

Pass your API key (generate one in your account) as a Bearer token.

Authorization: Bearer tm-meg-xxxxxxxxxx
Content-Type: application/json

Request body

{
  "prompt": "A landing page for a specialty coffee roaster in Portland",
  "mode": "both",        // "desktop" | "mobile" | "both"
  "stream": false        // true for server-sent events
}

Response (non-streaming, mode: "both")

{
  "desktop_html": "<!DOCTYPE html>...",
  "mobile_html": "<!DOCTYPE html>...",
  "tokens": { "input": 412, "output": 5230 },
  "credits_used": 16
}

Pricing

$6 per million input tokens · $23 per million output tokens. No monthly fee.

Examples

JavaScript
Python
curl
const res = await fetch('https://api.tamato.design/v1/generate', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer tm-meg-xxxxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ prompt: 'A bakery in Lisbon', mode: 'both' }),
});
const data = await res.json();
console.log(data.desktop_html);
import requests

res = requests.post(
    "https://api.tamato.design/v1/generate",
    headers={"Authorization": "Bearer tm-meg-xxxxxxxxxx"},
    json={"prompt": "A bakery in Lisbon", "mode": "both"},
)
data = res.json()
print(data["desktop_html"])
curl https://api.tamato.design/v1/generate \
  -H "Authorization: Bearer tm-meg-xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A bakery in Lisbon","mode":"both"}'

Streaming

Set "stream": true to receive the HTML as server-sent events as it's generated.

Your keys

Sign in to view and manage your API keys.