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,
2026-11,
2026-11-12

Body

application/json
input
string
required
model
string
default:eleven_flash_v2_5
voice
string | null

The voice to speak with: a voice id or name from the model's own list. Sarvam-served models read speaker instead.

stream
boolean
default:true
response_format
string | null

Audio container and encoding of the response, e.g. mp3_44100_128. The accepted values depend on stream; an unlisted value is refused with a 422, and a listed one the chosen model does not serve with a 400.

language_code
string | null

Language of input, as a language code. Read by ElevenLabs-, Together- and Venice-served models and by Gemini speech models.

voice_settings
VoiceSettings · object | null

Per-request overrides of the voice's stored settings. Read by ElevenLabs- and DeepInfra-served models and by Novita's MiniMax speech models.

pronunciation_dictionary_locators
PronunciationDictionaryLocator · object[] | null

Pronunciation dictionaries to apply, in order. Read by ElevenLabs-served models only.

seed
integer | null

Best-effort determinism: the same seed and request aim for the same audio. Read by ElevenLabs-served models only.

previous_text
string | null

Text that came before input, used to keep delivery continuous across requests. Read by ElevenLabs-served models only.

next_text
string | null

Text that follows input, used to keep delivery continuous across requests. Read by ElevenLabs-served models only.

previous_request_ids
string[] | null

Request ids of the audio generated before this one, for continuity. Read by ElevenLabs-served models only.

next_request_ids
string[] | null

Request ids of the audio generated after this one, for continuity. Read by ElevenLabs-served models only.

apply_text_normalization
string | null

Whether numbers, dates and abbreviations are spelled out before synthesis: auto, on or off. Read by ElevenLabs-served models only.

apply_language_text_normalization
boolean | null

Language-specific text normalization, which can add latency. Read by ElevenLabs-served models only.

use_pvc_as_ivc
boolean | null

Uses the instant-clone version of a professional voice clone, for lower latency. Read by ElevenLabs-served models only.

enable_logging
boolean | null

false asks the provider not to retain the request. Read by ElevenLabs-served models only.

optimize_streaming_latency
integer | null

Latency optimisation level from 0 (none) to 4 (most, with text normalization off). Read by ElevenLabs-served models only.

speaker
string
default:anushka

The voice to speak with on Sarvam-served models, by speaker name. Other models read voice.

target_language_code
string
default:hi-IN

Language to speak in, as a BCP-47 code such as hi-IN. Read by Sarvam-served models only.

pitch
number | null

Voice pitch. Read by Sarvam-served models and by Novita's MiniMax speech models, which take a whole number from -12 to 12.

pace
number | null

Speaking rate on Sarvam-served models. Some other models read speed instead.

loudness
number | null

Output loudness. Read by Sarvam-served models only.

speech_sample_rate
integer | null

Output sample rate in Hz. Honoured on Sarvam-, Runware- and SiliconFlow-served models, and accepted but ignored on the others. Each model publishes its own accepted rates, and some accept fewer depending on response_format; Mesh forwards your value as sent and never substitutes a supported rate for one a model does not accept. It applies to the model you named: if your request is served by a fallback instead — which X-Mesh-Routing-Fallback: true on the response tells you — the rate is not applied, because the fallback may accept a different set. That response names speech_sample_rate in X-Mesh-Dropped-Parameters, so you can tell the rate was the parameter dropped rather than inferring it from the hop.

enable_preprocessing
boolean | null

Normalizes mixed-language text and numerals before synthesis. Read by Sarvam-served models only.

speed
number | null

Speaking rate, where 1.0 is the voice's natural pace. Honoured on DeepInfra-, SiliconFlow- and Venice-served models and on Novita's MiniMax speech models, and accepted but ignored on the others — Novita's Fish Audio model reads no rate control at all, and on ElevenLabs the rate control is voice_settings.speed instead, with this endpoint's default model being an ElevenLabs one. A model's own accepted range may be narrower than the one allowed here; Mesh forwards your value as sent and never clamps it.

Required range: 0.25 <= x <= 4
vol
number | null

Output volume. Read by Novita's MiniMax speech models only.

Required range: 0 < x <= 10
emotion
enum<string> | null

Emotion of the delivery. Read by Novita's MiniMax speech models only.

Available options:
happy,
sad,
angry,
fearful,
disgusted,
surprised,
calm,
fluent,
whisper
provider
string | null

Pin this request to one upstream provider, e.g. elevenlabs. The request is served by that provider or refused — never routed elsewhere. See GET /v1/providers/pinnable for the slugs this deployment accepts.

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