PeumeAPI

AI generation

S2.1 Pro text to speech

Generate audio from text, optionally using a reusable private voice owned by the current team.

$0.0005 per 1,000,000 lookups, only when foundUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/s2-1-pro-text-to-speech \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "text": "Welcome to example.",
    "temperature": 0.7,
    "top_p": 0.7,
    "prosody": {
      "speed": 1,
      "volume": 0,
      "normalize_loudness": true
    },
    "chunk_length": 300,
    "format": "mp3"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: s2-1-pro-text-to-speech.

Parameters

textRequiredstring

Example: Welcome to example.

reference_idarray

Omit for Fish's default voice. On 's key each id must be owned by the current team or verified by Fish as public.

temperaturenumber

Example: 0.7

top_pnumber

Example: 0.7

prosodyobject

Example: {"speed":1,"volume":0,"normalize_loudness":true}

chunk_lengthinteger

Example: 300

formatstring

mp3 · wav · pcm · opus

Example: mp3

sample_rateinteger

Supported output rates depend on the selected format.

8000 · 16000 · 24000 · 32000 · 44100 · 48000

mp3_bitrateinteger

64 · 128 · 192

Example: 128

opus_bitrateinteger

-1000 · 24000 · 32000 · 48000 · 64000

Example: -1000

normalizeboolean

Example: true

latencystring

low · normal · balanced

Example: normal

max_new_tokensinteger

Example: 1024

repetition_penaltynumber

Example: 1.2

min_chunk_lengthinteger

Example: 50

condition_on_previous_chunksboolean

Example: true

early_stop_thresholdnumber

Example: 1

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.