---
title: Templates
url: https://lumean.app/tr/developers/docs/guide/templates
locale: tr
description: "The voice and voiceover settings live in a template. How to build a config, change it for a single order, and edit a template."
updated: 2026-10-18
source_locale: en
sources: [post-templates, get-templates, get-templates-config-options, put-templates-template, post-orders]
errors: [template-access-denied, service-not-found, "422"]
spec_version: 1.0.0
---

# Templates

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

```bash
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](/developers/docs/guide/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](/developers/docs/guide/authentication).

## 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](/developers/docs/guide/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:

| Request | Response |
| --- | --- |
| `GET`, `PUT`, `PATCH`, or `DELETE /templates/{template}` | `403` |
| `POST /orders` with that `template_id` | `422` 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 private | `403` with `reason: template_access_denied` |

### 403 · `template_access_denied` — template_access_denied — no access to the template

| Что произошло | Что делать |
| --- | --- |
| 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. | 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. |

`Retry-After`: нет. Разбор: https://lumean.app/tr/developers/docs/errors/template-access-denied

## What goes into `config`

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

### GET /templates/config-options

Get Template Config Options

Справочник: https://lumean.app/tr/developers/docs/api/get-templates-config-options

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.

| Service | In the reference | In `config` and `task_data` |
| --- | --- | --- |
| `elevenlabs` | `tts_settings` → `model_id` | `{"tts_settings": {"model_id": …}}` |
| `sfx` | `sfx_settings` → `text` | `{"text": …}` |
| `music` | `music_settings` → `prompt` | `{"prompt": …}` |
| `voice_search` | `voice_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

| Model | Flag off | Flag on |
| --- | --- | --- |
| `eleven_v3`, `eleven_v3_beta` | `stability` | all five |
| `eleven_v4`, `eleven_v4_exp` | `stability`, `similarity_boost` | all five |
| other models | all five | all 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`

```json
{
  "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`.

**Правильно**

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

**Неправильно**

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](/developers/docs/guide/text).

## Editing a template

```bash
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.

### PUT /templates/{template}

Update Template

Справочник: https://lumean.app/tr/developers/docs/api/put-templates-template

## If a voiceover order isn't created

| Response | Cause |
| --- | --- |
| `422`, `reason: service_not_found` | `task_type: "tts"` was sent instead of `template_id` |
| `422` with an error in `errors.template_id` | The 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 `errors` | The order settings failed the service schema |
| `422`, `reason: template_model_outdated` | The 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 audible | `advanced_voice_settings` is off on a v3 or v4 model, or a key in `config_override` has a typo |

### POST /orders

Create Order

Справочник: https://lumean.app/tr/developers/docs/api/post-orders

---

- Bu sayfa tarayıcıda: https://lumean.app/tr/developers/docs/guide/templates
- Makine tarafından okunabilir tam başvuru: https://api.lumean.app/docs/llm.md
