API

sample-text

The «AI text» mode of the site's /lorem-ipsum: a coherent text on your topic in the chosen form, length and language, for mock-ups, prototypes and test data. Priced exactly like the page, by length. ASYNCHRONOUS: returns 202 with a run id — poll GET /v1/runs/{id} or register a webhook.

v1 beta server · 560 tokens

Price (server): short (~150 words) — 560 tokens; medium (~400 words) — 1360 tokens; long (~800 words) — 2650 tokens; paid plans: −5%, rounded up. The exact figure for your file: POST /v1/tools/sample-text/estimate.

Call it

POST https://tembrica.com/v1/tools/sample-text/runs
Authorization: Bearer $TIMBRICA_KEY
Idempotency-Key: <your retry-safe key>
Content-Type: application/json

Input

FieldTypeRequiredNotes
topic string yes What the text is about.
max length: 200
style string no The form of the text.
one of: article, story, post, list, email
default: article
length string no About 150 / 400 / 800 words. Sets the price.
one of: short, medium, long
default: medium
lang string no Language of the text. Two-letter code.
one of: ru, en, es, pt, fr, de, id, ar, ko, uk, tr
default: en

Errors it can return

validation_failed  insufficient_tokens  concurrency_limited  upstream_unavailable 

History

  • v1 — 2026-11-20 — Initial release (server lane, async, the site's price per length).

This contract cannot change without a new version and a line above: a test compares the published schema, pricing and limits against a committed lockfile and fails the build otherwise. Subscribe to /v1/changelog to be told when something moves.