Generate complete, unique websites programmatically. Powered by Megisto 4.8 (Claude Opus 4.8). No monthly fee — pay only for tokens.
POST https://api.tamato.design/v1/generate
Pass your API key (generate one in your account) as a Bearer token.
Authorization: Bearer tm-meg-xxxxxxxxxx Content-Type: application/json
{
"prompt": "A landing page for a specialty coffee roaster in Portland",
"mode": "both", // "desktop" | "mobile" | "both"
"stream": false // true for server-sent events
}
{
"desktop_html": "<!DOCTYPE html>...",
"mobile_html": "<!DOCTYPE html>...",
"tokens": { "input": 412, "output": 5230 },
"credits_used": 16
}
$6 per million input tokens · $23 per million output tokens. No monthly fee.
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"}'
Set "stream": true to receive the HTML as server-sent events as it's generated.
Sign in to view and manage your API keys.