PeumeAPI

AI generation

Text to Speech

Convert text to natural, directable speech (MP3) with a system or cloned voice.

From $0.54 per call

Call it

curl https://api.peume.com/v1/call/text-to-speech \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "model": "stepaudio-3-tts",
    "input": "your input",
    "voice": "your voice"
  }
}'

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: text-to-speech.

Parameters

modelRequiredstring

stepaudio-3-tts (newest, most natural; laughter, breath and hesitation; cheaper) or stepaudio-2.5-tts (context-aware, previous generation; priced higher). Required.

stepaudio-3-tts · stepaudio-2.5-tts

inputRequiredstring

Text to speak (1-1000 characters). Text inside parentheses is a delivery instruction and is not spoken, e.g. '(whispering) I can see it from here'.

voiceRequiredstring

A system voice id from /voices (e.g. magnetic-voiced-male) or a voice you cloned via /voices/clone.

languagestring

zh, en (upstream default), ja, ko, fr or es (the last four in preview). Cloned voices support only zh and en.

zh · en · ja · ko · fr · es

instructionstring

Global delivery guidance for the whole clip, e.g. 'calm, warm late-night radio host'. Up to 500 characters on stepaudio-3-tts, 200 on stepaudio-2.5-tts.

speednumber

Speaking rate 0.5-2.0 (1.0 = normal).

volumenumber

Volume 0.1-2.0 (1.0 = unchanged).

sample_ratestring

Output sample rate in Hz (upstream default 24000).

pronunciation_maparray

Pronunciation overrides as 'term/reading', e.g. 'LOL/laugh out loudly'. Chinese tones use 1-4 (5 = neutral).

markdown_filterboolean

Strip Markdown syntax from input before speaking.

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.