Plato API · Experimental

Return to chat

GET /api/plato/models lists the models. GET /api/plato/models/plato or /plato-mini returns metadata, including the release ID and selected checkpoint step. For web-upgrade-20261108 both independent models are at fine-tune step 120.

POST /api/plato/models/{plato|plato-mini}/chat or /generate with Content-Type: application/json:

{"messages":[{"role":"user","content":"Hello"}],"max_new_tokens":128}

Optional settings: temperature (0–2, default 0), top_p (greater than 0 up to 1), top_k (0–8192), repetition_penalty (1–2, default 1.1), reasoning_effort (off/low/medium/high), explain_answer (boolean), repeat_limit (0 or 3–16, default 4), and seed (integer 0–2^63−1). Repetition penalties apply to generated tokens; repeat_limit stops consecutive repeated token periods, with 0 disabling that guard. The reply is the actual generated prefix, never replacement text. Effort sets a bounded output budget: low 64, medium 128, high 192. Off uses max_new_tokens. explain_answer asks the neural model for a brief worked explanation in its reply; it is not an internal reasoning trace. Responses include reasoning_effort, max_new_tokens, explanation_requested, tokens, and finish_reason (end_token, length or repetition). Empty generation returns503; over-context messages return400.

Checkpoint routing defaults to auto. Send "checkpoint_route":"default" to keep the default checkpoint, or use a route listed in the model metadata under checkpoint_routes. If an automatic task has no specialist, the model uses its default. Each reply includes checkpoint_task, checkpoint_route, checkpoint_step, and a display line in checkpoint_label. The display line is separate from the neural reply.

Response: {"reply":"…", "model":"plato", "source":"neural", "checkpoint_step":120,"release":"web-upgrade-20261108"}.

Pass the previous user/assistant messages with each request; at most 12 messages and 4,000 characters total. No server conversation storage. Output budget: 1–192 tokens. A single inference runs at a time; HTTP 429 means busy. HTTP 503 means unavailable. Bare racial-slur requests return HTTP 400 (blocked_input); generated base slurs return HTTP 422 (blocked_output), with an error and no assistant reply. The limited lexical filter is not a general hate-speech classifier. Never substitute an answer for an error.

The models run on the owner's PC, reached through Cloudflare. Requests pass through Vercel and Cloudflare; availability depends on the PC and tunnel. Chats are stored in the browser; inference does not intentionally write conversation transcripts. Infrastructure may retain operational logs. Responses are experimental and unreliable at math, coding, and languages.