Skip to content
Lumean

Templates

The voice and voiceover settings live in a template. How to build a config, change it for a single order, and edit a template.

A voiceover order is created from a template. The template holds the service, model, voice, output format, and voice settings. The order passes a template_id and the text. Orders have no voice_id field.

A voiceover order can't be created without a template. A request with task_type: "tts" instead of template_id passes field validation, and then the API returns 422 with reason: service_not_found.

Template and order

BASE=https://api.lumean.app/api/public

# 1. Template: service, model, voice and settings. Created once.
curl -s -X POST "$BASE/templates" -H "X-API-KEY: $KEY" -H "Content-Type: application/json" -d '{
  "service_key": "elevenlabs",
  "name": "My TTS",
  "config": {
    "tts_settings": {
      "mode": "mode_v1",
      "model_id": "eleven_multilingual_v2",
      "voice_id": "<VOICE_ID>",
      "advanced_voice_settings": true,
      "voice_settings": { "stability": 0.5, "similarity_boost": 0.75, "use_speaker_boost": true, "speed": 1.0 }
    }
  }
}'
# → data.id = <TEMPLATE_UUID>

# 2. An order from the template. The text goes in input_text.
curl -s -X POST "$BASE/orders" -H "X-API-KEY: $KEY" -H "Content-Type: application/json" \
  -d '{ "template_id": "<TEMPLATE_UUID>", "input_text": "Hello! This is a test voiceover." }'

For elevenlabs, tts_settings.model_id, voice_id, mode, and voice_settings.stability are required. mode accepts only mode_v1.

The text to voice goes in input_text or in a .txt file in input_files[]. See Voiceover text for details. The task_data field is for orders without a template (sfx, music, voice_search). It carries the prompt and generation parameters.

POST /templates requires the templates.write scope. The automation preset doesn't include it; see Keys, scopes and headers.

Template ownership

A template belongs to the account, not to the key. A template created in the web dashboard works with the API, and the other way round. GET /templates called with a key returns the same templates you see in the dashboard, page by page; see Pagination.

An order can use your own template or another account's public template. A private template of another account is not available to your key:

RequestResponse
GET, PUT, PATCH, or DELETE /templates/{template}403
POST /orders with that template_id422 with an error in errors.template_id, the same as for a template that doesn't exist
POST /orders/{order}/retry after the author has made the template private403 with reason: template_access_denied
403template_access_deniedtemplate_access_denied — no access to the template
What happened

The order was not created. The response is HTTP 403 with the body {"success": false, "message": "…", "reason": "template_access_denied"}. The code comes on an order retry (POST /orders/{order}/retry) when the template of the original order is no longer available.

What to do right now

Such an order cannot be retried. Create a new order from your own template or a public one. A template belongs to the account, not to a key: a template created in your account works through the API, and the other way round.

Open the code page

What goes into config

The structure of config depends on service_key. The configuration reference returns the allowed keys and values.

Each field comes with type, default, and nullable. Depending on the type, it also has options or min, max, and step. The API rejects a value outside these bounds with 422 when you create a template or an order.

conditional_overrides shows how the allowed values change with your choices. For ElevenLabs models outside the v3 family, the language list shrinks from 73 to 29. On v3 models, stability accepts only 0.0, 0.5, and 1.0.

The reference groups fields into sections. For elevenlabs, heygen, and lumimg, the section name is also the path in config. For sfx, music, and voice_search, the section only groups the fields, and the keys themselves sit at the root.

ServiceIn the referenceIn config and task_data
elevenlabstts_settings → model_id{"tts_settings": {"model_id": …}}
sfxsfx_settings → text{"text": …}
musicmusic_settings → prompt{"prompt": …}
voice_searchvoice_search_settings → top{"top": …}

Don't send the section wrapper for these services. In a template it returns 422; in config_override it is dropped without an error.

The advanced_voice_settings flag

ModelFlag offFlag on
eleven_v3, eleven_v3_betastabilityall five
eleven_v4, eleven_v4_expstability, similarity_boostall five
other modelsall fiveall five

The table shows which voice_settings values reach synthesis. "All five" means stability, similarity_boost, style, use_speaker_boost, and speed. The tts_settings.advanced_voice_settings flag is off by default.

The other values are saved in the template without an error, but they don't affect the sound. The setting most often lost this way is speed on v3 and v4 models. If you change these parameters, turn the flag on in the same tts_settings object.

Settings for a single order: config_override

{
  "template_id": "<TEMPLATE_UUID>",
  "input_text": "Same text, different voice.",
  "config_override": { "tts_settings": { "voice_id": "<OTHER_VOICE_ID>" } }
}

config_override in POST /orders changes the settings of one order without a new template. It has the same shape as config and is applied on top of the template's config for that order only.

  • Keys outside the service schema are dropped with no error and no warning. A typo in a key name looks like a setting that wasn't applied.
  • An explicit null erases the template value for this order. To keep the template value, leave the key out.
  • config_override works only together with template_id. Orders without a template pass their parameters in task_data.

Do

Send only the keys you're changing: {"tts_settings": {"speed": 1.1}}. The rest of the template config is kept.

Don't

Send the whole settings form with null in the empty fields. Each of those null values erases the template value for this order.

The generation_mode key turns on paragraph mode. It sits at the root, next to tts_settings: {"generation_mode": "paragraph"}. It isn't listed in config-options. The mode changes how the text is chunked and what it costs; see Voiceover text.

Editing a template

curl -s -X PATCH "$BASE/templates/<TEMPLATE_UUID>" -H "X-API-KEY: $KEY" \
  -H "Content-Type: application/json" -d '{
  "service_key": "elevenlabs",
  "config": {
    "tts_settings": {
      "mode": "mode_v1",
      "model_id": "eleven_multilingual_v2",
      "voice_id": "<VOICE_ID>",
      "voice_settings": { "stability": 0.5, "speed": 1.1 }
    }
  }
}'

PUT and PATCH behave the same way. The new config is deep-merged into the current one. A key missing from the request keeps its previous value. Lists merge by position, so send a list in full.

You can't remove a key from config by editing. To restore a default value, send it explicitly. The defaults are in the default field of the reference.

The config you send is validated against the service schema on its own, before the merge. So every edit must include the required fields of the schema. For elevenlabs, these are model_id, voice_id, mode, and voice_settings.stability.

service_key and config are sent only together. Even if the service doesn't change, include its key.

An edit doesn't affect orders that already exist. They run and are retried with the settings they had when created. The exception is orders created before the end of September 2026. They have no settings snapshot, so editing the template affects them.

If a voiceover order isn't created

ResponseCause
422, reason: service_not_foundtask_type: "tts" was sent instead of template_id
422 with an error in errors.template_idThe template doesn't exist. It was deleted, or it belongs to another account and isn't public. Deleting a template is irreversible
422 with a settings field in errorsThe order settings failed the service schema
422, reason: template_model_outdatedThe template or config_override holds settings from a previous service schema; their paths are in fields. Pick the model in the template again
The order was created, but some settings aren't audibleadvanced_voice_settings is off on a v3 or v4 model, or a key in config_override has a typo

This page for AI

Open .mdllm.md

Updated 10/18/2026 · API version 1.0.0