Timbre API changelog
Newest first. Every change to what a model id means (timbre/models.json) or to the public contract gets a line here, in
the same PR. Dates are UTC. A snapshot id never changes meaning; an alias (timbre-1) may move to a newer snapshot, and
that move is listed here with the date.
2026-11-23
- Several API hosts. Per-key rate limits are shared by every host (Postgres), so a key's limit holds behind the load balancer however many hosts serve it. Autoscaled TTS hosts answer
/v1/health503 until their engine is up (TIMBRE_HEALTH_STRICT=1), so they take traffic only once they can serve it. Operations:infra/gcp/mig.sh, SCALE_OUT.md.
2026-11-24
- Speech to text is live: $0.003 per minute of audio. Owner decision.
transcribe-1(the language router: Chinese, English and Cantonese each to the model that does it best) serves in production without the proposed-price flag; it bills 5 units a second of audio (300 a minute, $0.003 at $10 per 1M units), metered per fifth of a second (rounded up) with a 1-second minimum, from the same balance as speech./v1/pricinglists it; the pricing page, docs (new section) and llms.txt state it. Omni stays proposed (503 in production). transcribe-1-2026-11-22(the speech-to-text language router) ispreview: served whereverASR_URLpoints at the router and the ASR price is served. It passed its served-path check on its serving VMs (omni-pretrain prereg Amendment 2026-11-24c, draw20261124-relabel): per set, the upper 95 % bound of (served − round-051 receipt) error ≤ +0.30 pt on AISHELL-1 test / dev, CV yue / zh-HK dev and LibriSpeech dev (largest +0.19 pt), LID labels and routes 1.000, 0 errors. The router remaps four FireRedLID labels to a local route (th→ Cantonese,es/other/ur→ Mandarin). Production still answers 503 until the owner sets the ASR price live; staging serves it (proposed prices allowed there).
2026-11-22
transcribe-1→transcribe-1-2026-11-22, the speech-to-text language router (pending). - FireRedLID picks the language. Mandarin goes to FireRedASR2-AED, Cantonese to Qwen3-ASR-1.7B, English and the rest to Qwen3-Omni (omni-pretrain round 051, gated on held-out dev sets). - The snapshot ispending: it answers 503 until its served-path equivalence check passes on the serving VM and a PR moves it topreview. It also needsASR_URL/ASR_API_KEY(infra/gcp/push_asr.sh, which refuses without a passing receipt) and, in production, the ASR pricelive(owner). - The Omni-onlytranscribe-1-2026-11-18keeps its meaning. Its server variable is nowASR_OMNI_URL/ASR_OMNI_API_KEY, so the router can never answer for it; it was never served. - With the router,verbose_jsonaddsrouteandserved_byand reports the detectedlanguage. Every response carriesX-ASR-Route,X-ASR-Served-ByandX-ASR-Gated. - A busy router answers 429server_busywith itsRetry-After, and nothing is billed. Billing is unchanged: 5 units per audio-second, at least 1 s.- Chinese is cheaper: $20 per million Chinese characters (was $30). Owner decision. Text is billed in *billable units* at the same $10 per million: a Chinese character, CJK punctuation mark or fullwidth form (the ranges in
pricing.jsonunit.cjk_ranges) counts 2 units; every other character counts its UTF-8 bytes as before, so English stays $10 per million letters and emoji stay 4. Mixed text is counted character by character. One function counts it (timbre/pricing.pybreakdown) for every billed path: realtime/v1/ttsand/v1/audio/speech, checked mode, Studio, batch previews and batch jobs (holds and bills); the site and console estimates read the same ranges and are tested to agree. Existing balances are not converted: a balance is a number of units, and Chinese now uses fewer of them (100,000 Chinese characters: 200,000 units, $2.00). The ledger, its unit and its invariants are unchanged;balance_byteskeeps its name. Synthesis responses addX-Billed-Units(the same number asX-Billed-Bytes, which stays for older clients). New:POST /v1/pricing/estimate {text}(no key) returns the units and list cost of a text without synthesising.speech_units_per_secondis 12 (was 13): the same speech, counted in the new unit. - Workspaces (step 2: members, invitations, audit).
GET/POST /v1/console/workspaces(list mine withcurrent; start a team workspace, you are its owner, it starts at zero credit),PATCH /v1/console/workspace {name},POST /v1/console/workspace/leave. Members:GET /v1/console/members,PATCH /v1/console/members/{user_id} {role},DELETE /v1/console/members/{user_id}[?revoke_keys=true](also revokes the API keys that member made; by default they keep working, since keys belong to the workspace). Invitations:GET/POST /v1/console/invitations {email, role}(201 with the token andaccept_urlonce; the token is stored hashed; inviting the same address again replaces the link; 7 days),DELETE /v1/console/invitations/{id}; for the invited personGET /v1/console/invitations/mine,POST /v1/console/invitations/accept {token | id}andPOST /v1/console/invitations/{id}/decline, which need the invited, verified email. No email is sent yet (email_sent: false). Rules: at least one owner always remains (409 last_owner, row-locked so two owners demoting each other cannot leave none), only an owner makes or changes an owner (403 owner_required), nobody changes their own role.GET /v1/console/audit?limit&before&action=member|key|billing|…(owner/admin) pages the append-only log. - Token infra. A batch job's hold no longer counts as a request in flight (
reservations.lane): before, five queued jobs on a tier-1 workspace made every realtime call429 concurrency_limit. A key can carry its ownrate_limit_per_min(create orPOST /v1/console/keys/{id};-1clears), never above the tier's;x-ratelimit-limit-requestsreports the one that applies. AnIdempotency-Keyis remembered for 24 hours (as Stripe does); after that the same key starts a new request, and the old one stays in the request log. CSV exports gain amembercolumn. - Workspaces (step 1: tenancy and authorization). An account is now a *workspace*: keys, the ledger, voices, projects and batch jobs stay keyed by it, so they are per workspace. People are
users(a sign-in identity plus linked ones) and reach a workspace only through a membership with a role:owner,admin,developer,billingorviewer. Every console route declares one permission and checks it against one table (timbre/workspaces.pyPERMISSIONS): billing actions are owner/billing only; keys, Studio, voices, projects and batch are owner/admin/developer; viewer reads everything that is not a secret and changes nothing. A console call acts in the workspace named by theX-Timbre-Workspaceheader; without it, in the caller's own (personal) workspace, which is exactly what every call meant before, so the current console is unaffected. A workspace the caller is not in is 404workspace_not_found, the same answer as one that does not exist; a missing permission is 403permission_deniedwithrequiredandrole.GET /v1/console/meaddsuserandworkspace(id,name,kind,role,permissions). API keys are unchanged (workspace-scoped, as before); a key records the member who made it (created_byin the key list), Studio requests record the member who made them, and usage gainsby_member(/v1/console/usage),group=member(/usage/series) anduser_id(/requests). Key, billing and voice actions are written to an append-onlyworkspace_audit(a trigger refuses updates and deletes). Free credit stays once per person, in their personal workspace. An API key'slast_used_atis now stamped at most once a minute (it was a row write on every call). - Migration. Additive and idempotent: each signed-in account gets one user (with the account's id) and an owner membership; linked identities follow their person; keys of self-serve accounts get their one person as creator. It also happens lazily at each first sign-in, so the order of deploy and backfill does not matter.
python -m timbre.workspaces --dry-runreports counts and invariant checks without writing (read-only on a database that has not seen the schema); without--dry-runit applies the schema and backfills.
2026-11-19
- Less API overhead under bursts. One pooled HTTP client per process for the TTS engine and for the ASR/omni server. A client per request cost ~4.5 ms of event-loop CPU (SSL context, CA bundle) plus a new connection, about 110 ms of serialized CPU in a burst of 24. The credit hold reads everything under the account lock in 3 round trips instead of 6–8, and does not wait for a WAL flush (a hold is not money; the debit is written durably at commit). The low-balance header comes from the same read. Local burst probe, zero-latency engine, TTFA p95: c=8 0.083 → 0.042 s, c=16 0.155 → 0.083 s, c=24 0.209 → 0.115 s.
- Batch, step 4: webhooks. A job with
webhook_urlgets one POST when it ends:{"type": "batch.job.<state>", "job": {…}, "files": [1-hour signed links]}, signedTimbre-Signature: t=<unix>,v1=<HMAC-SHA256 of "<t>.<body>">with the account's secret (GET /v1/batch/webhook-secret,whsec_…). Up to 5 attempts over about 36 minutes; the job showswebhook_stateandwebhook_attempts. Only https URLs whose host resolves to public addresses are accepted, checked at submit and again before each attempt; redirects are not followed. - Batch, step 3: outputs. When a job ends, including after a cancel, it gets
merged.wav(the lines that succeeded, in order, 300 ms apart),subtitles.srt(timed to that audio,[speaker] text),lines.csv(every line: state, checked, note, timing, file; UTF-8 with BOM for Excel) andjob.zip(all of it plus each line's WAV, namedlines/00001_<speaker>.wav). With the key:GET /v1/batch/jobs/{id}/files/{name}(also<n>.wavfor one line). For browsers and webhook receivers:GET …/{id}/linksreturns 1-hour signed URLs (/v1/files/batch/…, no key needed). Outputs are deleted 7 days after the job ends. - Batch, step 2: jobs.
POST /v1/batch/jobs(body: the preview's fields plusmodel,check= true by default,webhook_url) holds the whole script's units and returns 201 with the job;GET /v1/batch/jobs[/{id}]shows its progress line by line;POST …/{id}/cancelstops what has not started. The same routes run under/v1/console/batch/jobs. Lines run in the batch lane: a GPU slot only when no realtime request is waiting, and at mostBATCH_SLOTS. Across jobs they run round-robin (line 1 of each job, then line 2, …). Checked lines are heard by the verifier; if it is down they wait rather than run unchecked. Every line records whether it was checked and why not. A line is tried 3 times; at the end the job is billed only for the lines that succeeded, and the rest of the hold is released. Test keys run jobs with a tone, free and off the GPU. Line audio is kept 7 days (TIMBRE_BATCH_DIR). - Batch, step 1: script preview.
POST /v1/batch/preview(and/v1/console/batch/preview) takes a whole chapter, episode or script, as角色: 台词text, CSV (character/speaker/voice+text, optionalid) or JSON lines. It returns every line with its speaker and voice: project characters by name, voice ids as given, unprefixed lines continuing the speaker above or, after a blank line, the narrator (default_voice). It also returns per-speaker totals, the billed units and the estimated cost, and every issue that would stop a job (unknown speakers, no narrator voice). Lines over 2,000 characters are split at sentence ends; at most 5,000 lines and 2 MB per script. Nothing is written or billed. - Projects and characters.
POST/GET/PATCH/DELETE /v1/projects(and/v1/console/projects): a show or a book holding named characters, each mapped to one library or cloned voice, with notes. A character id (chr_…) works wherever a voice id does, so episode scripts keep stable ids while a character is recast in one place. Deleting a cloned voice that a character uses answers 409voice_in_use. CORS allows PATCH.
2026-11-18
- Checked sub-limit. Checked requests (
check=true) take a GPU slot and one ofCHECK_SLOTS(default: all slots). Checked mode saturates the card at about 16 and costs about 2× first-take per byte (docs/COST.md), so it gets its own cap inside the total; over it, a realtime request waits and then gets 429server_busylike any other. - check=true is now kept or refused, never dropped. Before this, a
check=truerequest on an API host without the recogniser loaded (both production and staging) played unchecked audio and said nothing; English text withoutlanguagewas not checked even with it. Now: no recogniser → 503verifier_unavailablebefore anything is held; a language the check was not measured on → 422check_unsupported_language; a recogniser failure mid-request → 503 (or, streaming, the stream ends) and nothing is billed. English is checked whenever the text has no Han characters, the verifier's own rule. Responses carryX-Checked(true/false) and, for whole-file responses,X-Check-Pieces,X-Check-Accepted,X-Check-Takes.GET /v1/modelsaddscheck_available. - Partners and referrals.
timbre.admin partner-create --id <code> --name … --share-pct 20 [--window-days 90 --share-months 12 --viewer email]; the link iswww.uploading.tech/voice/console?ref=<code>.POST /v1/console/referralattributes a new account (within 30 days of sign-up, before any payment) once, with its date;partner-attributedoes it by hand. Revenue per partner (/v1/console/admin/partners,partner-report) comes from paid ledger credits, net of refunds and Stripe's fee (now stored per order); a payment shares when the first payment came within the window and it falls in the share period. Partners see their own numbers at/v1/console/partnerwith customer emails masked. - Promo / test credit codes.
timbre.admin promo-create --usd 20 --expires 2026-12-31 --uses 1 [--credit-days 90] [--code NAME],promo-list,promo-disable. A signed-in account redeems a code once withPOST /v1/console/promo(10 tries an hour). A redemption is ledger kindpromowith 0 cents: it is never revenue, never counts toward a tier, and has no order, so it cannot be refunded. Unknown, expired, disabled and used-up codes all answerinvalid_code. - Speech capacity. Text to speech now takes a GPU slot before reserving credit: when every slot (
GEN_SLOTS, 12) stays busy forREALTIME_WAIT_S(20 s), the request gets 429server_busywithRetry-After: 5and nothing is held or billed (before, it waited without limit). A batch lane (for long-form jobs) holds at mostBATCH_SLOTS(a third) and never takes a slot while a realtime request waits./metricsadds slot gauges;/v1/console/admin/capacity(verified emails inTIMBRE_ADMIN_EMAILSonly) shows slots, queue depth and live GPU use. - Speech to text and omni in preview.
transcribe-1andomni-1(built on Qwen3-Omni-30B-A3B-Instruct, revision26291f79, first shard sha256f95d142b…9065) move frompendingtopreview, served by their own GPU server. Omni answers with text only: a request for audio output gets 422audio_output_unavailablebefore anything is billed;/v1/modelslistsoutput_modalities: ["text"]. Speech to text takes up to 600 s per request. Prices stay proposed, so production keeps answering 503 until they are confirmed. - The GPU server takes at most
UPSTREAM_CONCURRENCYrequests per API instance (16 measured on the whole server); beyond that a request waits up to 20 s, then gets 429server_busy. Readiness reports the GPU server underproductsand never fails because of it./v1/modelsobjects carryavailable: whether this deployment serves the model now. - Rate limits are token buckets: per key at the account's tier (
tiers[].requests_per_minuteinpricing.json, 120 at every tier today, so nothing changes for anyone), per client address on every/v1route (1,200 a minute), and 20 unknown keys a minute per address; a 429 carriesRetry-After. - Free credit goes once per inbox: emails are compared without case,
+tagand Gmail dots. An unverified identity gets it when it signs in verified. Past 3 grants a day from one address or 2 per device, the grant is held for review (timbre-admin release-free)./v1/console/mereportsfree_credit:granted,held,claimedorunverified. - Write freeze for the database move (
infra/db/freeze.sh): writing routes answer 503maintenancewithRetry-After; health and/v1/modelsstay up. Runbook:CUTOVER.md. - Products.
/v1/audio/transcriptions(speech to text) and/v1/chat/completions(omni) on the same key and ledger. Listed as coming soon: they answer 503model_not_availableuntil a GPU server is set (ASR_URL,OMNI_URL) and their price is confirmed. Proposed prices: $0.003 per audio minute; omni $0.40 / $3.00 / $1.60 / $12.00 per 1M text-in / audio-in / text-out / audio-out tokens. - Models.
transcribe-1andomni-1(built on Qwen3-Omni-30B-A3B-Instruct) andtimbre-1-2026-11-17(our post-trained checkpoint) listed with statuspending;timbre-1unchanged. - Keys carry scopes (
tts,asr,omni); a key without a product's scope gets 403scope_denied. - Monthly spend limit and alert per account; past the limit requests get 402
spend_limit_reachedbefore any work.
2026-11-16
- Pricing (owner decision, delegated): packs $10 / $50 / $200 / $1,000 with +0 / +10 / +20 / +30 % bonus credit (1M / 5.5M / 24M / 130M bytes); rate unchanged at $10 per 1M UTF-8 bytes; 100k free bytes once; purchased credit (bonus included) expires 12 months after purchase; unused paid credit refundable within 14 days. All of it in
timbre/pricing.json, served atGET /v1/pricing. - Credit lots: spending uses the soonest-expiring credit first; an hourly sweep removes expired credit (ledger kind
expiry). - Usage tiers made explicit (
/v1/console/limits); thresholds unchanged ($0 / $100 / $1,000 lifetime → 5 / 15 / 50 in flight). - Low-balance line per account (default 20,000 bytes):
low_balancein the wallet,X-Balance-Lowon synthesis. - Auto-reload (saved card, off-session pack purchase) behind
TIMBRE_AUTO_RELOAD, off by default.
2026-11-14
- Model registry.
model=resolves throughtimbre/models.json.timbre-1→timbre-1-2026-11-08, the open Qwen3-TTS-12Hz-1.7B-Base weights (Apache-2.0, sha25638fc7fc5…857c), unmodified, behind the 40-unit text split, Chinese/English normalisation and the optional check. Every synthesis response names the snapshot inX-Model. GET /v1/models,GET /v1/models/{id}(OpenAI shape, plusbase_model,post_trained,status)./v1/ttsacceptsmodel(defaulttimbre-1).- Canary support: a share of accounts on an alias can be sent to a candidate snapshot (sticky per account).
- Deprecated snapshots answer with
Deprecation: true; retired ones with 410model_retired. - Request id on every response, one error shape (
message,type,param,code) for every error, auth before body,x-ratelimit-*headers, realRetry-After,GET /v1/voices/{id}, JSON access log (PR #55).
2026-11-08
- First internal release:
/v1/tts,/v1/audio/speech, voices, wallet, console routes, Stripe Checkout and webhook, byte ledger with reservations and idempotency keys, admin CLI.