API documentation
Text-to-Speech API
Send text, get audio back: one file, or one file per line. No character detection, portraits, scenes or music.
Quick Start#
Submit text, poll for completion, download the audio. A complete script in curl, Node.js and Python is in Complete Example.
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"content": "Hello, and welcome to Notevibes.",
"voice": "en-US-Chirp3-HD-Achernar"
}'curl https://notevibes.com/api/tts/jobs/{jobId} \
-H "Authorization: Bearer nvb_your_api_key"3. When status is "completed", download result.audioUrl
How It Works#
- Create a job with
POST /api/tts/create. It returns202and ajobIdright away. The audio is made in the background. - Poll
GET /api/tts/jobs/:jobIduntilstatusiscompletedorfailed. - Download the file from
result.audioUrl.
Text of up to 5,000 characters (after HTML tags are removed) is voiced in one step and usually finishes in seconds. This applies to catalog, library and cloned voices. Longer text is split into parts automatically and the parts are joined into one audio file, so the job takes longer. Either way you get a single file back.
Need a separate file for every word or sentence? See One file per line.
Authentication#
All requests require a Bearer token. Create API keys from the Developer page. Creating keys needs an active subscription.
Authorization: Bearer nvb_your_api_keyKey Scoping#
Each API key is scoped to a specific project within your organization. Creating jobs (and estimating one with dryRun) requires write permission. Listing voices, polling a job, listing jobs, reading the account and usage, and reading the account webhook require read. Saving, removing and testing the account webhook require write. A key without the permission gets 403. An admin key has every permission. Any valid key of the workspace can read a job that the workspace created.
Complete Example#
Create a job, poll until it is done, then save the MP3. Each script stops with a message on an HTTP error or a failed job.
API=https://notevibes.com/api/tts
KEY=nvb_your_api_key
CREATED=$(curl -s -X POST "$API/create" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Episode intro",
"content": "Welcome back to the show. Today we dive into AI voice technology.",
"voice": "en-US-Chirp3-HD-Leda"
}')
JOB=$(echo "$CREATED" | jq -r .jobId)
if [ "$JOB" = "null" ]; then echo "$CREATED"; exit 1; fi
while true; do
sleep 3
RESP=$(curl -s "$API/jobs/$JOB" -H "Authorization: Bearer $KEY")
STATUS=$(echo "$RESP" | jq -r .status)
if [ "$STATUS" = "completed" ]; then break; fi
if [ "$STATUS" = "failed" ]; then echo "$RESP" | jq -r .error; exit 1; fi
if [ "$STATUS" = "null" ]; then echo "$RESP"; exit 1; fi
done
curl -s -o episode-intro.mp3 "$(echo "$RESP" | jq -r .result.audioUrl)"Create TTS Job#
/api/tts/createSubmit plain text to be rendered as a single-voice audio file. Returns 202 immediately with a job ID. Synthesis runs in the background. The API key needs write permission.
Request Body#
| Parameter | Type | Description |
|---|---|---|
title | string | Label for the job. Leave it out and the job is named after the opening words of its text. It is returned in every status response. A longer job also appears in your workspace as a document with this title. |
contentRequired | string | Required, unless you send "lines" instead. The text to synthesize, as plain text. |
voice | string | Voice ID. Default: "en-US-Chirp3-HD-Achernar". Three forms: a catalog id ({locale}-Chirp3-HD-{Name}), a library voice ("lib:…") or one of your cloned voices ("clone:…"). See Voices below. |
output | string | "file" (default): one audio file. "lines": one audio file per line of content, delivered as a ZIP. See One file per line. |
lines | array | Send it instead of content: [{ "id": "...", "text": "..." }, …]. One audio file per item, so "output" is not needed. An item may add its own "voice"; without one it uses the top-level voice. See One file per line. |
webhookUrl | string | Optional. A public https:// URL we POST the result to once, when the job completes or fails. Polling keeps working either way. See Webhooks. |
delivery | string | "standard" (default): the audio is made now. "overnight": half price, delivered within a day. Works for one-file and per-line jobs. See Overnight delivery. |
format | string | Optional. The audio file type: "mp3" (default), "wav", "flac", "m4a", "m4r" or "ulaw" (8 kHz mono WAV for telephony). Not case-sensitive. Formats other than mp3 are free and work for short text only: up to 5,000 characters, a Chirp3-HD, library or cloned voice, no per-line files, standard delivery. Anything else returns 400. |
style | string | Optional. A short delivery direction for the whole job, for example "calm bedtime narrator". Kept to 200 characters; a longer one is shortened and the response says so. Chirp3-HD, library and cloned voices follow it; other voices ignore it. In a per-line job an item may carry its own "style". See Warnings. |
dryRun | boolean | true: run every check and return the price, but create nothing and charge nothing. See Estimate without creating. Any other value returns 400. |
One optional header: Idempotency-Key. See Safe retries.
What content accepts#
- Plain text in any language the voice supports. HTML tags are removed before the text is read and before credits are estimated.
- Up to 5,000 characters, line breaks stay in the text as you typed them. Three or more line breaks in a row become one blank line.
- Longer than that, a blank line starts a new paragraph. A single line break inside a paragraph is treated as a wrapped line and joined with a space. The exception is a paragraph of two or more lines that are all 60 characters or shorter (a list, a poem, short dialogue): its line breaks are kept. A very long block with no blank lines is split at sentence ends.
- A single-file request takes at most 1,047,552 bytes of text (UTF-8). A longer text returns
413with the byte count incontentBytesand the limit inmaxBytes, before anything is created. Split large texts into several jobs. - Inline
[bracket]tags such as[laughs]or[short pause]are performed by Chirp3-HD, library and cloned voices. Other voices remove them. A tag that will not be performed is reported inwarnings.
Example#
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Episode intro",
"content": "Welcome back to the show. Today we dive into AI voice technology.",
"voice": "en-US-Chirp3-HD-Leda"
}'Response#
{
"jobId": "abc123def456",
"status": "processing",
"estimatedCredits": 78
}status is processing when the job started, or queued when all processing slots are busy. estimatedCredits is the price estimated from your text. The final charge is in result.credits.total once the job completes.
If content looks like a list of short lines, the response may carry one extra field, hint, pointing to the one-file-per-line option. The job still runs as a normal single-file job. It may also carry warnings, described below.
Warnings#
When the voice will not do something you asked for, the create response says so up front in a warnings array. The field is left out when there is nothing to report. The job is still created. Each warning has a code and a plain-language message.
{
"jobId": "abc123def456",
"status": "processing",
"estimatedCredits": 78,
"warnings": [
{
"code": "mood_tag_dropped",
"message": "Mood tags that will not be performed: [whispers] is not at the start of a paragraph, so the voice skips it — a mood tag only works as the first thing in its paragraph."
}
]
}| Code | Meaning |
|---|---|
mood_tag_dropped | A mood tag such as [whispers] is not the first thing in its paragraph, so it is skipped. Also used when a line has its own style: the style is used instead of the opening mood tag. |
sound_effect_dropped | A sound-effect tag such as [thunder] or [music] is removed. Only vocal sounds ([laughs], [sighs], [short pause] …) are performed. |
tags_ignored_classic_voice | The voice is a Standard, Neural2, News or Chirp-HD voice. It does not perform bracket tags, so they are removed before reading. |
style_ignored_classic_voice | A style was sent for a Standard, Neural2, News or Chirp-HD voice. Those voices cannot follow a style, so it is ignored. |
style_shortened | A style was longer than 200 characters and was shortened to 200. |
Estimate without creating#
Add "dryRun": true to a create request to check it first. Every check runs and the price is worked out, but no job is created and nothing is charged. The key needs write permission, like a real create. The answer is 200 and includes the same warnings a real request would return.
{
"dryRun": true,
"estimatedCredits": 78,
"currentBalance": 9922,
"sufficient": true
}sufficient says whether the balance covers the estimate. A balance that is too low is not a 402 here: you get sufficient: false. The balance must also cover reservedCredits, the credits your other accepted jobs have not been charged yet. The response includes reservedCredits when there are any. Other problems, such as an unknown voice, still return their usual error. A dry run ignores the Idempotency-Key header.
Safe retries#
Send an Idempotency-Key header with any unique string you choose, and a retry of the same request does not create a second job or charge twice. Keys are kept for 24 hours and belong to the API key that sent them.
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Idempotency-Key: episode-12-intro" \
-H "Content-Type: application/json" \
-d '{ "content": "Welcome back to the show.", "voice": "en-US-Chirp3-HD-Leda" }'- Same key, same request body (key order does not matter): the first
202response is returned again, with the samejobId. - Same key, a different request:
409withIdempotency-Key was already used with a different request. - Same key while the first request is still being processed:
409withA request with this Idempotency-Key is still being processed. Wait a moment and retry. - Only a
202is remembered. If the first attempt failed with an error, the key is free and you can retry with it. - An empty key returns
400.
Get Job Status#
/api/tts/jobs/:jobIdPoll this endpoint to track a job. Any valid API key of the workspace that created the job can read it. Poll every 3 to 5 seconds. Short text usually finishes within a few polls.
Response (Processing)#
{
"jobId": "abc123def456",
"status": "processing",
"step": "generating_audio",
"title": "Episode intro",
"progress": { "currentChapter": 0, "totalChapters": 1 },
"estimatedCredits": 78
}Response (Queued)#
{
"jobId": "abc123def456",
"status": "queued",
"step": "queued",
"title": "Episode intro",
"progress": { "currentChapter": 0, "totalChapters": 0 },
"estimatedCredits": 78,
"queuePosition": 3
}Response (Completed)#
{
"jobId": "abc123def456",
"status": "completed",
"step": "completed",
"title": "Episode intro",
"progress": { "currentChapter": 1, "totalChapters": 1 },
"estimatedCredits": 78,
"result": {
"audioUrl": "https://storage.googleapis.com/notevibes.com/...?X-Goog-Signature=...",
"audioUrlExpiresIn": 3600,
"duration": 4.6,
"credits": {
"total": 78,
"remaining": 9922,
"breakdown": []
}
}
}audioUrlis a signed link that works foraudioUrlExpiresInseconds (3600, one hour). Every status call returns a fresh link, so poll again if yours expired.durationis the length of the audio in seconds.credits.totalis what the job cost.credits.remainingis your workspace balance after the job.- Audio format: MP3, mono, 24 kHz, 96 kbps by default, for every kind of job.
- Other formats (
format) are for short text: up to 5,000 characters with a Chirp3-HD, library or cloned voice. They are made straight from the voice's original audio, so wav and flac are lossless. Mono, 24 kHz; ulaw is 8 kHz. - Long text, per-line jobs and overnight jobs are MP3 only. Asking them for another format returns
400. - A job made in another format adds
result.format, for example"flac", andaudioUrllinks to that file. An MP3 job does not have this field. - If that format could not be made, the job still completes with the MP3. Then
result.formatis"mp3"andresult.formatWarningsays so in plain words. You are charged the same either way. - If some parts of a long text could not be voiced, the job still completes and the audio file holds the parts that were voiced. Then
result.partssays how many and why, for example{ "total": 5, "voiced": 3, "failed": 2, "reason": "Insufficient credits — the balance ran out before every part could be voiced." }. A job with every part voiced does not have this field.
Response (Failed)#
{
"jobId": "abc123def456",
"status": "failed",
"step": "generating_audio",
"title": "Episode intro",
"progress": { "currentChapter": 0, "totalChapters": 1 },
"estimatedCredits": 78,
"error": "Speech generation failed — try again."
}error is a plain-language reason. See Why a job fails.
Status Values#
| Status | Meaning |
|---|---|
queued | Waiting for a processing slot. See queuePosition. |
processing | Synthesis in progress. |
completed | Done. result.audioUrl is ready. |
failed | Job failed. See error. |
Step Values#
| Step | When you see it |
|---|---|
queued | The job is waiting for a slot. |
creating_document | A longer job has just started. Short text skips this step. |
generating_audio | The voice is reading the text. |
exporting | A longer job is joining its parts into the final file. Short text skips this step. |
overnight_queued | An overnight job is waiting for its audio. See Overnight delivery. |
overnight_landing | The audio of an overnight job has arrived and is being put together. |
completed | The job is done. |
A failed job keeps the step it failed on. Rely on status to decide when to stop polling, not on step.
Progress and queue position#
progress.currentChapterofprogress.totalChapterscounts finished parts. Short text is one part: it shows 0 of 1 while it runs and 1 of 1 when done. For a longer job,totalChaptersis 0 while queued and is filled in when audio generation starts.queuePositionappears only while the job is queued. It is 1 for the next job, and it counts the queued jobs ahead of yours in turn order (see Queue). Workspaces take turns, so the real wait can be a little shorter or longer than the position suggests.
Why a job fails#
A job that ends as failed carries one of these reasons in error:
- Content filter:
The voice engine’s content filter declined some of this text. Reword the flagged lines and try again — retrying unchanged won’t work. - Temporary network issue:
Audio generation hit a temporary network issue. Please try again. - General failure:
Speech generation failed — try again. - Audio could not be saved:
The audio was generated but could not be saved — please submit the job again. - Not enough credits when the job started, or the balance ran out before any of the text was voiced: a message that begins with
Insufficient. - No part of a long text could be voiced for another reason: a message that begins with
None of theand gives the reason. - Stuck for 24 hours:
Job timed out (exceeded 24 hour limit).
A short job that fails is not charged. A failed job can be submitted again as a new job.
List Jobs#
/api/tts/jobsList TTS jobs for the authenticated organization, newest first. Returns a slim view. Fetch /api/tts/jobs/:jobId for the full result payload (including audioUrl).
Query Parameters#
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status: "queued", "processing", "completed", or "failed". Any other value returns 400. |
limit | number | Max jobs to return (1–100). Default: 20. |
cursor | string | Job ID from the previous response’s nextCursor. Used for pagination. |
Example#
curl "https://notevibes.com/api/tts/jobs?status=completed&limit=20" \
-H "Authorization: Bearer nvb_your_api_key"Response#
{
"jobs": [
{
"jobId": "abc123def456",
"status": "completed",
"step": "completed",
"title": "Episode intro",
"estimatedCredits": 78,
"createdAt": "2026-04-18T14:23:01.000Z",
"updatedAt": "2026-04-18T14:23:14.000Z"
}
],
"nextCursor": "abc123def456"
}A failed job also has an error field. If nextCursor is non-null, pass it back as ?cursor=... to fetch the next page.
List Voices#
/api/tts/voicesList the catalog voices, the library voices and your workspace's cloned voices. Use each entry's id as the voice when creating a job. Requires read permission.
Query Parameters#
| Parameter | Type | Description |
|---|---|---|
locale | string | Only catalog and library voices in this locale, e.g. "en-US" (case-insensitive). Cloned voices are always returned. With a locale, catalog comes back as ready-to-use entries; an unsupported locale gives an empty catalog list. |
gender | string | Only catalog and library voices of this gender, e.g. "female" or "male". Cloned voices are always returned. |
language | string | Library voices only. A base language code such as "en", "es" or "pt": every locale of that language. If locale is also sent, locale wins. |
age | string | Library voices only. Values include "young adult", "adult", "middle-aged" and "senior". Separate several with commas to match any of them. |
pitch | string | Library voices only. "low", "medium" or "high". Commas match any of several. |
energy | string | Library voices only. "calm", "balanced" or "energetic". Commas match any of several, e.g. "calm,balanced". |
tempo | string | Library voices only. "slow", "medium" or "fast". Matches only voices with a measured pace. Commas match any of several. |
bestFor | string | Library voices only. One or more suggested uses separated by commas, e.g. "audiobook narration,kids stories". A voice matches if its bestFor list holds any of them. |
accent | string | Library voices only. Text contained in the voice’s accent, ignoring case and accent marks, e.g. "british". |
q | string | Library voices only. A free-text description such as "warm bedtime storyteller". The library array then holds only the matches, best first. Searched in the locale you send, else the first locale of language, else en-US. |
limit | integer | Library voices only. The most library entries to return. Without q, all matching voices are returned if you omit it; with q, the default is 5. A value that is not a positive whole number is ignored. |
Every library parameter is optional and can be combined; they narrow the library array only. A value that matches no voice gives an empty list, not an error.
Example#
curl "https://notevibes.com/api/tts/voices?locale=en-US" \
-H "Authorization: Bearer nvb_your_api_key"Two library filters together, for example calm Spanish voices:
curl "https://notevibes.com/api/tts/voices?language=es&energy=calm" \
-H "Authorization: Bearer nvb_your_api_key"Response#
Four fields: catalog, library, cloned and rates. Catalog entries (when you send locale), library entries and cloned voices each carry creditsPerChar, the credits per character a job on that voice is charged.rates holds the rate per voice kind (catalog, library, cloned), overnightMultiplier (0.5), characterWeights and a note. When a rate is due to change, changesAt and next show the new rates. The examples below leave rates out for brevity. This is the response with locale set:
{
"catalog": [
{
"id": "en-US-Chirp3-HD-Achernar",
"name": "Achernar",
"locale": "en-US",
"gender": "female",
"sampleUrl": "https://storage.googleapis.com/notevibes-public/public/samples/gemini-3.8/en-US-Chirp3-HD-Achernar.mp3"
}
],
"library": [
{
"id": "lib:en-us-storyteller-1",
"name": "Abigail",
"locale": "en-US",
"gender": "female",
"age": "young adult",
"pitch": "high",
"energy": "energetic",
"accent": "General American",
"description": "Higher-pitched, expressive reading style with animated emphasis and bright theatrical coloring.",
"bestFor": ["kids stories", "audiobook narration", "education"],
"sampleUrl": "https://storage.googleapis.com/notevibes-public/public/voices/library/v1/samples/en-us-storyteller-1.mp3"
}
],
"cloned": [
{
"id": "clone:org_abc123:vx9Kq2",
"name": "My voice",
"locale": "en-US",
"status": "ready",
"createdAt": "2026-09-20T10:12:44.000Z"
}
]
}Library entries may also carry wpm and tempo. A cloned voice that failed carries an error; only voices with status ready can be used. Play sampleUrl to audition a voice before using it. The full library is returned in one response.
Without locale, catalog is one compact object instead of a list. Each name carries a sampleUrl, the English (en-US) sample of that voice. For a sample in another language, send locale:
{
"catalog": {
"idFormat": "{locale}-Chirp3-HD-{name}",
"names": [{ "name": "Achernar", "gender": "female", "sampleUrl": "https://storage.googleapis.com/notevibes-public/public/samples/gemini-3.8/en-US-Chirp3-HD-Achernar.mp3" }, …],
"locales": [{ "code": "en-US", "language": "English (US)" }, …]
},
"library": [ … ],
"cloned": [ … ]
}Get Account#
/api/accountThe workspace behind the key: its plan and credit balance. Requires read permission. Use it to check the balance before a large job. The response is not cached.
Example#
curl https://notevibes.com/api/account \
-H "Authorization: Bearer nvb_your_api_key"Response#
{
"plan": "Pro",
"renewsAt": "2026-12-01T09:00:00.000Z",
"credits": 9922,
"packCredits": 0,
"reservedCredits": 1200,
"spendableCredits": 8722
}planis the plan name, ornullwhen the workspace has no plan or only a credit pack.renewsAtis the next billing date. It is left out when there is none.creditsis your balance. It is the same number ascurrentBalancein a402response. A new job is checked against it minusreservedCredits.packCreditsis the part ofcreditsthat comes from a credit pack and is still valid. It is included incredits, not added to it.reservedCreditsis what your accepted jobs that are not charged yet have promised: queued jobs, jobs that are starting, and overnight jobs that are not delivered yet. A job that is already making audio is charged as it goes and is not counted.spendableCreditsiscreditsminusreservedCredits(never below 0): what a new job can use. A job is accepted only when its estimate fits.
Errors#
401for a missing or invalid key.403withAPI key lacks read permission.500if the account cannot be read right now. Try again shortly.
Get Usage#
/api/usageThe credit receipts of the key's project, newest first: what each charge cost. Requires read permission. The response is not cached.
Query Parameters#
| Parameter | Type | Description |
|---|---|---|
from | string | Only receipts at or after this time. An ISO 8601 date or datetime, for example "2026-11-01" or "2026-11-01T00:00:00Z". A bare date means the start of that day (UTC). An invalid value returns 400. |
to | string | Only receipts at or before this time. Same format. A bare date means through the end of that day (UTC). An invalid value returns 400. |
limit | number | Max receipts to return (1–100). Default: 20. |
cursor | string | The previous response’s nextCursor. Used for pagination. |
Example#
curl "https://notevibes.com/api/usage?from=2026-11-01&to=2026-11-30&limit=20" \
-H "Authorization: Bearer nvb_your_api_key"Response#
{
"usage": [
{
"id": "r8Kq2xV1",
"at": "2026-11-12T10:00:03.000Z",
"credits": 78,
"type": "tts",
"voice": "en-US-Chirp3-HD-Leda",
"characters": 65,
"weightedCharacters": 65,
"documentId": "abc123def456"
}
],
"nextCursor": null
}atis when the credits were charged.creditsis the amount.typeistts(speech, charged per character),tokens(flat-priced work such as transcription) orimage.- The other fields appear when they apply:
command,voice,characters,weightedCharacters(Chinese, Japanese and Korean weigh more),seconds,documentId(the document, or for a clip or transcription the job, the charge belongs to),discount(a price multiplier below 1, for example 0.5 for overnight) andfree: true(a receipt only, nothing was charged). - If
nextCursoris non-null, pass it back as?cursor=...to fetch the next page.
Errors#
400for an invalidfromorto.401for a missing or invalid key.403withAPI key lacks read permission.500if usage cannot be listed right now. Try again shortly.
MCP server#
The same API is available as an MCP (Model Context Protocol) server, so an AI agent such as Claude Code, Cursor or VS Code can list voices, make speech and read jobs, balance and usage on its own. It uses the same API key and the same credits as the REST API.
/api/mcpThe full URL is https://notevibes.com/api/mcp.
How it connects#
- Send
Authorization: Bearer nvb_…on every request, including the first handshake and the tool list. A missing or invalid key returns401. - The server answers
POSTonly.GETandDELETEreturn405: there is no event stream and there are no sessions. - It is stateless. The newer protocol (version 2026-07-28), which has no handshake, is served. The older
initializehandshake (versions 2025-03-26, 2025-06-18 and 2025-11-25) is also accepted. - One JSON-RPC message per request. Batches are refused.
- A request that carries a browser
Originother than this server's own is refused with403. Agents and command-line clients send no Origin and are not affected.
claude.ai web connectors are not supported. They require OAuth, and this server authenticates with an API key in a header only.
Tools#
| Tool | What it does | Key permission |
|---|---|---|
list_voices | Lists catalog, library and cloned voices with sample links and credit rates. Same filters as List Voices. | read |
create_speech | Starts a speech job and returns its jobId. Takes text or lines, voice, style, title, delivery, format, perLineFiles and idempotencyKey. | write |
estimate_speech_cost | Checks a create_speech request without creating anything: the estimate, the balance, whether it is enough, and the warnings. Same arguments. | write |
get_speech_job | The status of a job, with a download link when it is completed. Same as Get Job Status. | read |
list_speech_jobs | Recent jobs, newest first. Same as List Jobs. | read |
get_balance | Plan and credit balance. Same as Get Account. | read |
get_usage | Credit receipts, newest first. Same as Get Usage. | read |
A tool that fails, for example for too few credits or a missing permission, returns the same error message as the REST API, so the agent can read it and recover. The seven tools are listed for every key; the permission is checked when a tool is called. Jobs are asynchronous, as in the REST API: the agent calls get_speech_job until the status is completed or failed.
Claude Code#
claude mcp add --transport http notevibes https://notevibes.com/api/mcp \
--header "Authorization: Bearer nvb_your_api_key"Cursor#
Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project. Cursor can read the key from an environment variable, so it does not have to be written into the file.
{
"mcpServers": {
"notevibes": {
"url": "https://notevibes.com/api/mcp",
"headers": {
"Authorization": "Bearer ${env:NOTEVIBES_API_KEY}"
}
}
}
}Keep the key out of files you share. Only write keys can create or estimate speech; a read key is enough for the other five tools.
One file per line#
Use this when you need a separate audio file for every word, phrase or sentence, for example vocabulary lists or prompts. Send them in one request. The job returns a ZIP with one MP3 per line and an index.json. The files are always MP3, so the names in the ZIP and in index.json end in .mp3. A format other than mp3 returns 400. For normal narration, use the single-file flow above.
The same endpoint, three ways to send text:
| You send | You get | Files are named |
|---|---|---|
content | One MP3. | – |
content + "output": "lines" | A ZIP with one MP3 per line with something to read. | By position: 1.mp3, 2.mp3 … (zero-padded). |
lines | A ZIP with one MP3 per item. A voice per line is possible. | By your ids. |
Plain text: one file per line#
Add "output": "lines". Every line of content with something to read is one item, in order. Files are numbered in that order (blank lines are not counted), zero-padded to the width of the list (0001.mp3 for a list of thousands).
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Fruit words",
"content": "apple\nbanana\ncherry",
"output": "lines",
"voice": "en-US-Chirp3-HD-Leda"
}'Your own ids#
Send lines instead of content: an array of items, each with an id and a text. You do not need output; lines always gives one file per item. Each file is named after its id.
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Lesson 4 vocabulary",
"voice": "en-US-Chirp3-HD-Leda",
"lines": [
{ "id": "w-001", "text": "apple" },
{ "id": "w-002", "text": "banana" },
{ "id": "w-003", "text": "How are you today?" }
]
}'Each id must be a non-empty, unique string. Characters a file name cannot hold are removed. If two ids end up with the same name, the later ones get -2, -3 and so on. index.json lists the final name of every file.
The create response is the usual one plus "lines": 3 (the item count). A duplicate id, an item without text, or an id that is not a string returns 400 naming the item. A single line that is too long to be one file also returns 400. Sending both content and lines also returns 400.
A voice per line#
With lines, any item can carry its own voice, in the same forms as the top-level voice (a catalog id, lib:… or clone:…). An item without one is read in the top-level voice — set the voice you use most at the top and add voice only to the lines that differ. One job, one ZIP, many voices.
{
"voice": "en-US-Chirp3-HD-Achernar",
"lines": [
{ "id": "q-01", "text": "Where is the station?", "voice": "en-US-Chirp3-HD-Leda" },
{ "id": "a-01", "text": "It is just around the corner." },
{ "id": "q-02", "text": "Thank you!", "voice": "lib:your_library_voice_id" }
]
}Here q-01 is read by Leda, a-01 by the top-level voice (Achernar) and q-02 by a library voice.
Which voices can share a job:
- Chirp3-HD catalog voices, library voices (
lib:…) and cloned voices (clone:…) can be mixed freely in one job. - Standard, Neural2, News and Chirp-HD voices cannot be combined with other voices. A job that uses one of them must use that one voice for every line — send those lines as a job of their own.
- A job that mixes them returns
400and names the first line that does not fit:
{ "error": "lines[1] (id "a-01"): Standard, Neural2, News and Chirp-HD voices can't be combined with other voices in one job — use Chirp3-HD, library or cloned voices for a mixed job, or send those lines as their own job." }A voice that is not a string, or an unknown or unavailable voice, returns the usual error for that voice, naming the item. The estimate prices each line at the rate of its own voice. index.json lists the voice each file was made with. The plain-text form has no per-line voice.
Result#
Poll like any other job. The job is one job with one queue slot, and progress advances part by part. When it completes there is no single audio file: audioUrl is null and zipUrl is a signed link, valid for zipUrlExpiresIn seconds (3600) and refreshed on every poll.
{
"jobId": "abc123def456",
"status": "completed",
"step": "completed",
"title": "Lesson 4 vocabulary",
"progress": { "currentChapter": 1, "totalChapters": 1 },
"estimatedCredits": 35,
"result": {
"audioUrl": null,
"zipUrl": "https://storage.googleapis.com/notevibes.com/...?X-Goog-Signature=...",
"zipUrlExpiresIn": 3600,
"lines": { "total": 3, "voiced": 3, "failed": 0 },
"duration": 3.42,
"credits": { "total": 35, "remaining": 9965, "breakdown": [] }
}
}duration is the sum of the files. Only lines that were voiced are charged. If no line could be voiced, the job fails and nothing is charged.
index.json#
{
"total": 3,
"voiced": 2,
"failed": 1,
"durationSec": 2.31,
"items": [
{ "index": 0, "id": "w-001", "text": "apple", "voice": "en-US-Chirp3-HD-Leda", "file": "w-001.mp3", "durationSec": 1.12, "status": "ok" },
{ "index": 1, "id": "w-002", "text": "banana", "voice": "en-US-Chirp3-HD-Leda", "file": "w-002.mp3", "durationSec": 1.19, "status": "ok" },
{ "index": 2, "id": "w-003", "text": "How are you today?", "voice": "en-US-Chirp3-HD-Leda", "file": null, "durationSec": null,
"status": "failed", "reason": "No audio came back for this line (the voice declined it or the request failed)." }
]
}One entry per item, in the order you sent them (id only when you sent lines).voice is the voice the line was sent with: its own, or the top-level one. A failed item has no file and a plain reason.
Overnight delivery#
Add "delivery": "overnight" to a create request and the job costs half the normal price. The audio is delivered within a day instead of right away. Everything else stays the same: the same request, the same status calls, the same result.
Use it when nobody is waiting for the audio: a full book, a back catalogue, a large vocabulary set, or anything you prepare a day ahead. For a reply someone is waiting for, use the standard delivery.
Example: a long text#
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "The Lighthouse, full book",
"content": "Chapter One. The keeper climbed the stairs at dusk...",
"voice": "en-US-Chirp3-HD-Leda",
"delivery": "overnight",
"webhookUrl": "https://example.com/hooks/tts"
}'Example: one file per line#
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Lesson 4 vocabulary",
"voice": "lib:en-us-storyteller-1",
"delivery": "overnight",
"lines": [
{ "id": "w-001", "text": "apple" },
{ "id": "w-002", "text": "banana" }
]
}'The create response is the usual one plus "delivery": "overnight". Its estimatedCredits is already the half-price estimate. Overnight works for text of any length; even a short text goes overnight when you ask for it.
While you wait#
The job takes a processing slot only while its text is prepared, usually a minute or less. Then it waits without holding a slot. While it waits, status and list calls show it as processing:
{
"jobId": "abc123def456",
"status": "processing",
"step": "overnight_queued",
"title": "The Lighthouse, full book",
"progress": { "currentChapter": 0, "totalChapters": 12 },
"estimatedCredits": 41250,
"delivery": "overnight",
"submittedAt": "2026-11-12T21:04:10.000Z"
}stepisovernight_queuedwhile the audio is being made, andovernight_landingonce it has arrived and the files are being put together.submittedAtis when the job was sent overnight. The audio is delivered within a day of that time.progressstays at 0 while the job waits and is filled in when it completes.- Overnight jobs keep
deliveryandsubmittedAtin every response, including the completed one and the webhook. ?status=processingon the list endpoint includes overnight jobs that are waiting.
Set webhookUrl on overnight jobs. You get one POST when the audio is ready, instead of polling for hours. If you poll, once every few minutes is plenty. See Webhooks.
Supported voices#
- Catalog voices (
{locale}-Chirp3-HD-{Name}) and library voices (lib:…) can be sent overnight. - Cloned voices (
clone:…) are not available overnight yet. The request returns400; send it with the standard delivery. - In a per-line job this applies to every voice in it: the top-level
voiceand each line's own. The error names the first line that uses a voice overnight does not support. - Any other voice id returns
400, because it would be voiced at the full price. - A
deliveryvalue other than"standard"or"overnight"returns400.
Credits#
estimatedCreditsis the estimate at half price.- Nothing is charged when you create the job, and no credits are held. You are charged when the audio arrives, for the audio that was produced.
result.credits.totalis what the job really cost. It can be higher than the estimate: a part of the text that could not be voiced overnight is voiced right away when the rest arrives, at the normal price.- To create any job, your balance must cover its estimate plus
reservedCredits. Otherwise the request returns402,creditsNeededincludes those credits, and the body addsreservedCreditsand amessage. - Credits are charged on delivery. API jobs cannot spend reserved credits, but spending your balance outside the API, for example in the Studio, while a job waits can make it fail or deliver only part of the audio.
When something goes wrong#
- Part of a long text could not be voiced: the job still completes, and the audio file holds the parts that were voiced.
result.partssays how many are missing and why. You are charged only for the voiced parts. - Some lines of a per-line job could not be voiced: the job completes and
index.jsonlists those lines as failed with a reason, as for any per-line job. - Nothing could be voiced: the job fails with an
errorthat begins withNo audio could be generated overnight. Nothing is charged. - Still not delivered 30 hours after
submittedAt: the job ends. Whatever audio arrived is delivered as a partial result; if none did, the job fails withThe overnight audio did not arrive within 30 hours — please send the job again.
A failed overnight job can be sent again as a new job, overnight or standard.
Errors#
Request errors return a JSON body with an error message: { "error": "content is required" }. These are the status codes of POST /api/tts/create and GET /api/tts/jobs/:jobId. The other endpoints use the same codes where they apply.
| Status | Condition |
|---|---|
400 | Create only. The body is not valid JSON (Invalid JSON body), content is required, voice is not a string, a malformed lib: or clone: id, a cloned voice that is not ready, an invalid output / lines (the message names the item), or an invalid delivery or a voice that overnight delivery does not support, a style that is not a string, a dryRun that is not true or false, an unknown format (the message lists the accepted values) or a format other than mp3 for a job that is not short text, or an empty Idempotency-Key. content is required also covers text that is only markup, and a line with only footnote markers has no text. |
401 | Missing, malformed, unknown, inactive or expired API key. For example Missing Authorization header or Invalid API key. |
402 | Create only. Not enough credits for the estimate plus the credits your other accepted jobs have not been charged yet. The body has creditsNeeded (both together) and currentBalance, plus reservedCredits when there are any and a message when they are the reason. |
403 | API key lacks write permission (create) or API key lacks read permission (status, list, voices, account, usage), or the cloned voice belongs to another workspace. |
404 | Create: unknown library voice or unknown cloned voice. Status: Job not found, which includes jobs of other workspaces. |
409 | Create only. The Idempotency-Key was already used with a different request, or its first request is still being processed. See Safe retries. |
413 | Create only. The text is longer than one request takes. The body has maxBytes and contentBytes. |
500 | An unexpected server error. Retry later. The body may not be JSON. |
Example 402 body: { "error": "Insufficient credits", "creditsNeeded": 78, "currentBalance": 12 }. Errors after the job started are not HTTP errors. They show up as status: "failed" with a reason (see Why a job fails). A failed short job is not charged.
Credits & Billing#
Credits are checked before a job starts. If the balance is too low for the estimate plus reservedCredits, the request returns 402.
Credit Rate#
| Voice Type | Rate |
|---|---|
| Chirp3-HD (Natural) | 1.2 credits per character through Dec 31, 2026 · 2.0 from Jan 1, 2027 |
Library and cloned voices use the same rate. Chinese, Japanese and Korean characters count ×3, ×2.7 and ×2.1. Cost is ceil(characters × rate), estimated upfront from the character count of content (HTML tags not counted) and returned as estimatedCredits when the job is created. The final charge is in result.credits.total once the job completes.
- You are charged only for audio that was produced. A short job that fails is not charged.
- In a per-line job, lines that could not be voiced are not charged.
- Waiting in the queue costs nothing.
- If your balance runs out while a job is queued, the job fails when it would start.
- If your balance runs out while a long job is running, you get the parts voiced so far and
result.partssays how many are missing. If no part was voiced, the job fails and nothing is charged.
Queue#
Jobs run on a shared processing queue with a fixed number of slots. When all slots are in use, new jobs are queued. When a slot opens, workspaces take turns: the next job comes from the workspace with the fewest jobs running, and within a workspace the oldest job goes first. A workspace with many jobs queued never holds up another workspace's job for long, and when nobody else is waiting it can use every slot.
- Queued jobs are started automatically when a slot opens.
- Use
queuePositionto estimate wait time. It counts the queued jobs ahead of yours in turn order. - A job that makes no progress for 24 hours is marked failed (
Job timed out (exceeded 24 hour limit)). - Many short items? Send them as one job with one file per line instead of one job each.
Storage#
- A short job (up to 5,000 characters) creates only the audio file. It does not create a document in your workspace.
- A longer job also creates a document with your title in the project the API key belongs to.
- On a paid workspace, files are kept while the subscription is active, and for 30 days after it is canceled.
- On a workspace without a subscription, generated audio can be removed 30 days after it was made.
- Download links expire after one hour, but you can request a new one from the status endpoint while the file exists. Save the files you need.
Webhooks#
Polling is the default and always works. If you would rather be told when a job is done, add webhookUrl when you create it. When the job reaches completed or failed, we send one POST to that URL with the job's result. This suits long texts and per-line jobs, which can take minutes. For short text that finishes in seconds, polling is just as simple.
Request#
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Chapter 1",
"content": "It was a bright cold day in April...",
"voice": "en-US-Chirp3-HD-Leda",
"webhookUrl": "https://example.com/hooks/notevibes"
}'The create response is unchanged. Works for every kind of job: short text, long text and one file per line. A queued job keeps its webhook until it runs and finishes.
Payload#
The body is exactly what GET /api/tts/jobs/:jobId returns for the finished job, with fresh one-hour download links, plus two fields: event (job.completed or job.failed) and deliveredAt (when we sent it, ISO 8601).
{
"event": "job.completed",
"deliveredAt": "2026-11-12T10:00:03.000Z",
"jobId": "abc123def456",
"status": "completed",
"step": "completed",
"title": "Chapter 1",
"progress": { "currentChapter": 4, "totalChapters": 4 },
"estimatedCredits": 21600,
"result": {
"audioUrl": "https://storage.googleapis.com/notevibes.com/...?X-Goog-Signature=...",
"audioUrlExpiresIn": 3600,
"duration": 1093.2,
"credits": { "total": 21540, "remaining": 78460, "breakdown": [] }
}
}{
"event": "job.failed",
"deliveredAt": "2026-11-12T10:00:03.000Z",
"jobId": "abc123def456",
"status": "failed",
"step": "generating_audio",
"title": "Chapter 1",
"progress": { "currentChapter": 0, "totalChapters": 1 },
"estimatedCredits": 78,
"error": "Speech generation failed — try again."
}A per-line job carries zipUrl, zipUrlExpiresIn and lines in result, exactly as in its status response. If a link has expired by the time you use it, get a fresh one from the status endpoint.
Headers#
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | Starts with Notevibes-Webhooks/ |
X-Notevibes-Event | job.completed, job.failed or balance.low |
X-Notevibes-Job-Id | The job id. Not sent with balance.low, which belongs to no job. |
X-Notevibes-Timestamp | When this attempt was sent, in Unix seconds. |
X-Notevibes-Signature | sha256= followed by a hex HMAC. See below. |
Verifying the signature#
There is no separate webhook secret. The signing key is the SHA-256 of the API key that created the job, written as lowercase hex (64 characters), used as text. The signature is HMAC-SHA256 with that key over <X-Notevibes-Timestamp>.<raw request body>.
- Read the raw body as bytes, before any JSON parsing.
- Reject the request if the timestamp is more than 5 minutes away from your clock.
- Compute
"sha256=" + hex(HMAC_SHA256(key, timestamp + "." + body)). - Compare it with
X-Notevibes-Signaturein constant time.
import crypto from 'node:crypto'
import http from 'node:http'
// The key that created the jobs. Only its SHA-256 is needed here.
const KEY_HASH = crypto.createHash('sha256').update(process.env.NOTEVIBES_API_KEY).digest('hex')
function verify(rawBody, headers) {
const ts = headers['x-notevibes-timestamp'] || ''
const sig = headers['x-notevibes-signature'] || ''
if (!/^\d+$/.test(ts) || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false
const expected = 'sha256=' + crypto
.createHmac('sha256', KEY_HASH)
.update(Buffer.concat([Buffer.from(ts + '.'), rawBody]))
.digest('hex')
const a = Buffer.from(sig)
const b = Buffer.from(expected)
return a.length === b.length && crypto.timingSafeEqual(a, b)
}
http.createServer((req, res) => {
const chunks = []
req.on('data', (c) => chunks.push(c))
req.on('end', () => {
const raw = Buffer.concat(chunks)
if (!verify(raw, req.headers)) return res.writeHead(401).end()
res.writeHead(200).end() // answer first, then do the work
const job = JSON.parse(raw)
console.log(job.event, job.jobId, job.result?.audioUrl ?? job.result?.zipUrl ?? job.error)
})
}).listen(3000)Jobs are signed with the key that created them. If you rotate keys, keep verifying with the old key until its jobs have finished.
Delivery and retries#
- Any
2xxresponse means you received it. Answer quickly and do slow work afterwards. - Each attempt waits at most 10 seconds for your response.
- Up to 3 attempts: right away, about 5 seconds later, and about 30 seconds after that. Then we stop.
- Redirects are not followed. A
3xxresponse counts as a failed attempt, so give the final URL. - Each attempt has its own
X-Notevibes-Timestampand signature. The body is the same. - Very rarely the same notification can arrive twice. Use
jobIdto ignore a repeat. - These retries apply to job events and to
balance.low. A test event is sent once.
URL rules#
webhookUrl must be an absolute https:// URL of at most 2,000 characters, without a user name or password, on a public host. Addresses such as localhost, .local and .internal names, and private, loopback or link-local IP addresses (IPv4 or IPv6) are refused. A URL that breaks a rule returns 400 with the reason, for example webhookUrl must use https://. The host is checked again when we send: if it then resolves to a non-public address, it is not contacted and the attempt fails.
Webhook state in the status response#
A job created with a webhook also shows its delivery state when you poll it, and in the job list:
"webhook": { "url": "https://example.com/hooks/notevibes", "status": "delivered", "attempts": 1 }| Status | Meaning |
|---|---|
pending | The job is not finished yet, or delivery is in progress. |
delivered | Your endpoint answered with a 2xx. |
failed | All attempts failed. attempts says how many were made. The job itself is unaffected. |
Treat the webhook as a notification. Your endpoint can be down, so keep the ability to poll GET /api/tts/jobs/:jobId, for example for jobs you have not heard about after a while.
Account webhook#
Besides the per-job webhookUrl, a workspace can have one account webhook: a single URL that receives account events. Today that event is balance.low. It uses the same headers, signature and URL rules as above. You can also set it on the Developer page.
| Request | What it does | Key permission |
|---|---|---|
GET /api/account/webhook | Reads the saved webhook. | read |
PUT /api/account/webhook | Saves it, replacing any earlier one. | write |
DELETE /api/account/webhook | Removes it. | write |
curl -X PUT https://notevibes.com/api/account/webhook \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/hooks/notevibes-account",
"lowBalanceThreshold": 5000
}'| Parameter | Type | Description |
|---|---|---|
urlRequired | string | A public https:// URL, under the same rules as webhookUrl. An invalid URL returns 400 with the reason. |
lowBalanceThreshold | number | Credits. A balance.low event is sent when a charge takes your balance below this number. 0 or more. Leave it out, or send null, for no balance alert. |
Every answer has a webhook field: the saved setting, or null when none is saved. Deleting also returns deleted, which says whether there was one to remove.
{
"webhook": {
"url": "https://example.com/hooks/notevibes-account",
"lowBalanceThreshold": 5000,
"updatedAt": "2026-11-18T09:30:00.000Z",
"signedWith": { "name": "Production", "keyPrefix": "nvb_a1b2", "active": true }
}
}The events are signed with the key that saved the webhook (signedWith), exactly as a job's events are signed with the key that created the job. Verify them the same way. Saving does not send an event. If that key is later deleted, deactivated or expired, account events stop being sent until you save the webhook again with a working key. Errors: 400 for a body that is not JSON, a missing or invalid url, or an invalid lowBalanceThreshold; 401; 403 for a key without the permission.
The balance.low event#
Sent once when a charge takes your balance from at or above lowBalanceThreshold to below it. The next charge starts below the threshold and does not send it again; the event can fire again only after credits bring the balance back up to the threshold or more. It needs a threshold to be saved. A charge is any charge to the workspace's credits, not only API jobs.
{
"event": "balance.low",
"deliveredAt": "2026-11-18T09:41:12.000Z",
"credits": 4890,
"lowBalanceThreshold": 5000
}creditsis the balance after the charge that crossed the threshold.- There is no
X-Notevibes-Job-Idheader.X-Notevibes-Eventisbalance.low. - Delivery is best effort: up to 3 attempts, as in Delivery and retries. Nothing is stored, so a failed delivery is not tried again later. Use
GET /api/accountto check the balance.
Send a test event#
POST /api/account/webhook/test sends one sample event so you can check your endpoint and your signature code. It needs write permission, charges nothing and saves nothing. The body is optional.
| Parameter | Type | Description |
|---|---|---|
event | string | "job.completed" (default), "job.failed" or "balance.low". Anything else returns 400. |
url | string | Where to send it. Leave it out to use the saved account webhook. With neither, the request returns 400. |
curl -X POST https://notevibes.com/api/account/webhook/test \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "event": "balance.low" }'- One attempt only, no retries. It is signed with the key you call with.
- The body is the real shape of that event with sample data, plus
"test": trueat the top level. A job event also carries anX-Notevibes-Job-Idheader with a made-up job id.
{
"delivered": true,
"status": 200,
"durationMs": 184,
"event": "balance.low",
"url": "https://example.com/hooks/notevibes-account"
}The answer is 200 even when your endpoint could not be reached or did not answer with a 2xx: the test ran. Read delivered (false then). status is your endpoint's HTTP status, when it answered, durationMs is how long the attempt took, and error says what went wrong when delivery failed.
Three kinds of voice id#
The voice field takes one of three forms:
- Catalog voice —
{locale}-Chirp3-HD-{VoiceName} - Library voice —
lib:<id> - Cloned voice —
clone:<voiceId>
Catalog voices#
A locale, then -Chirp3-HD-, then a voice name. The same voice names work in every language — keep the name and swap the locale prefix:
en-US-Chirp3-HD-Achernar → English (US), voice "Achernar"
es-ES-Chirp3-HD-Achernar → Spanish, same "Achernar" voice
de-DE-Chirp3-HD-Charon → German, voice "Charon"Pick a name from Catalog voice names and a locale from Catalog languages below.
Library voices#
More than 2,000 ready-made voices, each with a fixed language and accent. Ids look like lib:en-us-storyteller-1. See Library voices for how to find and use them.
Cloned voices#
Voices you cloned in the Studio. Pass clone:<voiceId>, or the full id the list endpoint returns (clone:<workspaceId>:<voiceId>). A cloned voice only works with API keys from your own workspace.
Library voices#
The library has more than 2,000 ready-made voices across about 30 locales. Each one is a distinct speaker with a fixed language and accent and its own character. Catalog voices are different: the catalog is 30 voice names, and each name is available in every catalog language.
Voice id#
The id is lib: followed by the voice's id, for example lib:en-us-storyteller-1. Use the id exactly as the list endpoint returns it.
Finding a voice#
GET /api/tts/voices returns the library in the library array. The server can filter by locale (exact), language, gender, age, pitch, energy, tempo, bestFor and accent. Separate several values of one filter with commas to match any of them. For a description in your own words, send q: it runs the same search the Studio uses and returns the best matches first, up to limit (default 5). It searches the locale you send, else the first locale of language, else en-US; the other filters still apply to the matches. An entry found with q can carry a catalog-style id ({locale}-Chirp3-HD-{Name}) instead of lib:; send it as voice exactly as returned. The key needs read permission, otherwise the request returns 403 with API key lacks read permission.
curl "https://notevibes.com/api/tts/voices?locale=en-US&energy=calm&bestFor=audiobook%20narration" \
-H "Authorization: Bearer nvb_your_api_key"A free-text search:
curl "https://notevibes.com/api/tts/voices?q=warm%20bedtime%20storyteller&limit=3" \
-H "Authorization: Bearer nvb_your_api_key"This Node.js example asks the server for calm en-US voices that suit audiobook narration:
const params = new URLSearchParams({
locale: 'en-US',
energy: 'calm',
bestFor: 'audiobook narration',
})
const res = await fetch(`https://notevibes.com/api/tts/voices?${params}`, {
headers: { Authorization: 'Bearer nvb_your_api_key' },
})
const { library } = await res.json()
for (const v of library) console.log(v.id, v.name, v.sampleUrl)The response is safe to cache. The list changes rarely, and the API sends Cache-Control: private, max-age=300.
Fields of a library entry#
| Field | Type | Description |
|---|---|---|
id | string | The value to send as voice. |
name | string | The speaker’s display name, for example "Abigail". |
locale | string | Language and region, for example "en-US", "pt-BR" or "ja-JP". |
gender | string | Values include "female" and "male". |
age | string | Values include "young adult", "adult", "middle-aged" and "senior". |
pitch | string | "low", "medium" or "high". |
energy | string | "calm", "balanced" or "energetic". |
wpm | number | Words per minute. Present only on voices whose pace has been measured. The measured range today is 158 to 236. |
tempo | string | "slow", "medium" or "fast". Present together with wpm. |
accent | string | For example "General American", "Indian English" or "Brazilian Portuguese". |
description | string | One sentence on how the voice sounds. |
bestFor | string[] | Suggested uses. Values include conversational, audiobook narration, advertising, education, corporate, podcast host, documentary, non-fiction, kids stories, fiction characters, meditation and news. |
sampleUrl | string | A public MP3 sample. You can play or download it without an API key. |
One entry:
{
"id": "lib:en-us-storyteller-1",
"name": "Abigail",
"locale": "en-US",
"gender": "female",
"age": "young adult",
"pitch": "high",
"energy": "energetic",
"wpm": 186,
"tempo": "medium",
"accent": "General American",
"description": "Higher-pitched, expressive reading style with animated emphasis and bright theatrical coloring.",
"bestFor": ["kids stories", "audiobook narration", "education"],
"sampleUrl": "https://storage.googleapis.com/notevibes-public/public/voices/library/v1/samples/en-us-storyteller-1.mp3"
}Using a library voice#
Send the id as voice. Library voices work for single-file jobs of any length and for "output": "lines" jobs. A library voice speaks its own locale, so send text in that language.
curl -X POST https://notevibes.com/api/tts/create \
-H "Authorization: Bearer nvb_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Episode intro",
"content": "Welcome back to the show. Today we dive into AI voice technology.",
"voice": "lib:en-us-storyteller-1"
}'Credits#
Library voices cost the same as catalog voices. See the Credit Rate.
Errors#
- An id that does not exist returns
404withUnknown library voice: lib:<id>. GET /api/tts/voices lists the available ones. - A malformed
lib:id returns400withInvalid library voice id.
See Errors for all status codes.
Catalog voice names#
30 names — identical across every language.
Female#
Achernar
Aoede
Autonoe
Callirrhoe
Despina
Erinome
Gacrux
Kore
Laomedeia
Leda
Pulcherrima
Sulafat
Vindemiatrix
ZephyrMale#
Achird
Algenib
Algieba
Alnilam
Charon
Enceladus
Fenrir
Iapetus
Orus
Puck
Rasalgethi
Sadachbia
Sadaltager
Schedar
Umbriel
ZubenelgenubiCatalog languages#
Prefix any voice name above with one of these 146 locales. Library voices carry their own locale in the list endpoint.
af-ZAAfrikaansak-GHAkan (Twi)am-ETAmharicar-EGArabic (Egypt)as-INAssameseaz-AZAzerbaijaniban-IDBalinesebe-BYBelarusianbg-BGBulgarianbho-INBhojpuribjn-Arab-IDBanjar (Arabic script)bjn-Latn-IDBanjar (Latin script)bn-BDBangla (BD)bs-BABosnianbug-IDBugineseca-ESCatalanceb-PHCebuanockb-IQCentral Kurdish (Sorani)cmn-CNMandarincmn-TWMandarincrh-UACrimean Tatarcs-CZCzechcy-GBWelshda-DKDanishde-DEDeutschdyu-CIDyuladz-BTDzongkhael-GRGreeken-AUEnglish(AU)en-CAEnglish (Canada)en-GBen-IEEnglish (Ireland)en-INEnglish(IN)en-NZEnglish (New Zealand)en-USEnglish(US)en-ZAEnglish (South Africa)eo-001Esperantoes-419Spanish (LatAm)es-ESSpanish(ES)es-MXSpanish (Mexico)et-EEEstonianeu-ESBasquefa-IRPersianfi-FIFinnishfr-CAFrench(CA)fr-FRFrench(FR)fuv-NGFulfulde (Nigeria)gd-GBScottish Gaelicgl-ESGaliciangn-PYGuaranigu-INGujaratiha-NGHausahe-ILHebrewhi-INHindihne-INChhattisgarhihr-HRCroatianht-HTHaitian Creolehu-HUHungarianhy-AMArmenianid-IDIndonesianig-NGIgboilo-PHIlocanois-ISIcelandicit-ITItalianja-JPJapanesejv-JVJavaneseka-GEGeorgiankab-DZKabylekam-KEKambakg-CDKongoki-KEKikuyukk-KZKazakhkm-KHKhmerkn-INKannadako-KRKoreankok-INKonkaniks-Arab-INKashmiri (Arabic script)ks-Deva-INKashmiri (Devanagari)ky-KGKyrgyzla-VALatinlb-LULuxembourgishlg-UGLugandaln-CDLingalalo-LALaolt-LTLithuanianltg-LVLatgalianlus-INMizolv-LVLatvianmag-INMagahimai-INMaithilimg-MGMalagasymin-IDMinangkabaumk-MKMacedonianml-INMalayalammn-MNMongolianmr-INMarathimt-MTMaltesemy-MMBurmesenb-NONorwegianne-NPNepalinl-NLDutchnn-NONorwegian Nynorsknso-ZANorthern Sotho (Sepedi)ny-MWChichewaoc-FROccitanom-ETOromoor-INOdiapa-INPunjabipag-PHPangasinanpbt-AFSouthern Pashtopl-PLPolishps-AFPashtopt-BRPortuguese (BR)pt-PTPortuguesero-RORomanianru-RURussianrw-RWKinyarwandasat-INSantalisd-INSindhisi-LKSinhalask-SKSlovaksl-SISloveniansn-ZWShonaso-SOSomalisq-ALAlbaniansr-RSSerbianss-ZASwatist-ZASesothosu-IDSundanesesv-SESwedishsw-KESwahilita-INTamilte-INTelugutg-TJTajikth-THThaiti-ETTigrinyatn-ZASetswanatr-TRTurkishtt-RUTatarug-CNUyghuruk-UAUkrainianuz-UZUzbekvi-VNVietnamesewo-SNWolofxh-ZAXhosazu-ZAZulu