Call it
curl https://api.peume.com/v1/call/design-voice-from-prompt \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"instruction": "your instruction"
}
}'const res = await fetch("https://api.peume.com/v1/call/design-voice-from-prompt", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"instruction": "your instruction"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/design-voice-from-prompt",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"instruction": "your instruction"
}
},
)
print(res.json()["output"])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: design-voice-from-prompt.
Parameters
instructionRequiredstringDescribe the voice: gender, age, accent, tone, pacing, context. Example: 'Warm, confident studio narrator with a natural tone'.
reference_textstringShort line every candidate reads, so you can compare them (up to 300 characters).
languagestringLanguage hint such as en, zh or ja.
nintegerNumber of candidates, 1–4 (default 2). Same price for any n.
speednumberSpeaking speed multiplier, above 0 and at most 3 (default 1).
num_stepintegerDiffusion steps 1–128 (default 32).
guidance_scalenumberHow strongly to follow the prompt (default 2).
instruct_guidance_scalenumberPrompt-conditioning guidance (default 0).
seedintegerFix for reproducible candidates.
