Skip to main content
POST
Create Speech

Authorizations

Authorization
string
header
required

Enter your MeshAPI key (rsk_...) or, for the admin-keys endpoints, a dashboard session token — sent as Authorization: Bearer <token>.

Headers

X-Mesh-Version
enum<string>
default:2026-08

Dated version of the API contract to pin this request to. Omit it and the request is served under 2026-08 — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with 400 invalid_api_version rather than falling back silently. The version actually served is echoed as X-Mesh-Version on every response, including errors.

Available options:
2026-08,
2026-09

Body

application/json
input
string
required
model
string
default:eleven_flash_v2_5
voice
string | null
stream
boolean
default:true
response_format
string | null
language_code
string | null
voice_settings
VoiceSettings · object | null
pronunciation_dictionary_locators
PronunciationDictionaryLocator · object[] | null
seed
integer | null
previous_text
string | null
next_text
string | null
previous_request_ids
string[] | null
next_request_ids
string[] | null
apply_text_normalization
string | null
apply_language_text_normalization
boolean | null
use_pvc_as_ivc
boolean | null
enable_logging
boolean | null
optimize_streaming_latency
integer | null
speaker
string
default:anushka
target_language_code
string
default:hi-IN
pitch
number | null
pace
number | null
loudness
number | null
speech_sample_rate
integer | null
enable_preprocessing
boolean | null
tags
Tags · object | null

Your own labels for this request, echoed back on the usage row and available as a filter and a group-by dimension in the usage API. String keys to string values. Never put personal or sensitive data here — tags are stored with the usage record and are not redacted.

Example:
safety_identifier
string | null

A stable, anonymised identifier for the end user making this request, recorded on the usage row and available as a filter and a group-by dimension in the usage API. Supersedes the deprecated user field. Use an opaque id, not an email address or a name.

Maximum string length: 256

Response

Successful Response