AI Writing & Translation
Four fixed writing tasks — titles, rewrite, translate and summarize — with server-owned templates and one non-streaming POST response.Server-side AI generation · formal API returns 503 without real provider config · no body text persisted
Operations
Title generation
Generate 3–5 short titles from your text. The server enforces a string[] shape and fails readably when parsing fails.
Rewrite
Rewrite source text in the requested tone while preserving facts and meaning; plain text is returned.
Translate
Translate source text into a whitelisted target language, preserving paragraph breaks; plain text is returned.
Summarize
Condense source text faithfully while preserving key facts; one POST returns the complete plain-text result.
Real examples and limits
Input is counted in Unicode code points with a 12000-character initial limit; generated output is capped at 20000 characters; server-wide deadline is 60 seconds. Titles return a structured string[]; other tasks return text. One in-flight request per session; idempotency metadata is kept for 10 minutes as hashes only — never input or generated text. After a restart, an old key returns RESULT_UNAVAILABLE; generate again with a NEW key.
FAQ
Is my text stored?
No. Input and generated text are never persisted. PostgreSQL stores only owner_session_hash, idempotency_key, request_hash, status, created_at and expires_at; results live in process memory for 10 minutes.
What happens without provider configuration?
The formal API returns 503 SERVICE_NOT_CONFIGURED. Test mock text is explicitly labelled MOCK and is never presented as an AI result on the formal path.
Can provider computation really be cancelled?
AbortController spans browser, API and provider request, but the site does not claim vendor computation was cancelled. When true termination is unsupported, local waiting stops and late results are discarded.
Will HTML or script in a result execute?
No. Results are written with textContent only, so HTML/script appears as plain text. Body text never enters analytics or access logs.