productivity
ElevenLabs CLI for AI Agents
Use the ElevenLabs CLI from KosmoKrator to call ElevenLabs tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.ElevenLabs CLI Setup
ElevenLabs can be configured headlessly with `kosmokrator integrations:configure elevenlabs`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure elevenlabs --set api_key="$ELEVENLABS_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor elevenlabs --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_key | ELEVENLABS_API_KEY | Secret secret | yes | API Key |
url | ELEVENLABS_URL | URL url | no | API Base URL |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call elevenlabs.elevenlabs_text_to_speech '{"voice_id":"example_voice_id","text":"example_text","model_id":"example_model_id","stability":1,"similarity_boost":1,"style":1,"use_speaker_boost":true}' --json kosmo integrations:elevenlabs elevenlabs_text_to_speech '{"voice_id":"example_voice_id","text":"example_text","model_id":"example_model_id","stability":1,"similarity_boost":1,"style":1,"use_speaker_boost":true}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs elevenlabs --json
kosmo integrations:docs elevenlabs.elevenlabs_text_to_speech --json
kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech --json
kosmo integrations:search "ElevenLabs" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
elevenlabs.elevenlabs_text_to_speech
Convert text to speech audio using an ElevenLabs voice. Returns base64-encoded audio. Choose a voice ID and model ID to control the output.
write - Parameters
- voice_id, text, model_id, stability, similarity_boost, style, use_speaker_boost
kosmo integrations:call elevenlabs.elevenlabs_text_to_speech '{"voice_id":"example_voice_id","text":"example_text","model_id":"example_model_id","stability":1,"similarity_boost":1,"style":1,"use_speaker_boost":true}' --json kosmo integrations:elevenlabs elevenlabs_text_to_speech '{"voice_id":"example_voice_id","text":"example_text","model_id":"example_model_id","stability":1,"similarity_boost":1,"style":1,"use_speaker_boost":true}' --json elevenlabs.elevenlabs_text_to_speech_with_timestamps
Convert text to speech with character timing.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_text_to_speech_with_timestamps '{}' --json kosmo integrations:elevenlabs elevenlabs_text_to_speech_with_timestamps '{}' --json elevenlabs.elevenlabs_speech_to_speech
Transform an audio file into another voice.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_speech_to_speech '{}' --json kosmo integrations:elevenlabs elevenlabs_speech_to_speech '{}' --json elevenlabs.elevenlabs_speech_to_text
Transcribe audio or video.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_speech_to_text '{}' --json kosmo integrations:elevenlabs elevenlabs_speech_to_text '{}' --json elevenlabs.elevenlabs_create_sound_effect
Generate a sound effect from text.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_create_sound_effect '{}' --json kosmo integrations:elevenlabs elevenlabs_create_sound_effect '{}' --json elevenlabs.elevenlabs_isolate_audio
Remove background noise from audio.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_isolate_audio '{}' --json kosmo integrations:elevenlabs elevenlabs_isolate_audio '{}' --json elevenlabs.elevenlabs_list_audio_isolation_history
List audio isolation generations.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_list_audio_isolation_history '{}' --json kosmo integrations:elevenlabs elevenlabs_list_audio_isolation_history '{}' --json elevenlabs.elevenlabs_list_voices
List all available voices in your ElevenLabs account, including pre-made and cloned voices. Use this to discover voice IDs for text-to-speech.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_list_voices '{}' --json kosmo integrations:elevenlabs elevenlabs_list_voices '{}' --json elevenlabs.elevenlabs_get_voice
Get detailed information about a specific ElevenLabs voice, including its settings, labels, and fine-tuning info.
read - Parameters
- voice_id
kosmo integrations:call elevenlabs.elevenlabs_get_voice '{"voice_id":"example_voice_id"}' --json kosmo integrations:elevenlabs elevenlabs_get_voice '{"voice_id":"example_voice_id"}' --json elevenlabs.elevenlabs_get_voice_settings
Get voice settings.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_voice_settings '{}' --json kosmo integrations:elevenlabs elevenlabs_get_voice_settings '{}' --json elevenlabs.elevenlabs_edit_voice_settings
Edit voice settings.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_edit_voice_settings '{}' --json kosmo integrations:elevenlabs elevenlabs_edit_voice_settings '{}' --json elevenlabs.elevenlabs_create_voice
Create a new voice clone in ElevenLabs. Provide a name, optional audio sample file paths or base64-encoded data, and an optional description.
write - Parameters
- name, files, description
kosmo integrations:call elevenlabs.elevenlabs_create_voice '{"name":"example_name","files":"example_files","description":"example_description"}' --json kosmo integrations:elevenlabs elevenlabs_create_voice '{"name":"example_name","files":"example_files","description":"example_description"}' --json elevenlabs.elevenlabs_delete_voice
Permanently delete a voice from your ElevenLabs account. This action cannot be undone.
write - Parameters
- voice_id
kosmo integrations:call elevenlabs.elevenlabs_delete_voice '{"voice_id":"example_voice_id"}' --json kosmo integrations:elevenlabs elevenlabs_delete_voice '{"voice_id":"example_voice_id"}' --json elevenlabs.elevenlabs_get_models
List all available ElevenLabs text-to-speech models, including their IDs, names, and language support. Use model IDs when calling text_to_speech.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_models '{}' --json kosmo integrations:elevenlabs elevenlabs_get_models '{}' --json elevenlabs.elevenlabs_get_history
Browse your ElevenLabs generation history. Returns a paginated list of past text-to-speech requests with metadata.
read - Parameters
- page_size, start_after
kosmo integrations:call elevenlabs.elevenlabs_get_history '{"page_size":1,"start_after":1}' --json kosmo integrations:elevenlabs elevenlabs_get_history '{"page_size":1,"start_after":1}' --json elevenlabs.elevenlabs_get_history_item
Get one history item.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_history_item '{}' --json kosmo integrations:elevenlabs elevenlabs_get_history_item '{}' --json elevenlabs.elevenlabs_get_history_item_audio
Download history item audio.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_history_item_audio '{}' --json kosmo integrations:elevenlabs elevenlabs_get_history_item_audio '{}' --json elevenlabs.elevenlabs_delete_history_item
Delete one history item.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_delete_history_item '{}' --json kosmo integrations:elevenlabs elevenlabs_delete_history_item '{}' --json elevenlabs.elevenlabs_create_dubbing
Create a dubbing project.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_create_dubbing '{}' --json kosmo integrations:elevenlabs elevenlabs_create_dubbing '{}' --json elevenlabs.elevenlabs_list_dubbings
List dubbing projects.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_list_dubbings '{}' --json kosmo integrations:elevenlabs elevenlabs_list_dubbings '{}' --json elevenlabs.elevenlabs_get_dubbing
Get one dubbing project.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_dubbing '{}' --json kosmo integrations:elevenlabs elevenlabs_get_dubbing '{}' --json elevenlabs.elevenlabs_delete_dubbing
Delete a dubbing project.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_delete_dubbing '{}' --json kosmo integrations:elevenlabs elevenlabs_delete_dubbing '{}' --json elevenlabs.elevenlabs_get_dubbing_transcript
Get a dubbing transcript.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_dubbing_transcript '{}' --json kosmo integrations:elevenlabs elevenlabs_get_dubbing_transcript '{}' --json elevenlabs.elevenlabs_get_current_user
Get your ElevenLabs account details, including subscription tier, character usage, and remaining quota.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_current_user '{}' --json kosmo integrations:elevenlabs elevenlabs_get_current_user '{}' --json elevenlabs.elevenlabs_get_subscription
Get subscription and quota details.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_get_subscription '{}' --json kosmo integrations:elevenlabs elevenlabs_get_subscription '{}' --json elevenlabs.elevenlabs_api_get
Call an ElevenLabs GET endpoint.
read - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_api_get '{}' --json kosmo integrations:elevenlabs elevenlabs_api_get '{}' --json elevenlabs.elevenlabs_api_post
Call an ElevenLabs POST endpoint.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_api_post '{}' --json kosmo integrations:elevenlabs elevenlabs_api_post '{}' --json elevenlabs.elevenlabs_api_delete
Call an ElevenLabs DELETE endpoint.
write - Parameters
- none
kosmo integrations:call elevenlabs.elevenlabs_api_delete '{}' --json kosmo integrations:elevenlabs elevenlabs_api_delete '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
elevenlabs.elevenlabs_text_to_speech 7 parameters
kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech --json | Parameter | Type | Required | Description |
|---|---|---|---|
voice_id | string | yes | The voice identifier (use list_voices to discover available voices). |
text | string | yes | The text to convert to speech. |
model_id | string | no | Model ID to use (e.g., "eleven_multilingual_v2", "eleven_monolingual_v1", "eleven_turbo_v2_5"). Defaults to "eleven_multilingual_v2". |
stability | number | no | Voice stability (0.0–1.0). Higher values reduce randomness. |
similarity_boost | number | no | Voice similarity boost (0.0–1.0). Higher values enforce voice similarity. |
style | number | no | Style exaggeration (0.0–1.0). Higher values increase expressiveness. |
use_speaker_boost | boolean | no | Enable speaker boost for enhanced clarity. |
elevenlabs.elevenlabs_text_to_speech_with_timestamps 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech_with_timestamps --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_speech_to_speech 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_speech_to_speech --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_speech_to_text 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_speech_to_text --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_create_sound_effect 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_create_sound_effect --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_isolate_audio 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_isolate_audio --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_list_audio_isolation_history 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_list_audio_isolation_history --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_list_voices 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_list_voices --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_voice 1 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_voice --json | Parameter | Type | Required | Description |
|---|---|---|---|
voice_id | string | yes | The voice identifier to look up. |
elevenlabs.elevenlabs_get_voice_settings 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_voice_settings --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_edit_voice_settings 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_edit_voice_settings --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_create_voice 3 parameters
kosmo integrations:schema elevenlabs.elevenlabs_create_voice --json | Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Name for the new voice. |
files | array | no | Array of audio sample file paths or base64-encoded audio strings for voice cloning. |
description | string | no | Optional description of the voice (e.g., "Warm female narrator"). |
elevenlabs.elevenlabs_delete_voice 1 parameters
kosmo integrations:schema elevenlabs.elevenlabs_delete_voice --json | Parameter | Type | Required | Description |
|---|---|---|---|
voice_id | string | yes | The voice identifier to delete. |
elevenlabs.elevenlabs_get_models 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_models --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_history 2 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_history --json | Parameter | Type | Required | Description |
|---|---|---|---|
page_size | integer | no | Number of history items per page (default: 20, max: 100). |
start_after | integer | no | History item ID to start after (for cursor-based pagination). |
elevenlabs.elevenlabs_get_history_item 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_history_item --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_history_item_audio 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_history_item_audio --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_delete_history_item 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_delete_history_item --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_create_dubbing 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_create_dubbing --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_list_dubbings 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_list_dubbings --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_dubbing 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_dubbing --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_delete_dubbing 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_delete_dubbing --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_dubbing_transcript 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_dubbing_transcript --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_current_user 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_get_subscription 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_get_subscription --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_api_get 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_api_post 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
elevenlabs.elevenlabs_api_delete 0 parameters
kosmo integrations:schema elevenlabs.elevenlabs_api_delete --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.