API

lyrics

The site's /lyrics-writer: a rhyme plan, several drafts, our own syllable and rhyme analysis and a repair pass, as on the page. Sections follow `structure` (labelled [Verse], [Chorus] … in the text). Priced exactly like the page, per song. ASYNCHRONOUS: returns 202 with a run id — poll GET /v1/runs/{id} or register a webhook.

v1 beta server · 1490 tokens

Price (server): 1490 tokens per song text; paid plans: −5%, rounded up. The exact figure for your file: POST /v1/tools/lyrics/estimate.

Call it

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

Input

FieldTypeRequiredNotes
lang string yes Language of the lyrics.
one of: ru, en, ko, ar, de, es, pt, fr, id, tr, uk
theme string yes What the song is about.
max length: 400
structure array no Sections in order. Omitted — verse, chorus, verse, chorus.
rhyme string no Rhyme scheme. Omitted — the usual one for the language.
one of: aabb, abab, abcb, free
syllables integer no Syllables per line. Omitted — free.
mood string no Mood.
max length: 100
genre string no Genre.
max length: 100
pov string no Point of view.
one of: i, you, we, third, free
default: free
keywords array no Words to use.
avoid array no Words to avoid.
rhyme_with string no A word the chorus should rhyme with.
max length: 40
clean boolean no No explicit language.
default: 1

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 song).

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.