KosmoKrator

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, configure, and verify
# 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
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
Provider shortcut
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.

Discovery commands
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 write
Parameters
voice_id, text, model_id, stability, similarity_boost, style, use_speaker_boost
Generic call
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
Shortcut
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 write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_text_to_speech_with_timestamps '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_text_to_speech_with_timestamps '{}' --json

elevenlabs.elevenlabs_speech_to_speech

Transform an audio file into another voice.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_speech_to_speech '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_speech_to_speech '{}' --json

elevenlabs.elevenlabs_speech_to_text

Transcribe audio or video.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_speech_to_text '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_speech_to_text '{}' --json

elevenlabs.elevenlabs_create_sound_effect

Generate a sound effect from text.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_create_sound_effect '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_create_sound_effect '{}' --json

elevenlabs.elevenlabs_isolate_audio

Remove background noise from audio.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_isolate_audio '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_isolate_audio '{}' --json

elevenlabs.elevenlabs_list_audio_isolation_history

List audio isolation generations.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_list_audio_isolation_history '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_list_voices '{}' --json
Shortcut
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 read
Parameters
voice_id
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_voice '{"voice_id":"example_voice_id"}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_voice '{"voice_id":"example_voice_id"}' --json

elevenlabs.elevenlabs_get_voice_settings

Get voice settings.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_voice_settings '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_voice_settings '{}' --json

elevenlabs.elevenlabs_edit_voice_settings

Edit voice settings.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_edit_voice_settings '{}' --json
Shortcut
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 write
Parameters
name, files, description
Generic call
kosmo integrations:call elevenlabs.elevenlabs_create_voice '{"name":"example_name","files":"example_files","description":"example_description"}' --json
Shortcut
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 write
Parameters
voice_id
Generic call
kosmo integrations:call elevenlabs.elevenlabs_delete_voice '{"voice_id":"example_voice_id"}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_models '{}' --json
Shortcut
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 read
Parameters
page_size, start_after
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_history '{"page_size":1,"start_after":1}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_history '{"page_size":1,"start_after":1}' --json

elevenlabs.elevenlabs_get_history_item

Get one history item.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_history_item '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_history_item '{}' --json

elevenlabs.elevenlabs_get_history_item_audio

Download history item audio.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_history_item_audio '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_history_item_audio '{}' --json

elevenlabs.elevenlabs_delete_history_item

Delete one history item.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_delete_history_item '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_delete_history_item '{}' --json

elevenlabs.elevenlabs_create_dubbing

Create a dubbing project.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_create_dubbing '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_create_dubbing '{}' --json

elevenlabs.elevenlabs_list_dubbings

List dubbing projects.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_list_dubbings '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_list_dubbings '{}' --json

elevenlabs.elevenlabs_get_dubbing

Get one dubbing project.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_dubbing '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_dubbing '{}' --json

elevenlabs.elevenlabs_delete_dubbing

Delete a dubbing project.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_delete_dubbing '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_delete_dubbing '{}' --json

elevenlabs.elevenlabs_get_dubbing_transcript

Get a dubbing transcript.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_dubbing_transcript '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_current_user '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_current_user '{}' --json

elevenlabs.elevenlabs_get_subscription

Get subscription and quota details.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_get_subscription '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_get_subscription '{}' --json

elevenlabs.elevenlabs_api_get

Call an ElevenLabs GET endpoint.

Read read
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_api_get '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_api_get '{}' --json

elevenlabs.elevenlabs_api_post

Call an ElevenLabs POST endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_api_post '{}' --json
Shortcut
kosmo integrations:elevenlabs elevenlabs_api_post '{}' --json

elevenlabs.elevenlabs_api_delete

Call an ElevenLabs DELETE endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call elevenlabs.elevenlabs_api_delete '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech_with_timestamps --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_speech_to_speech 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_speech_to_speech --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_speech_to_text 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_speech_to_text --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_create_sound_effect 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_create_sound_effect --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_isolate_audio 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_isolate_audio --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_list_audio_isolation_history 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_list_audio_isolation_history --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_list_voices 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_list_voices --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_voice 1 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_voice --json
ParameterTypeRequiredDescription
voice_id string yes The voice identifier to look up.
elevenlabs.elevenlabs_get_voice_settings 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_voice_settings --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_edit_voice_settings 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_edit_voice_settings --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_create_voice 3 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_create_voice --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_delete_voice --json
ParameterTypeRequiredDescription
voice_id string yes The voice identifier to delete.
elevenlabs.elevenlabs_get_models 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_models --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_history 2 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_history --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_history_item --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_history_item_audio 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_history_item_audio --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_delete_history_item 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_delete_history_item --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_create_dubbing 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_create_dubbing --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_list_dubbings 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_list_dubbings --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_dubbing 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_dubbing --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_delete_dubbing 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_delete_dubbing --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_dubbing_transcript 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_dubbing_transcript --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_current_user 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_get_subscription 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_get_subscription --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_api_get 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_api_get --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_api_post 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_api_post --json
ParameterTypeRequiredDescription
No parameters.
elevenlabs.elevenlabs_api_delete 0 parameters
Schema command
kosmo integrations:schema elevenlabs.elevenlabs_api_delete --json
ParameterTypeRequiredDescription
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.