Single endpoint: POST /ai.php — runs claude -p and streams the answer back as plain text.
curl -sS -N https://ai.rep.races.sk/ai.php \ -d token=YOUR_TOKEN \ -d model=sonnet \ --data-urlencode payload='explain what a chroot is in two sentences'
token | required — shared secret |
payload | required — the prompt |
model | optional — opus | sonnet | haiku | fable, or a full claude-* id (default: sonnet) |
timeout | optional — seconds, max 1800 (default: 600) |
JSON bodies work too. Tools are disabled — the model answers from the prompt only.