Swift SDK v4
Swift SDK v4.0.0 is the first stable release of the redesigned SDK for ElevenAgents conversations, and the core ElevenLabs library now follows semantic versioning. One ConversationClient runs any number of conversations, starting voice conversations over WebRTC with startVoiceConversation and text-only conversations over a WebSocket with startTextOnlyConversation, each with credentials matched to its transport at compile time. Client tools registered in clientTools send their own results, chatHistory updates streamed replies in place, and onDisconnect reports why a conversation ended. The v4.0.0 release notes list every change and link a migration guide from v3.
Agents as code
ElevenAgents agents can now be defined in code with the Agent builder in the Python and JavaScript SDKs, from v2.80.0. One definition holds the agent’s settings, its tools and its workflow, and agents.push() creates or updates the agent and every webhook and client tool it uses, filling in the tool IDs and leaving unchanged tools alone. agents.pull() and AgentProject keep agents in the same project layout as the ElevenLabs CLI, and validate() checks an agent in CI without an API key. See Agents as code.
New agent LLMs
ElevenAgents adds four LLMs: GPT-6.2 Sol (gpt-6.2-sol), GPT-6.2 Astra (gpt-6.2-astra), Gemini 4 Hydrogen (gemini-4-hydrogen) and Gemini 4 Neon (gemini-4-neon). Select them in the agent’s LLM picker or set them as llm through the API. The GPT-6.2 models and Gemini 4 Neon run at low reasoning effort unless the agent sets one. See Models.
100,000 characters per Eleven v4 request
Text to Speech requests to Eleven v4 (eleven_v4) and Eleven v4 Turbo (eleven_v4_turbo) accept up to 100,000 characters, up from 10,000, so about 100 minutes of audio can come from one request. The limit applies to every Text to Speech endpoint that accepts these models. See Character limits.
Union and array tool parameters
ElevenAgents tool parameters can declare a union of object shapes with AnyOfJsonSchemaProperty, which lists the shapes in any_of and names the property that tells them apart in discriminator. The LLM sees the union as anyOf, and the tool editor has an anyOf type for building one in the dashboard. Webhook tool query parameters can also be arrays of literals through QueryArrayJsonSchemaProperty, sent as repeated keys such as ?status=open&status=pending. See Server tools.
All changes
ElevenAgents
- New LLMs:
gpt-6.2-solandgpt-6.2-astraoffer low to max reasoning effort and default to low.gemini-4-hydrogenoffers low to xhigh effort and defaults to high, andgemini-4-neonoffers low to xhigh and defaults to low. Both Gemini models support the fast service tier.deepseek-v41-flashis zero retention mode and HIPAA eligible in the US, so zero retention agents can select it. Nemotron 3.5 thinking follows the agent’s reasoning effort: off when unset, shorter on medium and full length on high.gpt-6.1-solandgpt-6.1-terrarun at low reasoning effort instead of medium when the agent sets none. Requests forgrok-betanow go straight togemini-3.5-flash, and agents that name it switch togemini-3.5-flashon their next save. See Models. - Scribe v3 Live Medical: The Scribe v3 Live Medical speech recognition model is available to every ElevenAgents workspace, including workspaces with EU data residency, and
scribe_v3_live_medicalis now in the publicASRProviderenum. Select it under Automatic Speech Recognition in the agent’s settings; it requires theturn_v3turn model. Companies that need HIPAA compliance must sign a Business Associate Agreement before sending protected health information. - Tool parameters: Tool parameters accept unions of object shapes (
anyOfwith adiscriminator) in the API and the tool editor, and webhook tool query parameters accept arrays of literals, sent as repeated keys. When a tool is called, an optional parameter bound to a dynamic variable that was never set is left out instead of failing the tool call. The Test tool dialog no longer sends empty optional parameters asnull. Tool Logs and usage statistics record calls to tools that only a procedure enables. - Dynamic variables: The
system__conversation_start_timeandsystem__conversation_start_time_utcsystem variables stay the same for the whole conversation, so prompts that use them stay cacheable, unlikesystem__time. The variable menu lists them and warns thatsystem__timeandsystem__time_utchurt prompt caching.system__current_workflow_node_idholds the ID of the active workflow node. See Dynamic variables. - Structured procedures: Ask steps accept a custom exit condition that replaces the default ask-and-response condition, set from the step’s Ask settings. The editor can author Update state steps, which set dynamic variables. The Procedures analytics tab filters the invocations chart by procedure. See Structured procedures.
- Experiments: Experiment results compare each variant with Main on response latency and data collection, and add a Chance to win column with a 95% interval for the difference. Agent dashboards add Experiment and Variant filters. Variants follow their branch’s auto-rebase setting while an experiment runs, and the experiment page offers Keep all in sync with Main for variants that fall behind. See Experiments.
- Branches and alerts: Merge branch and Rebase branch return
409merge_conflicts_unresolvedfor a merge or rebase with conflicts unlessconflict_resolutionssettles every conflict, instead of picking a side automatically. Each resolution names aconflict_idfrom the preview and achoiceofsource,targetorcustom. Alerting settings at agent and workspace level acceptenvironments, which limits monitors to conversations from the listed environments and must includeproduction; the Monitor thresholds sheet adds a Monitored environments picker. See Alerts. - Testing: Agent Testing can delete tests in bulk, with a review dialog that lists tests other agents or branches depend on and offers to delete only the safe ones or force-delete the whole selection. Create and update test requests validate against the test type they name,
agent_config_overrideis applied as a partial patch, andconversation_configandplatform_settingsin run-test overrides are optional. See Agent testing. - Integrations and channels: The Plain integration is available to every workspace, with
plain_integrationas its conversation source. Zendesk ticket comment triggers add Include Private Comments (on by default); turn it off to keep internal notes out of the agent’s context. The Genesys Bot Connector channel adds Output Parameters, dynamic variables returned to Genesys when a conversation completes. WhatsApp retries a message when the connection to Meta fails instead of ending the conversation, and shows when a number needs re-verification. Custom LLMs acceptmtls_auth_connection, which presents a client certificate to the LLM endpoint and to the OAuth2 token endpoint, alongside an OAuth2 client credentials, OAuth2 JWT or bearerauth_connection. See Custom LLM. - Conversation behavior and limits: Soft timeouts accept up to 30 additional filler messages, up from 7, and
pause_after_filler(defaultfalse) leaves a short pause between a filler and the agent’s response. Call queueing holds up to 400 callers per agent, up from 50. Text-only chats whose client stops answering pings for 5 minutes close with code1000and end as done, with failure typeuser_inactivity_timeout. Afirst_messageof only whitespace is treated as empty. Saving an agent through the API or SDKs creates missing RAG indexes for attached documents in the background, so the save no longer fails withrag_index_not_ready. - Privacy: Transferring to a zero retention agent applies zero retention mode to the rest of the WebSocket conversation. Transcript translation is refused for zero retention conversations with
400redacted_transcript. Get conversation details withformat=opentelemetryredactssecret__dynamic variables, as the JSON format does. - Dashboard and Architect: Architect is available on the agent Preview page, and its
/commandsmenu and approval mode are available to everyone. Architect can create or change a workflow node or edge in one call and resolve each conflict when merging or rebasing a branch. Transcripts show guardrail triggers with the blocked message and the reason, including in async conversations. The Enable chat mode setting is renamed Text only. Usage records Speech Engine and Realtime API conversations as their own products instead of as Agents. Conversations from WebSocket clients that declare no source are labelled WebSocket API instead of unknown. - Fixes: Agents no longer read procedure references such as
[procedure index="1"]aloud. A reply with nothing to speak, such as only tags, no longer leaves the turn open until the call drops. The Realtime Max opener no longer speaks a tool call written out as text. Data collection keeps multi-value enum answers when every value is in the enum. Update state steps saved from the editor no longer start another turn afterend_callor a Genesys transfer. Publishing keeps a language preset’s TTS model and a workflow node’s clone strength. Translating a structured procedure Say step stored without a step ID works. The real-time monitoring WebSocket checksmonitoring_enabledon the version a branch call ran on. Knowledge base search includes documents shared through custom roles, Markdown documents keep their web links, pages fetched from Fern docs sites no longer start with anllms.txtbanner, and List crawl jobs no longer returns short or empty pages. Concurrency rejection messages report the current agent or workspace concurrency. Realtime model and avatar changes save with voice edit permission. The outbound and test call dialogs ask for the selected branch’s dynamic variables.
Hosted MCP
- New tools:
agents_outbound_callplaces one call from an imported phone number, with optional dynamic variables and a first message override, and returns theconversation_id.agents_get_draftreads an agent branch’s unpublished draft, andagents_update_draftchanges conversation config fields in it without overwriting other staged changes.agents_create_pronunciation_dictionary,agents_get_pronunciation_dictionary,agents_add_pronunciation_dictionary_rulesandagents_remove_pronunciation_dictionary_rulescreate and edit pronunciation dictionaries.creative_get_guideserves short workflow guides, such as making a voiceover or building and testing an agent. See Hosted MCP. - Tool behavior:
agents_run_testsreturns the test invocation and its ID as soon as the run starts instead of waiting for the whole suite.agents_updateacceptsprompt,first_message,languageandvoice_id.agents_createuses the default voice whenvoice_idnames no voice. The merge and rebase branch tools accept a choice for each conflict. - Client compatibility: Errors name the next step to take, and common successful calls return a
next_stepslist. The batch calling terms error links to the page where the terms are accepted. Tagged unions are advertised as one object, and LLM, TTS and speech to text model fields as open strings, so more MCP clients accept valid calls. Testing tools accept abodysent as JSON text or with its fields beside it, and validation errors return short field and error pairs. - Fixes:
agents_connect_workflow_nodesno longer fails withMissing required argument(s): source.
Text to Speech
- Eleven v4 character limit:
eleven_v4andeleven_v4_turboaccept up to 100,000 characters per request, up from 10,000. See Character limits. - History: List generated items accepts
sources, an array ofTTS,STSandFlowsthat matches any of them and cannot be combined withsource. The list no longer returns empty pages withhas_moreset when many items were deleted, and thesearch,voice_idandmodel_idfilters find matches past deleted items.
Speech to Text
- Realtime keyterms: The realtime WebSocket accepts
keytermslists of up to 50 keyterms and 1,000 characters in total, with no limit per keyterm, which was 20 characters. See Keyterm prompting. - Session length for single-use tokens: Create single-use token accepts
max_session_duration_secondsforrealtime_scribetokens, which closes the realtime session opened with the token after that many seconds. Other token types return400when it is set. - Realtime language labels: Without language hints, committed transcripts in Chinese, Japanese and Korean get the right
language_codemore often, using the script of the text. Withlanguage_codeor secondary languages set, the first segment after a language switch is labelled with the language of its text instead of the previous segment’s language. - Fixes: Batch transcription with entity detection no longer fails with
500on text that splits into 512-token chunks.
Voices
- Similar voices filters: Find similar voices accepts the Voice Library filters
category,gender,age,use_cases,min_notice_period_days,include_custom_rates,include_live_moderatedandowner_idas query parameters. - Voice Library rate limit: List shared voices has a per-user rate limit of 600 tokens per minute, where each request costs
1 + page * page_size // 50tokens, between 1 and 600. Requests for apagepast the end of the results return400invalid_page. - Live Moderation on library voices: Adding a Voice Library voice to My Voices turns Live Moderation off on the copy when the voice’s owner has turned it off, so agents accept the voice.
- Fixes: The Instant Voice Clone recorder uses the selected microphone, rejects silent recordings and uploads, and clears the minimum length warning after 10 seconds.
Workspaces
- Multiple SSO providers: SSO settings list every provider available to the workspace, including inherited ones, and can add SAML or OIDC providers, edit the workspace’s own providers and share each one with child and sibling workspaces. Identity provider allowlists accept verified domains, so one domain can keep password login while other users sign in with SSO.
- SCIM routing: SCIM routing settings are available to every consolidated billing parent workspace, so a parent can route SCIM users and groups to child workspaces from one identity provider connection.
- Concurrency limits: Workspace settings show the workspace’s Agents, Text to Speech, Speech to Text, Realtime Speech to Text and Music concurrency limits next to seats.
- Agents environments permission: Creating, updating and deleting agent environments and environment variables requires the
agents_environment_variables_writepermission; Agents write access alone no longer allows it. Admins can grant the permission through groups or API keys, and members without it can still view environments. - Webhook redelivery: Members with the
webhooks_managepermission can use Redeliver webhook delivery, which was limited to workspace admins.
Billing
- Usage alerts: Workspaces can have several usage alerts of each type, up to 20 per workspace, managed from one Usage alerts table in settings. Duplicate alerts are rejected, and credit percentage alerts go up to 500%.
- Remove payment details: Admins of free and pay-as-you-go workspaces without auto top-up can remove saved payment methods with Remove payment details in the subscription dialog.
- Pay-as-you-go top-ups: A failed pay-as-you-go top-up no longer puts the plan through payment retries or cancels it, and UPI top-ups can be approved from the top-up dialog.
- Consolidated billing: Pausing usage on a consolidated billing parent pauses its child workspaces too. Child usage charged to the parent is checked against the parent workspace’s limits only, not the parent owner’s personal or group limits.
Reception.ai
- Recording notice: Receptionists accept
first_message_mode(interruptible, the default,uninterruptibleorrecording_notice), which replacesdisable_first_message_interruptions. Withrecording_notice, the greeting opens with a recording notice in the receptionist’s language, spoken in a second voice. - Reseller templates and currency: Create reseller workspace accepts
vertical, and new businesses on a reseller with a template catalog start from the default template for their vertical. Reseller tier ladders are priced in one currency, returned ascurrencyon each tier. See Reception API.
Realtime translation
- Logging setting: The realtime translation WebSocket accepts
enable_logging(defaulttrue); set it tofalsefor zero retention mode, which is available to enterprise customers. It replacesenable_zrmin the API reference, andenable_zrmis still accepted.
Other products
- Voice isolator: Stream audio isolation returns
429before streaming starts when the request is over the concurrency limit, instead of a200with a cut-off body. - Studio: Subtitle exports skip audio tag clips that have no alignment, as audio exports do, so cues no longer drift past the audio.
- Image and video: MiniMax H3 Max costs 25% less until the end of November 30.
SDK releases
Swift SDK
- v4.0.0 - First stable release of the v4 API.
ConversationClientreplacesElevenLabs.startConversation(...)andElevenLabs.configure(...), withstartVoiceConversation(WebRTC) andstartTextOnlyConversation(WebSocket) takingConversationAuth.VoiceandConversationAuth.TextOnlycredentials. Callbacks move toConversationCallbacks, client tools register inclientTools,chatHistoryreplacesmessages,onDisconnectreceives anEndReason,ConversationErrorhas one case per failure, andsetAgentMutedandConversationAudioObservercontrol audio. The package builds in Swift 6 language mode. Adds an experimentalElevenLabsWidgetlibrary withChatWidget.
JavaScript SDK
- v2.80.0 - Added the
Agentbuilder, which holds an agent’s settings, tools and workflow in one definition, andagents.push()andagents.pull(), which create or update the agent and every webhook and client tool it uses.AgentProjectkeeps agents in the ElevenLabs CLI’s project layout. See Agents as code. The tool builder loadstransfer_to_numbertools that usetransfer_rules, and the workflow builder only creates a transition in a direction that has a condition.Conversationsessions can setuserId,branchId,startingWorkflowNodeId,procedureIdsandstartProcedureIds, identify themselves asnode_js_sdk, and emitsession_endedonce, withDisconnectionDetailsthat say whether the user, the agent or an error ended the session.play()andstream()reject when the audio input fails, and a missing ffmpeg during realtime URL streaming is reported as an error event instead of ending the process. Regenerated with the API changes below.
Python SDK
- v2.80.0 - Added the
Agentbuilder inelevenlabs.agent_builder, andagents.push()andagents.pull()onElevenLabsandAsyncElevenLabs, which create or update the agent and every webhook and client tool it uses.AgentProjectkeeps agents in the ElevenLabs CLI’s project layout. See Agents as code. Added the@client_tooldecorator, which turns a typed function into a client tool and the handler that runs when the agent calls it.tools.create()andtools.update()accept the decorated function, andtools.check_client_tools()reports functions that no longer match the agent’s tools. See Define a client tool from a function. The tool builder loadstransfer_to_numbertools that usetransfer_rules, and the workflow builder only creates a transition in a direction that has a condition. Synchronous client tools keep working afterClientToolsis stopped and started again. Regenerated with the API changes below.
ElevenLabs CLI
- v1.12.2 - Updated the bundled API client.
- v1.13.0 - Regenerated against the latest API, so the endpoint subcommands include the API changes below.
Packages
- @elevenlabs/client@1.37.0, @elevenlabs/react@1.23.0 and @elevenlabs/types@0.30.0 - Session config exposes the conversation initiation overrides from the AsyncAPI spec, including the prompt knowledge base. Fixed static and echo during agent playback in Firefox, microphone audio sent at the wrong sample rate when the browser cannot capture at the agent’s input rate,
sendUserActivitysendinguser_activityonly once while the user types, andstripAudioTagsleaving doubled spaces.ConversationProviderconnects a session started on mount under React StrictMode. - @elevenlabs/client@1.37.1 - Ended voice sessions release their audio element and worklet ports.
- @elevenlabs/client@1.38.0, @elevenlabs/react@1.24.0 and @elevenlabs/react-native@1.3.0 - A client tool call for a tool that is not in
clientToolsis always answered with an errorclient_tool_result, even whenonUnhandledClientToolCallis set. WebRTC sessions wait for the agent to join the room before sending conversation initiation data; passwebRtc: { waitForAgent: false }to opt out. The microphone is released when a session ends duringchangeInputDevice().@elevenlabs/react-nativeexportsuseConversationClientTooland plays audio through a connected Bluetooth or wired headset on Android instead of the speaker. - @elevenlabs/convai-widget-core@0.27.0 and @elevenlabs/convai-widget-core@0.27.1 - Added an
expand-on-carouselsetting (off by default) that expands the compact sheet on desktop when product cards arrive. The end call button is tinted with thebase_errorcolor and shows its End label in the sheet. - @elevenlabs/convai-widget-core@0.28.0 and @elevenlabs/convai-widget-embed@0.28.0 - Added
layout="side-panel", which opens the chat as a full-height panel on the placement’s side. The minimize, launcher and resize button labels are translatable throughtext_contentswith thedismiss,open_chat,expand_widgetandcollapse_widgetkeys. - @elevenlabs/react@1.23.1, @elevenlabs/react-native@1.2.41, @elevenlabs/react-native@1.2.42, @elevenlabs/convai-widget-embed@0.27.0, @elevenlabs/convai-widget-embed@0.27.1 and @elevenlabs/types@0.31.0 - Updated to the latest
@elevenlabs/clientand widget releases.
API changes
Updated endpoints
ElevenAgents
- Create agent, Update agent and the agent get endpoints
- The
LLMenum, also used by conversation overrides on the/v1/convai/conversationWebSocket, addsgpt-6.2-sol,gpt-6.2-astra,gemini-4-hydrogenandgemini-4-neon. ASRProvideraddsscribe_v3_live_medical.- Tool parameter schemas add
AnyOfJsonSchemaProperty(any_of, an array of at least two object shapes, a requireddiscriminatorstring and an optionaldescription) as a property type of object parameters and as an item type of array parameters. - Webhook tool
query_params_schemaproperties acceptQueryArrayJsonSchemaPropertyalongsideLiteralJsonSchemaProperty. SoftTimeoutConfigaddspause_after_filler(boolean, defaultfalse), andadditional_soft_timeout_messagesaccepts up to 30 items, up from 7. Workflow overrides add a nullablepause_after_filler.CustomLLMadds optionalmtls_auth_connection(auth connection locator or environment auth connection locator).AlertingSettingsadds optionalenvironments(array of 1 to 20 strings that must includeproduction), returned onAlertingSettingsResponse.ConversationInitiationSourceand the/v1/convai/conversationWebSocket’ssource_info.sourceaddunity_sdkandplain_integration.
- The
- Merge branch and Rebase branch
- Added optional
conflict_resolutions(array ofConflictResolution, each withconflict_id,choiceofsource,targetorcustom, andcustom_value). Merge adds optionalsource_tip_idandtarget_tip_id; rebase adds optionalbranch_tip_idandsource_tip_id. - Preview merge and Preview rebase responses add nullable
source_tip_version_id,target_tip_version_idandmerge_error, and eachFieldConflictadds requiredid(string) andaccepts_custom_value(boolean).
- Added optional
- Run tests and resubmit test invocation -
conversation_configandplatform_settingsin the agent config override are optional. - List triage tickets and List workspace triage tickets - Removed the
issue_typequery parameter.issue_typeon ticket responses is deprecated and alwaysnull.
Text to Speech
- List generated items - Added optional
sourcesquery parameter (array ofTTS,STSorFlows), which cannot be combined withsource.
Speech to Text
- Create single-use token - Added optional
max_session_duration_secondsquery parameter (integer greater than 0) forrealtime_scribetokens.
Voices
- Find similar voices - Added optional
category,gender,age,owner_id(strings),use_cases(string array),min_notice_period_days(integer),include_custom_ratesandinclude_live_moderated(booleans) query parameters.
Realtime translation
- Realtime translation WebSocket - Added optional
enable_loggingconnection query parameter (boolean, defaulttrue), which replacesenable_zrm.
Reception.ai
- Create reseller workspace - The request body is now
ReceptionProvisionResellerWorkspaceRequest, which adds optionalvertical(ReceptionVertical). - Reseller tier ladder -
ResellerTierResponseadds requiredcurrency(currency code enum). - Customer-facing agents -
ReceptionCustomerFacingConfigand its patch body addfirst_message_mode(interruptible,uninterruptibleorrecording_notice, defaultinterruptible) and removedisable_first_message_interruptions. - Agent info - The
currencyenum addsGEL.