Seed Speech 2.0 API reference
41 voices with tone set in plain language
Call Seed Speech 2.0 from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in credits, and a request you can paste into a terminal.
At a glance
- Made by
- ByteDance
- Output
- Audio
- From
- 10.8 credits per 1,000 characters ($0.108)
- Typical time
- about 9 s
1 credit = $0.01. A task holds the highest possible charge when it is accepted and settles the real amount when it finishes, rounded up to whole credits; failed tasks are not charged. Ask POST /api/v1/jobs/quote for the exact figure before you run.
Text to Speech
bytedance/seed-speech-2.0/text-to-speech
Price
| Option | Credits (per 1,000 characters) | US dollars |
|---|---|---|
Default | 10.8 | $0.108 |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
textRequired | string | — | up to 5,000 characters | The words to be spoken, exactly as written. Billed per 1,000 characters. |
voice_idOptional | string | stokie_en | vivi_mixed_en_zh_ja_es_id, mindy_en_es_id_pt_zh, stokie_en, dacey_en, tim_en, kian_en_zh, cedric_en_zh, sophie_en_zh, jean_en_zh, magnus_en_zh, mabel_en_zh, nadia_en_zh, opal_en_zh, pearl_en_zh, … (+27) | Preset voice. The suffix shows the languages it is built for. |
instructionsOptional | string | — | up to 1,000 characters | How to read the text: tone, emotion, pace or volume. Not spoken and not billed. |
speedOptional | number | 1 | 0.5 to 2 | Speaking rate; 1 is the voice's normal pace. |
pitchOptional | integer | 0 | -12 to 12 | Pitch shift in semitones; 0 keeps the voice's own pitch. |
volumeOptional | number | 1 | 0.5 to 2 | Loudness multiplier; 1 is the normal level. |
languageOptional | string | — | zh, en, ja, es-mx, id, pt-br, ko, it, de, fr | Forces the reading language. Leave empty to detect it from the text. |
output_formatOptional | string | mp3 | mp3, opus | File format of the result; opus is an Ogg Opus file. |
sample_rateOptional | integer | — | 8000, 16000, 22050, 24000, 32000, 44100, 48000 | Sample rate in Hz. The model uses 24000 when omitted. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "bytedance/seed-speech-2.0/text-to-speech",
"input": {
"text": "Hi there! This voice was created with the PopNow API in just a few seconds."
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
