client.history.getAll({ ...params }) -> ElevenLabs.GetSpeechHistoryResponse
-
-
-
Returns a list of your generated audio.
-
-
-
await client.history.getAll();
-
-
-
request:
ElevenLabs.HistoryGetAllRequest
-
requestOptions:
History.RequestOptions
-
-
client.history.get(historyItemId) -> ElevenLabs.SpeechHistoryItemResponse
-
-
-
Retrieves a history item.
-
-
-
await client.history.get("HISTORY_ITEM_ID");
-
-
-
historyItemId:
string
— History item ID to be used, you can use GET https://api.elevenlabs.io/v1/history to receive a list of history items and their IDs.
-
requestOptions:
History.RequestOptions
-
-
client.history.delete(historyItemId) -> ElevenLabs.DeleteHistoryItemResponse
-
-
-
Delete a history item by its ID
-
-
-
await client.history.delete("HISTORY_ITEM_ID");
-
-
-
historyItemId:
string
— History item ID to be used, you can use GET https://api.elevenlabs.io/v1/history to receive a list of history items and their IDs.
-
requestOptions:
History.RequestOptions
-
-
client.history.getAudio(historyItemId) -> stream.Readable
-
-
-
Returns the audio of an history item.
-
-
-
await client.history.getAudio("HISTORY_ITEM_ID");
-
-
-
historyItemId:
string
— History item ID to be used, you can use GET https://api.elevenlabs.io/v1/history to receive a list of history items and their IDs.
-
requestOptions:
History.RequestOptions
-
-
client.history.download({ ...params }) -> stream.Readable
-
-
-
Download one or more history items. If one history item ID is provided, we will return a single audio file. If more than one history item IDs are provided, we will provide the history items packed into a .zip file.
-
-
-
await client.history.download({ history_item_ids: ["HISTORY_ITEM_ID"], });
-
-
-
request:
ElevenLabs.DownloadHistoryRequest
-
requestOptions:
History.RequestOptions
-
-
client.textToSoundEffects.convert({ ...params }) -> stream.Readable
-
-
-
Turn text into sound effects for your videos, voice-overs or video games using the most advanced sound effects model in the world.
-
-
-
await client.textToSoundEffects.convert({ text: "Spacious braam suitable for high-impact movie trailer moments", });
-
-
-
request:
ElevenLabs.BodySoundGenerationV1SoundGenerationPost
-
requestOptions:
TextToSoundEffects.RequestOptions
-
-
client.samples.delete(voiceId, sampleId) -> ElevenLabs.DeleteSampleResponseModel
-
-
-
Removes a sample by its ID.
-
-
-
await client.samples.delete("VOICE_ID", "SAMPLE_ID");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
sampleId:
string
— Sample ID to be used, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id} to list all the available samples for a voice.
-
requestOptions:
Samples.RequestOptions
-
-
client.samples.getAudio(voiceId, sampleId) -> stream.Readable
-
-
-
Returns the audio corresponding to a sample attached to a voice.
-
-
-
await client.samples.getAudio("VOICE_ID", "SAMPLE_ID");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
sampleId:
string
— Sample ID to be used, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id} to list all the available samples for a voice.
-
requestOptions:
Samples.RequestOptions
-
-
client.textToSpeech.convert(voiceId, { ...params }) -> stream.Readable
-
-
-
Converts text into speech using a voice of your choice and returns audio.
-
-
-
await client.textToSpeech.convert("JBFqnCBsd6RMkjVDRZzb", { output_format: "mp3_44100_128", text: "The first move is what sets everything in motion.", model_id: "eleven_multilingual_v2", });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.TextToSpeechRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.textToSpeech.convertWithTimestamps(voiceId, { ...params }) -> ElevenLabs.AudioWithTimestampsResponseModel
-
-
-
Generate speech from text with precise character-level timing information for audio-text synchronization.
-
-
-
await client.textToSpeech.convertWithTimestamps("21m00Tcm4TlvDq8ikWAM", { text: "This is a test for the API of ElevenLabs.", });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.TextToSpeechWithTimestampsRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.textToSpeech.convertAsStream(voiceId, { ...params }) -> stream.Readable
-
-
-
Converts text into speech using a voice of your choice and returns audio as an audio stream.
-
-
-
await client.textToSpeech.convertAsStream("JBFqnCBsd6RMkjVDRZzb", { output_format: "mp3_44100_128", text: "The first move is what sets everything in motion.", model_id: "eleven_multilingual_v2", });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.StreamTextToSpeechRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.textToSpeech.streamWithTimestamps(voiceId, { ...params }) -> core.Stream
-
-
-
Converts text into speech using a voice of your choice and returns a stream of JSONs containing audio as a base64 encoded string together with information on when which character was spoken.
-
-
-
const response = await client.textToSpeech.streamWithTimestamps("JBFqnCBsd6RMkjVDRZzb", { output_format: "mp3_44100_128", text: "The first move is what sets everything in motion.", model_id: "eleven_multilingual_v2", }); for await (const item of response) { console.log(item); }
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.StreamTextToSpeechWithTimstampsRequest
-
requestOptions:
TextToSpeech.RequestOptions
-
-
client.speechToSpeech.convert(voiceId, { ...params }) -> stream.Readable
-
-
-
Transform audio from one voice to another. Maintain full control over emotion, timing and delivery.
-
-
-
await client.speechToSpeech.convert("JBFqnCBsd6RMkjVDRZzb", { audio: fs.createReadStream("/path/to/your/file"), output_format: "mp3_44100_128", model_id: "eleven_multilingual_sts_v2", });
-
-
-
voiceId:
string
-
request:
ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost
-
requestOptions:
SpeechToSpeech.RequestOptions
-
-
client.speechToSpeech.convertAsStream(voiceId, { ...params }) -> stream.Readable
-
-
-
Stream audio from one voice to another. Maintain full control over emotion, timing and delivery.
-
-
-
await client.speechToSpeech.convertAsStream("JBFqnCBsd6RMkjVDRZzb", { audio: fs.createReadStream("/path/to/your/file"), output_format: "mp3_44100_128", model_id: "eleven_multilingual_sts_v2", });
-
-
-
voiceId:
string
-
request:
ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost
-
requestOptions:
SpeechToSpeech.RequestOptions
-
-
client.voiceGeneration.generateParameters() -> ElevenLabs.VoiceGenerationParameterResponse
-
-
-
Get possible parameters for the /v1/voice-generation/generate-voice endpoint.
-
-
-
await client.voiceGeneration.generateParameters();
-
-
-
requestOptions:
VoiceGeneration.RequestOptions
-
-
client.voiceGeneration.generate({ ...params }) -> stream.Readable
-
-
-
Generate a random voice based on parameters. This method returns a generated_voice_id in the response header, and a sample of the voice in the body. If you like the generated voice call /v1/voice-generation/create-voice with the generated_voice_id to create the voice.
-
-
-
await client.voiceGeneration.generate({ gender: "female", accent: "american", age: "middle_aged", accent_strength: 2, text: "It sure does, Jackie\u2026 My mama always said: \u201CIn Carolina, the air's so thick you can wear it!\u201D", });
-
-
-
request:
ElevenLabs.GenerateVoiceRequest
-
requestOptions:
VoiceGeneration.RequestOptions
-
-
client.voiceGeneration.createAPreviouslyGeneratedVoice({ ...params }) -> ElevenLabs.Voice
-
-
-
Create a previously generated voice. This endpoint should be called after you fetched a generated_voice_id using /v1/voice-generation/generate-voice.
-
-
-
await client.voiceGeneration.createAPreviouslyGeneratedVoice({ voice_name: "Alex", voice_description: "Middle-aged American woman", generated_voice_id: "rbVJFu6SGRD1dbWpKnWl", });
-
-
-
request:
ElevenLabs.CreatePreviouslyGenertedVoiceRequest
-
requestOptions:
VoiceGeneration.RequestOptions
-
-
client.textToVoice.createPreviews({ ...params }) -> ElevenLabs.VoicePreviewsResponseModel
-
-
-
Generate a custom voice based on voice description. This method returns a list of voice previews. Each preview has a generated_voice_id and a sample of the voice as base64 encoded mp3 audio. If you like the a voice previewand want to create the voice call /v1/text-to-voice/create-voice-from-preview with the generated_voice_id to create the voice.
-
-
-
await client.textToVoice.createPreviews({ voice_description: "A sassy squeaky mouse", });
-
-
-
request:
ElevenLabs.VoicePreviewsRequestModel
-
requestOptions:
TextToVoice.RequestOptions
-
-
client.textToVoice.createVoiceFromPreview({ ...params }) -> ElevenLabs.Voice
-
-
-
Create a voice from previously generated voice preview. This endpoint should be called after you fetched a generated_voice_id using POST /v1/text-to-voice/create-previews.
-
-
-
await client.textToVoice.createVoiceFromPreview({ voice_name: "Sassy squeaky mouse", voice_description: "A sassy squeaky mouse", generated_voice_id: "37HceQefKmEi3bGovXjL", });
-
-
-
request:
ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost
-
requestOptions:
TextToVoice.RequestOptions
-
-
client.user.getSubscription() -> ElevenLabs.Subscription
-
-
-
Gets extended information about the users subscription
-
-
-
await client.user.getSubscription();
-
-
-
requestOptions:
User.RequestOptions
-
-
client.user.get() -> ElevenLabs.User
-
-
-
Gets information about the user
-
-
-
await client.user.get();
-
-
-
requestOptions:
User.RequestOptions
-
-
client.voices.getAll({ ...params }) -> ElevenLabs.GetVoicesResponse
-
-
-
Returns a list of all available voices for a user.
-
-
-
await client.voices.getAll();
-
-
-
request:
ElevenLabs.VoicesGetAllRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.search({ ...params }) -> ElevenLabs.GetVoicesV2ResponseModel
-
-
-
Gets a list of all available voices for a user with search, filtering and pagination.
-
-
-
await client.voices.search({ include_total_count: true, });
-
-
-
request:
ElevenLabs.VoicesSearchRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getDefaultSettings() -> ElevenLabs.VoiceSettings
-
-
-
Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
-
-
-
await client.voices.getDefaultSettings();
-
-
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getSettings(voiceId) -> ElevenLabs.VoiceSettings
-
-
-
Returns the settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
-
-
-
await client.voices.getSettings("JBFqnCBsd6RMkjVDRZzb");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.get(voiceId, { ...params }) -> ElevenLabs.Voice
-
-
-
Returns metadata about a specific voice.
-
-
-
await client.voices.get("JBFqnCBsd6RMkjVDRZzb");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.VoicesGetRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.delete(voiceId) -> ElevenLabs.DeleteVoiceResponseModel
-
-
-
Deletes a voice by its ID.
-
-
-
await client.voices.delete("VOICE_ID");
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.editSettings(voiceId, { ...params }) -> ElevenLabs.EditVoiceSettingsResponseModel
-
-
-
Edit your settings for a specific voice. "similarity_boost" corresponds to "Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
-
-
-
await client.voices.editSettings("VOICE_ID", { stability: 0.1, similarity_boost: 0.3, style: 0.2, });
-
-
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.VoiceSettings
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.add({ ...params }) -> ElevenLabs.AddVoiceIvcResponseModel
-
-
-
Add a new voice to your collection of voices in VoiceLab.
-
-
-
await client.voices.add({ files: [fs.createReadStream("/path/to/your/file")], name: "Alex", });
-
-
-
request:
ElevenLabs.BodyAddVoiceV1VoicesAddPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.edit(voiceId, { ...params }) -> ElevenLabs.EditVoiceResponseModel
-
-
-
Edit a voice created by you.
-
-
-
await client.voices.edit("VOICE_ID", { name: "George", });
-
-
-
voiceId:
string
-
request:
ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.addSharingVoice(publicUserId, voiceId, { ...params }) -> ElevenLabs.AddVoiceResponseModel
-
-
-
Add a shared voice to your collection of voices.
-
-
-
await client.voices.addSharingVoice( "63e84100a6bf7874ba37a1bab9a31828a379ec94b891b401653b655c5110880f", "sB1b5zUrxQVAFl2PhZFp", { new_name: "Alita", }, );
-
-
-
publicUserId:
string
— Public user ID used to publicly identify ElevenLabs users.
-
voiceId:
string
— Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
-
request:
ElevenLabs.BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getShared({ ...params }) -> ElevenLabs.GetLibraryVoicesResponse
-
-
-
Retrieves a list of shared voices.
-
-
-
await client.voices.getShared({ page_size: 1, gender: "female", language: "en", });
-
-
-
request:
ElevenLabs.VoicesGetSharedRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getSimilarLibraryVoices({ ...params }) -> ElevenLabs.GetLibraryVoicesResponse
-
-
-
Returns a list of shared voices similar to the provided audio sample. If neither similarity_threshold nor top_k is provided, we will apply default values.
-
-
-
await client.voices.getSimilarLibraryVoices({});
-
-
-
request:
ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.getAProfilePage(handle) -> ElevenLabs.ProfilePageResponseModel
-
-
-
Gets a profile page based on a handle
-
-
-
await client.voices.getAProfilePage("talexgeorge");
-
-
-
handle:
string
— Handle for a VA's profile page
-
requestOptions:
Voices.RequestOptions
-
-
client.studio.createPodcast({ ...params }) -> ElevenLabs.PodcastProjectResponseModel
-
-
-
Create and auto-convert a podcast project. Currently, the LLM cost is covered by us but you will still be charged for the audio generation. In the future, you will be charged for both the LLM and audio generation costs.
-
-
-
await client.studio.createPodcast({ model_id: "21m00Tcm4TlvDq8ikWAM", mode: { type: "conversation", conversation: { host_voice_id: "aw1NgEzBg83R7vgmiJt6", guest_voice_id: "aw1NgEzBg83R7vgmiJt7", }, }, source: { text: "This is a test podcast.", }, });
-
-
-
request:
ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost
-
requestOptions:
Studio.RequestOptions
-
-
client.projects.createPodcast({ ...params }) -> ElevenLabs.PodcastProjectResponseModel
-
-
-
Create and auto-convert a podcast project. Currently, the LLM cost is covered by us but you will still be charged for the audio generation. In the future, you will be charged for both the LLM and audio generation costs.
-
-
-
await client.projects.createPodcast({ model_id: "21m00Tcm4TlvDq8ikWAM", mode: { type: "conversation", conversation: { host_voice_id: "aw1NgEzBg83R7vgmiJt6", guest_voice_id: "aw1NgEzBg83R7vgmiJt7", }, }, source: { text: "This is a test podcast.", }, });
-
-
-
request:
ElevenLabs.BodyCreatePodcastV1ProjectsPodcastCreatePost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.getProjects() -> ElevenLabs.GetProjectsResponse
-
-
-
Returns a list of your projects together and its metadata.
-
-
-
await client.projects.getProjects();
-
-
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.addProject({ ...params }) -> ElevenLabs.AddProjectResponseModel
-
-
-
Creates a new project, it can be either initialized as blank, from a document or from a URL.
-
-
-
await client.projects.addProject({ name: "name", default_title_voice_id: "default_title_voice_id", default_paragraph_voice_id: "default_paragraph_voice_id", default_model_id: "default_model_id", });
-
-
-
request:
ElevenLabs.BodyAddProjectV1ProjectsAddPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.getProjectById(projectId) -> ElevenLabs.ProjectExtendedResponseModel
-
-
-
Returns information about a specific project. This endpoint returns more detailed information about a project than
GET /v1/projects
.
-
-
-
await client.projects.getProjectById("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.editBasicProjectInfo(projectId, { ...params }) -> ElevenLabs.EditProjectResponseModel
-
-
-
Edits basic project info.
-
-
-
await client.projects.editBasicProjectInfo("21m00Tcm4TlvDq8ikWAM", { name: "Project 1", default_title_voice_id: "21m00Tcm4TlvDq8ikWAM", default_paragraph_voice_id: "21m00Tcm4TlvDq8ikWAM", });
-
-
-
projectId:
string
— The ID of the Studio project.
-
request:
ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.deleteProject(projectId) -> unknown
-
-
-
Deletes a project.
-
-
-
await client.projects.deleteProject("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.editProjectContent(projectId, { ...params }) -> ElevenLabs.EditProjectResponseModel
-
-
-
Edits project content.
-
-
-
await client.projects.editProjectContent("21m00Tcm4TlvDq8ikWAM", {});
-
-
-
projectId:
string
-
request:
ElevenLabs.BodyEditProjectContentV1ProjectsProjectIdContentPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.convertProject(projectId) -> unknown
-
-
-
Starts conversion of a project and all of its chapters.
-
-
-
await client.projects.convertProject("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.getProjectSnapshots(projectId) -> ElevenLabs.ProjectSnapshotsResponse
-
-
-
Gets the snapshots of a project.
-
-
-
await client.projects.getProjectSnapshots("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.streamsArchiveWithProjectAudio(projectId, projectSnapshotId) -> void
-
-
-
Streams archive with project audio.
-
-
-
await client.projects.streamsArchiveWithProjectAudio("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
projectSnapshotId:
string
— The ID of the Studio project snapshot.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.getChapters(projectId) -> ElevenLabs.GetChaptersResponse
-
-
-
Returns a list of your chapters for a project together and its metadata.
-
-
-
await client.projects.getChapters("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.getChapterById(projectId, chapterId) -> ElevenLabs.ChapterWithContentResponseModel
-
-
-
Returns information about a specific chapter.
-
-
-
await client.projects.getChapterById("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.deleteChapter(projectId, chapterId) -> unknown
-
-
-
Deletes a chapter.
-
-
-
await client.projects.deleteChapter("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.editChapter(projectId, chapterId, { ...params }) -> ElevenLabs.EditChapterResponseModel
-
-
-
Edits a chapter.
-
-
-
await client.projects.editChapter("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
request:
ElevenLabs.BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.addChapterToAProject(projectId, { ...params }) -> ElevenLabs.AddChapterResponseModel
-
-
-
Creates a new chapter either as blank or from a URL.
-
-
-
await client.projects.addChapterToAProject("21m00Tcm4TlvDq8ikWAM", { name: "Chapter 1", });
-
-
-
projectId:
string
— The ID of the Studio project.
-
request:
ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.convertChapter(projectId, chapterId) -> unknown
-
-
-
Starts conversion of a specific chapter.
-
-
-
await client.projects.convertChapter("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.listChapterSnapshots(projectId, chapterId) -> ElevenLabs.ChapterSnapshotsResponse
-
-
-
Gets information about all the snapshots of a chapter. Each snapshot can be downloaded as audio. Whenever a chapter is converted a snapshot will automatically be created.
-
-
-
await client.projects.listChapterSnapshots("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.streamChapterAudio(projectId, chapterId, chapterSnapshotId, { ...params }) -> void
-
-
-
Stream the audio from a chapter snapshot. Use
GET /v1/projects/{project_id}/chapters/{chapter_id}/snapshots
to return the chapter snapshots of a chapter.
-
-
-
await client.projects.streamChapterAudio("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
chapterSnapshotId:
string
— The ID of the chapter snapshot.
-
request:
ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost
-
requestOptions:
Projects.RequestOptions
-
-
client.projects.updatePronunciationDictionaries(projectId, { ...params }) -> unknown
-
-
-
Updates the set of pronunciation dictionaries acting on a project. This will automatically mark text within this project as requiring reconverting where the new dictionary would apply or the old one no longer does.
-
-
-
await client.projects.updatePronunciationDictionaries("21m00Tcm4TlvDq8ikWAM", { pronunciation_dictionary_locators: [ { pronunciation_dictionary_id: "pronunciation_dictionary_id", }, ], });
-
-
-
projectId:
string
— The ID of the Studio project.
-
request:
ElevenLabs.UpdatePronunciationDictionariesRequest
-
requestOptions:
Projects.RequestOptions
-
-
client.dubbing.getDubbingResource(dubbingId) -> ElevenLabs.DubbingResource
-
-
-
Given a dubbing ID generated from the '/v1/dubbing' endpoint with studio enabled, returns the dubbing resource.
-
-
-
await client.dubbing.getDubbingResource("dubbing_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.addLanguageToResource(dubbingId, { ...params }) -> ElevenLabs.LanguageAddedResponse
-
-
-
Adds the given ElevenLab Turbo V2/V2.5 language code to the resource. Does not automatically generate transcripts/translations/audio.
-
-
-
await client.dubbing.addLanguageToResource("dubbing_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
request:
ElevenLabs.BodyAddALanguageToTheResourceV1DubbingResourceDubbingIdLanguagePost
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.createSegmentForSpeaker(dubbingId, speakerId, { ...params }) -> ElevenLabs.SegmentCreateResponse
-
-
-
Creates a new segment in dubbing resource with a start and end time for the speaker in every available language. Does not automatically generate transcripts/translations/audio.
-
-
-
await client.dubbing.createSegmentForSpeaker("dubbing_id", "speaker_id", { start_time: 1.1, end_time: 1.1, });
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
speakerId:
string
— ID of the speaker.
-
request:
ElevenLabs.SegmentCreatePayload
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.updateSegmentLanguage(dubbingId, segmentId, language, { ...params }) -> ElevenLabs.SegmentUpdateResponse
-
-
-
Modifies a single segment with new text and/or start/end times. Will update the values for only a specific language of a segment. Does not automatically regenerate the dub.
-
-
-
await client.dubbing.updateSegmentLanguage("dubbing_id", "segment_id", "language");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
segmentId:
string
— ID of the segment
-
language:
string
— ID of the language.
-
request:
ElevenLabs.SegmentUpdatePayload
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.deleteSegment(dubbingId, segmentId) -> ElevenLabs.SegmentDeleteResponse
-
-
-
Deletes a single segment from the dubbing.
-
-
-
await client.dubbing.deleteSegment("dubbing_id", "segment_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
segmentId:
string
— ID of the segment
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.transcribeSegments(dubbingId, { ...params }) -> ElevenLabs.SegmentTranscriptionResponse
-
-
-
Regenerate the transcriptions for the specified segments. Does not automatically regenerate translations or dubs.
-
-
-
await client.dubbing.transcribeSegments("dubbing_id", { segments: ["segments"], });
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
request:
ElevenLabs.BodyTranscribesSegmentsV1DubbingResourceDubbingIdTranscribePost
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.translateSegments(dubbingId, { ...params }) -> ElevenLabs.SegmentTranslationResponse
-
-
-
Regenerate the translations for either the entire resource or the specified segments/languages. Will automatically transcribe missing transcriptions. Will not automatically regenerate the dubs.
-
-
-
await client.dubbing.translateSegments("dubbing_id", { segments: ["segments"], });
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
request:
ElevenLabs.BodyTranslatesAllOrSomeSegmentsAndLanguagesV1DubbingResourceDubbingIdTranslatePost
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.dubSegments(dubbingId, { ...params }) -> ElevenLabs.SegmentDubResponse
-
-
-
Regenerate the dubs for either the entire resource or the specified segments/languages. Will automatically transcribe and translate any missing transcriptions and translations.
-
-
-
await client.dubbing.dubSegments("dubbing_id", { segments: ["segments"], });
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
request:
ElevenLabs.BodyDubsAllOrSomeSegmentsAndLanguagesV1DubbingResourceDubbingIdDubPost
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.dubAVideoOrAnAudioFile({ ...params }) -> ElevenLabs.DoDubbingResponse
-
-
-
Dubs a provided audio or video file into given language.
-
-
-
await client.dubbing.dubAVideoOrAnAudioFile({});
-
-
-
request:
ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.getDubbingProjectMetadata(dubbingId) -> ElevenLabs.DubbingMetadataResponse
-
-
-
Returns metadata about a dubbing project, including whether it's still in progress or not
-
-
-
await client.dubbing.getDubbingProjectMetadata("dubbing_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.deleteDubbingProject(dubbingId) -> ElevenLabs.DeleteDubbingResponseModel
-
-
-
Deletes a dubbing project.
-
-
-
await client.dubbing.deleteDubbingProject("dubbing_id");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
requestOptions:
Dubbing.RequestOptions
-
-
client.dubbing.getTranscriptForDub(dubbingId, languageCode, { ...params }) -> string
-
-
-
Returns transcript for the dub as an SRT or WEBVTT file.
-
-
-
await client.dubbing.getTranscriptForDub("dubbing_id", "language_code");
-
-
-
dubbingId:
string
— ID of the dubbing project.
-
languageCode:
string
— ID of the language.
-
request:
ElevenLabs.DubbingGetTranscriptForDubRequest
-
requestOptions:
Dubbing.RequestOptions
-
-
client.models.getAll() -> ElevenLabs.Model[]
-
-
-
Gets a list of available models.
-
-
-
await client.models.getAll();
-
-
-
requestOptions:
Models.RequestOptions
-
-
client.audioNative.create({ ...params }) -> ElevenLabs.AudioNativeCreateProjectResponseModel
-
-
-
Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
-
-
-
await client.audioNative.create({ name: "name", });
-
-
-
request:
ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost
-
requestOptions:
AudioNative.RequestOptions
-
-
client.audioNative.getSettings(projectId) -> ElevenLabs.GetAudioNativeProjectSettingsResponseModel
-
-
-
Get player settings for the specific project.
-
-
-
await client.audioNative.getSettings("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
AudioNative.RequestOptions
-
-
client.audioNative.updateContent(projectId, { ...params }) -> ElevenLabs.AudioNativeEditContentResponseModel
-
-
-
Updates content for the specific AudioNative Project.
-
-
-
await client.audioNative.updateContent("21m00Tcm4TlvDq8ikWAM", {});
-
-
-
projectId:
string
-
request:
ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost
-
requestOptions:
AudioNative.RequestOptions
-
-
client.usage.getCharactersUsageMetrics({ ...params }) -> ElevenLabs.UsageCharactersResponseModel
-
-
-
Returns the credit usage metrics for the current user or the entire workspace they are part of. The response will return a time axis with unix timestamps for each day and daily usage along that axis. The usage will be broken down by the specified breakdown type. For example, breakdown type "voice" will return the usage of each voice along the time axis.
-
-
-
await client.usage.getCharactersUsageMetrics({ start_unix: 1, end_unix: 1, });
-
-
-
request:
ElevenLabs.UsageGetCharactersUsageMetricsRequest
-
requestOptions:
Usage.RequestOptions
-
-
client.pronunciationDictionary.addFromFile({ ...params }) -> ElevenLabs.AddPronunciationDictionaryResponseModel
-
-
-
Creates a new pronunciation dictionary from a lexicon .PLS file
-
-
-
await client.pronunciationDictionary.addFromFile({ name: "name", });
-
-
-
request:
ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.addFromRules({ ...params }) -> ElevenLabs.AddPronunciationDictionaryResponseModel
-
-
-
Creates a new pronunciation dictionary from provided rules.
-
-
-
await client.pronunciationDictionary.addFromRules({ rules: [ { type: "alias", string_to_replace: "Thailand", alias: "tie-land", }, ], name: "My Dictionary", });
-
-
-
request:
ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.addRules(pronunciationDictionaryId, { ...params }) -> ElevenLabs.AddPronunciationDictionaryRulesResponseModel
-
-
-
Add rules to the pronunciation dictionary
-
-
-
await client.pronunciationDictionary.addRules("21m00Tcm4TlvDq8ikWAM", { rules: [ { type: "alias", string_to_replace: "Thailand", alias: "tie-land", }, ], });
-
-
-
pronunciationDictionaryId:
string
— The id of the pronunciation dictionary
-
request:
ElevenLabs.PronunciationDictionary
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.removeRules(pronunciationDictionaryId, { ...params }) -> ElevenLabs.RemovePronunciationDictionaryRulesResponseModel
-
-
-
Remove rules from the pronunciation dictionary
-
-
-
await client.pronunciationDictionary.removeRules("21m00Tcm4TlvDq8ikWAM", { rule_strings: ["rule_strings"], });
-
-
-
pronunciationDictionaryId:
string
— The id of the pronunciation dictionary
-
request:
ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.get(pronunciationDictionaryId) -> ElevenLabs.GetPronunciationDictionaryMetadataResponse
-
-
-
Get metadata for a pronunciation dictionary
-
-
-
await client.pronunciationDictionary.get("21m00Tcm4TlvDq8ikWAM");
-
-
-
pronunciationDictionaryId:
string
— The id of the pronunciation dictionary
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.pronunciationDictionary.getAll({ ...params }) -> ElevenLabs.GetPronunciationDictionariesMetadataResponseModel
-
-
-
Get a list of the pronunciation dictionaries you have access to and their metadata
-
-
-
await client.pronunciationDictionary.getAll();
-
-
-
request:
ElevenLabs.PronunciationDictionaryGetAllRequest
-
requestOptions:
PronunciationDictionary.RequestOptions
-
-
client.workspace.searchUserGroups({ ...params }) -> ElevenLabs.WorkspaceGroupByNameResponseModel[]
-
-
-
Searches for user groups in the workspace. Multiple or no groups may be returned.
-
-
-
await client.workspace.searchUserGroups({ name: "name", });
-
-
-
request:
ElevenLabs.SearchUserGroupsV1WorkspaceGroupsSearchGetRequest
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.deleteMemberFromUserGroup(groupId, { ...params }) -> ElevenLabs.DeleteWorkspaceGroupMemberResponseModel
-
-
-
Removes a member from the specified group. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.deleteMemberFromUserGroup("group_id", { email: "email", });
-
-
-
groupId:
string
— The ID of the target group.
-
request:
ElevenLabs.BodyDeleteMemberFromUserGroupV1WorkspaceGroupsGroupIdMembersRemovePost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.addMemberToUserGroup(groupId, { ...params }) -> ElevenLabs.AddWorkspaceGroupMemberResponseModel
-
-
-
Adds a member of your workspace to the specified group. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.addMemberToUserGroup("group_id", { email: "email", });
-
-
-
groupId:
string
— The ID of the target group.
-
request:
ElevenLabs.BodyAddMemberToUserGroupV1WorkspaceGroupsGroupIdMembersPost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.inviteUser({ ...params }) -> ElevenLabs.AddWorkspaceInviteResponseModel
-
-
-
Sends an email invitation to join your workspace to the provided email. If the user doesn't have an account they will be prompted to create one. If the user accepts this invite they will be added as a user to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace administrators. If the user is already in the workspace a 400 error will be returned.
-
-
-
await client.workspace.inviteUser({ email: "[email protected]", });
-
-
-
request:
ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.inviteMultipleUsers({ ...params }) -> ElevenLabs.AddWorkspaceInviteResponseModel
-
-
-
Sends email invitations to join your workspace to the provided emails. Requires all email addresses to be part of a verified domain. If the users don't have an account they will be prompted to create one. If the users accept these invites they will be added as users to your workspace and your subscription using one of your seats. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.inviteMultipleUsers({ emails: ["emails"], });
-
-
-
request:
ElevenLabs.BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.deleteExistingInvitation({ ...params }) -> ElevenLabs.DeleteWorkspaceInviteResponseModel
-
-
-
Invalidates an existing email invitation. The invitation will still show up in the inbox it has been delivered to, but activating it to join the workspace won't work. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.deleteExistingInvitation({ email: "[email protected]", });
-
-
-
request:
ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.updateMember({ ...params }) -> ElevenLabs.UpdateWorkspaceMemberResponseModel
-
-
-
Updates attributes of a workspace member. Apart from the email identifier, all parameters will remain unchanged unless specified. This endpoint may only be called by workspace administrators.
-
-
-
await client.workspace.updateMember({ email: "email", });
-
-
-
request:
ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.getResource(resourceId, { ...params }) -> ElevenLabs.ResourceMetadataResponseModel
-
-
-
Gets the metadata of a resource by ID.
-
-
-
await client.workspace.getResource("resource_id", { resource_type: "voice", });
-
-
-
resourceId:
string
— The ID of the target resource.
-
request:
ElevenLabs.GetResourceV1WorkspaceResourcesResourceIdGetRequest
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.shareWorkspaceResource(resourceId, { ...params }) -> unknown
-
-
-
Grants a role on a workspace resource to a user or a group. It overrides any existing role this user/group/workspace api key has on the resource. To target a user, pass only the user email. The user must be in your workspace. To target a group, pass only the group id. To target a workspace api key, pass the api key id. You must have admin access to the resource to share it.
-
-
-
await client.workspace.shareWorkspaceResource("resource_id", { role: "admin", resource_type: "voice", });
-
-
-
resourceId:
string
— The ID of the target resource.
-
request:
ElevenLabs.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost
-
requestOptions:
Workspace.RequestOptions
-
-
client.workspace.unshareWorkspaceResource(resourceId, { ...params }) -> unknown
-
-
-
Removes any existing role on a workspace resource from a user or a group. To target a user, pass only the user email. The user must be in your workspace. To target a group, pass only the group id. To target a workspace api key, pass the api key id. You must have admin access to the resource to unshare it. You cannot remove permissions from the user who created the resource.
-
-
-
await client.workspace.unshareWorkspaceResource("resource_id", { resource_type: "voice", });
-
-
-
resourceId:
string
— The ID of the target resource.
-
request:
ElevenLabs.BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost
-
requestOptions:
Workspace.RequestOptions
-
-
client.speechToText.convert({ ...params }) -> ElevenLabs.SpeechToTextChunkResponseModel
-
-
-
Transcribe an audio or video file.
-
-
-
await client.speechToText.convert({ file: fs.createReadStream("/path/to/your/file"), model_id: "model_id", });
-
-
-
request:
ElevenLabs.BodySpeechToTextV1SpeechToTextPost
-
requestOptions:
SpeechToText.RequestOptions
-
-
client.conversationalAi.getSignedUrl({ ...params }) -> ElevenLabs.ConversationSignedUrlResponseModel
-
-
-
Get a signed url to start a conversation with an agent with an agent that requires authorization
-
-
-
await client.conversationalAi.getSignedUrl({ agent_id: "21m00Tcm4TlvDq8ikWAM", });
-
-
-
request:
ElevenLabs.ConversationalAiGetSignedUrlRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.twilioOutboundCall({ ...params }) -> ElevenLabs.TwilioOutboundCallResponse
-
-
-
Handle an outbound call via Twilio
-
-
-
await client.conversationalAi.twilioOutboundCall({ agent_id: "agent_id", agent_phone_number_id: "agent_phone_number_id", to_number: "to_number", });
-
-
-
request:
ElevenLabs.BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.createAgent({ ...params }) -> ElevenLabs.CreateAgentResponseModel
-
-
-
Create an agent from a config object
-
-
-
await client.conversationalAi.createAgent({ conversation_config: {}, });
-
-
-
request:
ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getAgent(agentId) -> ElevenLabs.GetAgentResponseModel
-
-
-
Retrieve config for an agent
-
-
-
await client.conversationalAi.getAgent("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.deleteAgent(agentId) -> void
-
-
-
Delete an agent
-
-
-
await client.conversationalAi.deleteAgent("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.updateAgent(agentId, { ...params }) -> ElevenLabs.GetAgentResponseModel
-
-
-
Patches an Agent settings
-
-
-
await client.conversationalAi.updateAgent("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getAgentWidget(agentId, { ...params }) -> ElevenLabs.GetAgentEmbedResponseModel
-
-
-
Retrieve the widget configuration for an agent
-
-
-
await client.conversationalAi.getAgentWidget("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.ConversationalAiGetAgentWidgetRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getAgentLink(agentId) -> ElevenLabs.GetAgentLinkResponseModel
-
-
-
Get the current link used to share the agent with others
-
-
-
await client.conversationalAi.getAgentLink("21m00Tcm4TlvDq8ikWAM");
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.postAgentAvatar(agentId, { ...params }) -> ElevenLabs.PostAgentAvatarResponseModel
-
-
-
Sets the avatar for an agent displayed in the widget
-
-
-
await client.conversationalAi.postAgentAvatar("21m00Tcm4TlvDq8ikWAM", { avatar_file: fs.createReadStream("/path/to/your/file"), });
-
-
-
agentId:
string
-
request:
ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.addAgentSecret(agentId, { ...params }) -> ElevenLabs.AddAgentSecretResponseModel
-
-
-
Uploads a file or reference a webpage for the agent to use as part of it's knowledge base
-
-
-
await client.conversationalAi.addAgentSecret("21m00Tcm4TlvDq8ikWAM", { name: "MY API KEY", secret_value: "sk_api_12354abc", });
-
-
-
agentId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getAgents({ ...params }) -> ElevenLabs.GetAgentsPageResponseModel
-
-
-
Returns a list of your agents and their metadata.
-
-
-
await client.conversationalAi.getAgents();
-
-
-
request:
ElevenLabs.ConversationalAiGetAgentsRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getConversations({ ...params }) -> ElevenLabs.GetConversationsPageResponseModel
-
-
-
Get all conversations of agents that user owns. With option to restrict to a specific agent.
-
-
-
await client.conversationalAi.getConversations();
-
-
-
request:
ElevenLabs.ConversationalAiGetConversationsRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getConversation(conversationId) -> ElevenLabs.GetConversationResponseModel
-
-
-
Get the details of a particular conversation
-
-
-
await client.conversationalAi.getConversation("21m00Tcm4TlvDq8ikWAM");
-
-
-
conversationId:
string
— The id of the conversation you're taking the action on.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.deleteConversation(conversationId) -> unknown
-
-
-
Delete a particular conversation
-
-
-
await client.conversationalAi.deleteConversation("21m00Tcm4TlvDq8ikWAM");
-
-
-
conversationId:
string
— The id of the conversation you're taking the action on.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getConversationAudio(conversationId) -> void
-
-
-
Get the audio recording of a particular conversation
-
-
-
await client.conversationalAi.getConversationAudio("21m00Tcm4TlvDq8ikWAM");
-
-
-
conversationId:
string
— The id of the conversation you're taking the action on.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.postConversationFeedback(conversationId, { ...params }) -> unknown
-
-
-
Send the feedback for the given conversation
-
-
-
await client.conversationalAi.postConversationFeedback("21m00Tcm4TlvDq8ikWAM", { feedback: "like", });
-
-
-
conversationId:
string
— The id of the conversation you're taking the action on.
-
request:
ElevenLabs.BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.createPhoneNumber({ ...params }) -> ElevenLabs.CreatePhoneNumberResponseModel
-
-
-
Import Phone Number from provider configuration (Twilio or SIP trunk)
-
-
-
await client.conversationalAi.createPhoneNumber({ phone_number: "phone_number", label: "label", sid: "sid", token: "token", });
-
-
-
request:
ElevenLabs.ConversationalAiCreatePhoneNumberRequestBody
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getPhoneNumber(phoneNumberId) -> ElevenLabs.GetPhoneNumberResponseModel
-
-
-
Retrieve Phone Number details by ID
-
-
-
await client.conversationalAi.getPhoneNumber("TeaqRRdTcIfIu2i7BYfT");
-
-
-
phoneNumberId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.deletePhoneNumber(phoneNumberId) -> unknown
-
-
-
Delete Phone Number by ID
-
-
-
await client.conversationalAi.deletePhoneNumber("TeaqRRdTcIfIu2i7BYfT");
-
-
-
phoneNumberId:
string
— The id of an agent. This is returned on agent creation.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.updatePhoneNumber(phoneNumberId, { ...params }) -> ElevenLabs.GetPhoneNumberResponseModel
-
-
-
Update Phone Number details by ID
-
-
-
await client.conversationalAi.updatePhoneNumber("TeaqRRdTcIfIu2i7BYfT");
-
-
-
phoneNumberId:
string
— The id of an agent. This is returned on agent creation.
-
request:
ElevenLabs.UpdatePhoneNumberRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getPhoneNumbers() -> ElevenLabs.GetPhoneNumberResponseModel[]
-
-
-
Retrieve all Phone Numbers
-
-
-
await client.conversationalAi.getPhoneNumbers();
-
-
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getKnowledgeBaseList({ ...params }) -> ElevenLabs.GetKnowledgeBaseListResponseModel
-
-
-
Get a list of available knowledge base documents
-
-
-
await client.conversationalAi.getKnowledgeBaseList();
-
-
-
request:
ElevenLabs.ConversationalAiGetKnowledgeBaseListRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.addToKnowledgeBase({ ...params }) -> ElevenLabs.AddKnowledgeBaseResponseModel
-
-
-
Uploads a file or reference a webpage to use as part of the shared knowledge base
-
-
-
await client.conversationalAi.addToKnowledgeBase({});
-
-
-
request:
ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.ragIndexStatus(documentationId, { ...params }) -> ElevenLabs.RagIndexResponseModel
-
-
-
In case the document is not RAG indexed, it triggers rag indexing task, otherwise it just returns the current status.
-
-
-
await client.conversationalAi.ragIndexStatus("21m00Tcm4TlvDq8ikWAM", { model: "e5_mistral_7b_instruct", });
-
-
-
documentationId:
string
— The id of a document from the knowledge base. This is returned on document addition.
-
request:
ElevenLabs.RagIndexRequestModel
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getKnowledgeBaseDocumentById(documentationId) -> ElevenLabs.ConversationalAiGetKnowledgeBaseDocumentByIdResponse
-
-
-
Get details about a specific documentation making up the agent's knowledge base
-
-
-
await client.conversationalAi.getKnowledgeBaseDocumentById("21m00Tcm4TlvDq8ikWAM");
-
-
-
documentationId:
string
— The id of a document from the knowledge base. This is returned on document addition.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.deleteKnowledgeBaseDocument(documentationId) -> unknown
-
-
-
Delete a document from the knowledge base
-
-
-
await client.conversationalAi.deleteKnowledgeBaseDocument("21m00Tcm4TlvDq8ikWAM");
-
-
-
documentationId:
string
— The id of a document from the knowledge base. This is returned on document addition.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getDependentAgents(documentationId, { ...params }) -> ElevenLabs.GetKnowledgeBaseDependentAgentsResponseModel
-
-
-
Get a list of agents depending on this knowledge base document
-
-
-
await client.conversationalAi.getDependentAgents("21m00Tcm4TlvDq8ikWAM");
-
-
-
documentationId:
string
— The id of a document from the knowledge base. This is returned on document addition.
-
request:
ElevenLabs.ConversationalAiGetDependentAgentsRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getKnowledgeBaseDocumentContent(documentationId) -> void
-
-
-
Get the entire content of a document from the knowledge base
-
-
-
await client.conversationalAi.getKnowledgeBaseDocumentContent("21m00Tcm4TlvDq8ikWAM");
-
-
-
documentationId:
string
— The id of a document from the knowledge base. This is returned on document addition.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getKnowledgeBaseDocumentPartById(documentationId, chunkId) -> ElevenLabs.KnowledgeBaseDocumentChunkResponseModel
-
-
-
Get details about a specific documentation part used by RAG.
-
-
-
await client.conversationalAi.getKnowledgeBaseDocumentPartById("21m00Tcm4TlvDq8ikWAM", "chunk_id");
-
-
-
documentationId:
string
— The id of a document from the knowledge base. This is returned on document addition.
-
chunkId:
string
— The id of a document RAG chunk from the knowledge base.
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getSettings() -> ElevenLabs.GetConvAiSettingsResponseModel
-
-
-
Retrieve Convai settings for the workspace
-
-
-
await client.conversationalAi.getSettings();
-
-
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.updateSettings({ ...params }) -> ElevenLabs.GetConvAiSettingsResponseModel
-
-
-
Update Convai settings for the workspace
-
-
-
await client.conversationalAi.updateSettings();
-
-
-
request:
ElevenLabs.PatchConvAiSettingsRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.getSecrets() -> ElevenLabs.GetWorkspaceSecretsResponseModel
-
-
-
Get all workspace secrets for the user
-
-
-
await client.conversationalAi.getSecrets();
-
-
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.createSecret({ ...params }) -> ElevenLabs.PostWorkspaceSecretResponseModel
-
-
-
Create a new secret for the workspace
-
-
-
await client.conversationalAi.createSecret({ name: "name", value: "value", });
-
-
-
request:
ElevenLabs.PostWorkspaceSecretRequest
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.conversationalAi.deleteSecret(secretId) -> void
-
-
-
Delete a workspace secret if it's not in use
-
-
-
await client.conversationalAi.deleteSecret("secret_id");
-
-
-
secretId:
string
-
requestOptions:
ConversationalAi.RequestOptions
-
-
client.studio.projects.getAll() -> ElevenLabs.GetProjectsResponse
-
-
-
Returns a list of your Studio projects with metadata.
-
-
-
await client.studio.projects.getAll();
-
-
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.add({ ...params }) -> ElevenLabs.AddProjectResponseModel
-
-
-
Creates a new Studio project, it can be either initialized as blank, from a document or from a URL.
-
-
-
await client.studio.projects.add({ name: "name", default_title_voice_id: "default_title_voice_id", default_paragraph_voice_id: "default_paragraph_voice_id", default_model_id: "default_model_id", });
-
-
-
request:
ElevenLabs.studio.BodyCreateStudioProjectV1StudioProjectsPost
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.get(projectId) -> ElevenLabs.ProjectExtendedResponseModel
-
-
-
Returns information about a specific Studio project. This endpoint returns more detailed information about a project than
GET /v1/studio
.
-
-
-
await client.studio.projects.get("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.updateMetadata(projectId, { ...params }) -> ElevenLabs.EditProjectResponseModel
-
-
-
Updates the specified Studio project by setting the values of the parameters passed.
-
-
-
await client.studio.projects.updateMetadata("21m00Tcm4TlvDq8ikWAM", { name: "Project 1", default_title_voice_id: "21m00Tcm4TlvDq8ikWAM", default_paragraph_voice_id: "21m00Tcm4TlvDq8ikWAM", });
-
-
-
projectId:
string
— The ID of the Studio project.
-
request:
ElevenLabs.studio.BodyUpdateStudioProjectV1StudioProjectsProjectIdPost
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.delete(projectId) -> ElevenLabs.DeleteProjectResponseModel
-
-
-
Deletes a Studio project.
-
-
-
await client.studio.projects.delete("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.updateContent(projectId, { ...params }) -> ElevenLabs.EditProjectResponseModel
-
-
-
Updates Studio project content.
-
-
-
await client.studio.projects.updateContent("21m00Tcm4TlvDq8ikWAM", {});
-
-
-
projectId:
string
-
request:
ElevenLabs.studio.BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.convert(projectId) -> ElevenLabs.ConvertProjectResponseModel
-
-
-
Starts conversion of a Studio project and all of its chapters.
-
-
-
await client.studio.projects.convert("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.getSnapshots(projectId) -> ElevenLabs.ProjectSnapshotsResponse
-
-
-
Retrieves a list of snapshots for a Studio project.
-
-
-
await client.studio.projects.getSnapshots("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.getProjectSnapshot(projectId, projectSnapshotId) -> ElevenLabs.ProjectSnapshotExtendedResponseModel
-
-
-
Returns the project snapshot.
-
-
-
await client.studio.projects.getProjectSnapshot("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
projectSnapshotId:
string
— The ID of the Studio project snapshot.
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.streamAudio(projectId, projectSnapshotId, { ...params }) -> void
-
-
-
Stream the audio from a Studio project snapshot.
-
-
-
await client.studio.projects.streamAudio("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
projectSnapshotId:
string
— The ID of the Studio project snapshot.
-
request:
ElevenLabs.studio.BodyStreamStudioProjectAudioV1StudioProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.projects.updatePronunciationDictionaries(projectId, { ...params }) -> ElevenLabs.CreatePronunciationDictionaryResponseModel
-
-
-
Create a set of pronunciation dictionaries acting on a project. This will automatically mark text within this project as requiring reconverting where the new dictionary would apply or the old one no longer does.
-
-
-
await client.studio.projects.updatePronunciationDictionaries("21m00Tcm4TlvDq8ikWAM", { pronunciation_dictionary_locators: [ { pronunciation_dictionary_id: "pronunciation_dictionary_id", }, ], });
-
-
-
projectId:
string
— The ID of the Studio project.
-
request:
ElevenLabs.studio.BodyCreatePronunciationDictionariesV1StudioProjectsProjectIdPronunciationDictionariesPost
-
requestOptions:
Projects.RequestOptions
-
-
client.studio.chapters.getAll(projectId) -> ElevenLabs.GetChaptersResponse
-
-
-
Returns a list of a Studio project's chapters.
-
-
-
await client.studio.chapters.getAll("21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.create(projectId, { ...params }) -> ElevenLabs.AddChapterResponseModel
-
-
-
Creates a new chapter either as blank or from a URL.
-
-
-
await client.studio.chapters.create("21m00Tcm4TlvDq8ikWAM", { name: "Chapter 1", });
-
-
-
projectId:
string
— The ID of the Studio project.
-
request:
ElevenLabs.studio.BodyCreateChapterV1StudioProjectsProjectIdChaptersPost
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.get(projectId, chapterId) -> ElevenLabs.ChapterWithContentResponseModel
-
-
-
Returns information about a specific chapter.
-
-
-
await client.studio.chapters.get("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.edit(projectId, chapterId, { ...params }) -> ElevenLabs.EditChapterResponseModel
-
-
-
Updates a chapter.
-
-
-
await client.studio.chapters.edit("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
request:
ElevenLabs.studio.BodyUpdateChapterV1StudioProjectsProjectIdChaptersChapterIdPost
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.delete(projectId, chapterId) -> ElevenLabs.DeleteChapterResponseModel
-
-
-
Deletes a chapter.
-
-
-
await client.studio.chapters.delete("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.convert(projectId, chapterId) -> ElevenLabs.ConvertChapterResponseModel
-
-
-
Starts conversion of a specific chapter.
-
-
-
await client.studio.chapters.convert("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.getAllSnapshots(projectId, chapterId) -> ElevenLabs.ChapterSnapshotsResponse
-
-
-
Gets information about all the snapshots of a chapter. Each snapshot can be downloaded as audio. Whenever a chapter is converted a snapshot will automatically be created.
-
-
-
await client.studio.chapters.getAllSnapshots("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
requestOptions:
Chapters.RequestOptions
-
-
client.studio.chapters.getChapterSnapshot(projectId, chapterId, chapterSnapshotId) -> ElevenLabs.ChapterSnapshotExtendedResponseModel
-
-
-
Returns the chapter snapshot.
-
-
-
await client.studio.chapters.getChapterSnapshot("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM");
-
-
-
projectId:
string
— The ID of the Studio project.
-
chapterId:
string
— The ID of the chapter.
-
chapterSnapshotId:
string
— The ID of the chapter snapshot.
-
requestOptions:
Chapters.RequestOptions
-
-