API

sound-effect

The site's /sfx-generator: two engines on fal.ai — `el` (ElevenLabs Sound Effects v2: short effects, up to 22 s, seamless loop) and `stable` (Stable Audio 2.5: up to 180 s, reproducible with `seed`). Both engines understand English; a description with non-ASCII text is translated to English first (`meta.prompt_en`). Priced exactly like the page: per second on `el`, per take on `stable`, × takes — POST …/estimate gives the figure. ASYNCHRONOUS: returns 202 with a run id. Each file carries a machine-readable AI-generated mark. ElevenLabs terms: use the sounds inside your productions, not as a standalone sound library.

v1 beta server · 750 tokens

Price (server): el: 68 tokens per started second, at least 750 per take; stable: 6800 tokens per take; × the number of takes; paid plans: −5%, rounded up. The exact figure for your file: POST /v1/tools/sound-effect/estimate.

Call it

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

Input

FieldTypeRequiredNotes
prompt string yes What the sound is: source, action, space ("heavy wooden door slams in a stone hall").
max length: 500
engine string no `el` — short effects, per-second price; `stable` — long ambiences and music beds, flat price per take.
one of: el, stable
default: el
duration_seconds number no Length of the sound. el: 0.5–22 s, default 5; stable: 1–180 s, default 30.
variants integer no How many different takes. el: up to 4; stable: up to 3. Each take is priced; a take that could not be fetched is not charged.
default: 1
loop boolean no `el` only: make the sound loop seamlessly.
prompt_influence number no `el` only: how literally to follow the description (default 0.3).
cfg number no `stable` only: guidance scale (default 7).
seed integer no `stable` only: the same seed and description give the same sound; take N uses seed + N − 1.
format string no wav = the lossless master the engine produced; mp3 = an MP3 copy made from it. Does not change the price.
one of: wav, mp3
default: wav

Errors it can return

validation_failed  insufficient_tokens  concurrency_limited  upstream_unavailable 

History

  • v1 — 2026-11-19 — Initial release (server lane, async, the site's price per second / per take).

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.