Seed Audio 1.5 API
Multi-voice dialogue, voice cloning and songs with timed sound effects.
POST /v2/seed-audio-1.5 · submit + poll 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3import segmind
4
5# Async (v2): submit to the queue and block until COMPLETED.
6# run() returns the final result dict (600s deadline, 1.0s poll by default).
7result = segmind.run(
8 "seed-audio-1.5",
9 prompt="A 1950s railway signal box on a windy night: bare wooden floorboards, a ticking wall clock, window panes rattling in their frames. Speaker 1 is Arthur, the signalman, voiced by reference clip 1. Speaker 2 is Nell, his trainee, voiced by reference clip 2. Keep each speaker's voice and accent exactly as in their reference clip. Both speak English. Do not read the timestamps or the names aloud.\n[0.0s:2.5s] Wind buffets the windows; a brass block bell rings twice.\n[2.5s:6.5s] Nell, nervous: \"Two bells, Arthur. Is that the 9:40 from Carlisle?\"\n[6.5s:12.0s] Arthur, calm and steady: \"It is. Lever number seven, both hands, and don't stop halfway.\"\n[12.0s:13.5s] A heavy iron lever is hauled back and clunks into place.\n[13.5s:16.5s] Nell, laughing with relief: \"Done! The signal's off!\"\n[16.5s:23.0s] A steam locomotive thunders past below, its whistle shrieking, then fades into the wind.",
10 reference_audios=["https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref1-arthur-05b7deea.mp3", "https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref2-nell-77811551.mp3"],
11 output_format="mp3",
12 speech_rate=0,
13 loudness_rate=0,
14 pitch_rate=0,
15)
16print(result["status"]) # COMPLETED
17print(result.get("output")) # model output (e.g. media URL)
18print(result["metrics"]["inference_time"]) # server compute seconds
19
20# --- Or submit + poll manually (track request_id, control the cadence) ---
21from segmind import SegmindClient, InferenceFailed, InferenceTimeout
22
23client = SegmindClient() # reads SEGMIND_API_KEY
24payload = {
25 "prompt": "A 1950s railway signal box on a windy night: bare wooden floorboards, a ticking wall clock, window panes rattling in their frames. Speaker 1 is Arthur, the signalman, voiced by reference clip 1. Speaker 2 is Nell, his trainee, voiced by reference clip 2. Keep each speaker's voice and accent exactly as in their reference clip. Both speak English. Do not read the timestamps or the names aloud.\n[0.0s:2.5s] Wind buffets the windows; a brass block bell rings twice.\n[2.5s:6.5s] Nell, nervous: \"Two bells, Arthur. Is that the 9:40 from Carlisle?\"\n[6.5s:12.0s] Arthur, calm and steady: \"It is. Lever number seven, both hands, and don't stop halfway.\"\n[12.0s:13.5s] A heavy iron lever is hauled back and clunks into place.\n[13.5s:16.5s] Nell, laughing with relief: \"Done! The signal's off!\"\n[16.5s:23.0s] A steam locomotive thunders past below, its whistle shrieking, then fades into the wind.",
26 "reference_audios": ["https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref1-arthur-05b7deea.mp3", "https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref2-nell-77811551.mp3"],
27 "output_format": "mp3",
28 "speech_rate": 0,
29 "loudness_rate": 0,
30 "pitch_rate": 0,
31}
32job = client.submit_async("seed-audio-1.5", **payload)
33print(job.request_id) # available immediately
34try:
35 result = job.wait(timeout=600, interval=1.0)
36except InferenceTimeout as e:
37 print("still running:", e.request_id)
38except InferenceFailed as e:
39 print("failed:", e.detail) 1# pip install "segmind>=1.1.0"
2# export SEGMIND_API_KEY="YOUR_API_KEY"
3import segmind
4
5# Async (v2): submit to the queue and block until COMPLETED.
6# run() returns the final result dict (600s deadline, 1.0s poll by default).
7result = segmind.run(
8 "seed-audio-1.5",
9 prompt="A 1950s railway signal box on a windy night: bare wooden floorboards, a ticking wall clock, window panes rattling in their frames. Speaker 1 is Arthur, the signalman, voiced by reference clip 1. Speaker 2 is Nell, his trainee, voiced by reference clip 2. Keep each speaker's voice and accent exactly as in their reference clip. Both speak English. Do not read the timestamps or the names aloud.\n[0.0s:2.5s] Wind buffets the windows; a brass block bell rings twice.\n[2.5s:6.5s] Nell, nervous: \"Two bells, Arthur. Is that the 9:40 from Carlisle?\"\n[6.5s:12.0s] Arthur, calm and steady: \"It is. Lever number seven, both hands, and don't stop halfway.\"\n[12.0s:13.5s] A heavy iron lever is hauled back and clunks into place.\n[13.5s:16.5s] Nell, laughing with relief: \"Done! The signal's off!\"\n[16.5s:23.0s] A steam locomotive thunders past below, its whistle shrieking, then fades into the wind.",
10 reference_audios=["https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref1-arthur-05b7deea.mp3", "https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref2-nell-77811551.mp3"],
11 output_format="mp3",
12 speech_rate=0,
13 loudness_rate=0,
14 pitch_rate=0,
15)
16print(result["status"]) # COMPLETED
17print(result.get("output")) # model output (e.g. media URL)
18print(result["metrics"]["inference_time"]) # server compute seconds
19
20# --- Or submit + poll manually (track request_id, control the cadence) ---
21from segmind import SegmindClient, InferenceFailed, InferenceTimeout
22
23client = SegmindClient() # reads SEGMIND_API_KEY
24payload = {
25 "prompt": "A 1950s railway signal box on a windy night: bare wooden floorboards, a ticking wall clock, window panes rattling in their frames. Speaker 1 is Arthur, the signalman, voiced by reference clip 1. Speaker 2 is Nell, his trainee, voiced by reference clip 2. Keep each speaker's voice and accent exactly as in their reference clip. Both speak English. Do not read the timestamps or the names aloud.\n[0.0s:2.5s] Wind buffets the windows; a brass block bell rings twice.\n[2.5s:6.5s] Nell, nervous: \"Two bells, Arthur. Is that the 9:40 from Carlisle?\"\n[6.5s:12.0s] Arthur, calm and steady: \"It is. Lever number seven, both hands, and don't stop halfway.\"\n[12.0s:13.5s] A heavy iron lever is hauled back and clunks into place.\n[13.5s:16.5s] Nell, laughing with relief: \"Done! The signal's off!\"\n[16.5s:23.0s] A steam locomotive thunders past below, its whistle shrieking, then fades into the wind.",
26 "reference_audios": ["https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref1-arthur-05b7deea.mp3", "https://segmind-resources.s3.amazonaws.com/input/seed-audio-1.5-ref2-nell-77811551.mp3"],
27 "output_format": "mp3",
28 "speech_rate": 0,
29 "loudness_rate": 0,
30 "pitch_rate": 0,
31}
32job = client.submit_async("seed-audio-1.5", **payload)
33print(job.request_id) # available immediately
34try:
35 result = job.wait(timeout=600, interval=1.0)
36except InferenceTimeout as e:
37 print("still running:", e.request_id)
38except InferenceFailed as e:
39 print("failed:", e.detail)API Endpoint
https://api.segmind.com/v1/seed-audio-1.5Parameters
promptrequiredstringThe script and the performance. Put the exact lines to speak or sing in quotes: a prompt without them is refused, so instrumental music and effects-only audio are not possible. A song needs its lyrics in the prompt. Then describe who speaks (voice, language, emotion, pace) and any sound effects or music. You can time each sound with [start s:end s], for example [2.0s:5.0s]. With reference clips, say which clip voices which speaker, in the order the clips are given. With an image, describe the scene first and then the lines.
"Two friends at a busy night market. A warm, excited female voice: \"You have to try the mango sticky rice!\" A calm male voice, laughing: \"Fine, but only if you're paying.\" Sizzling woks and crowd chatter in the background, no music."loudness_rateoptionalintegerVolume: 100 is 2x, -50 is 0.5x.
0Range: -50 - 100output_formatoptionalstringAudio container. ogg_opus is always 48 kHz.
"mp3""mp3""wav""ogg_opus""pcm"pitch_rateoptionalintegerPitch shift in semitones.
0Range: -12 - 12reference_audiosoptionalstring[]Up to 6 voice clips (wav or mp3, 2-30 s each, 180 s in total) to clone timbre or performance. Refer to them by order in the prompt.
reference_imageoptionalstring (uri)One image (300-6000 px on each side) to set the scene the audio should match. It cannot be combined with reference audios.
sample_rateoptionalintegerOutput sample rate in Hz. Defaults to 44100 (48000 for ogg_opus).
80001600024000320004410048000speech_rateoptionalintegerSpeaking speed: 100 is 2x, -50 is 0.5x.
0Range: -50 - 100Response Type
Returns: Audio
Asynchronous requests (v2)
Use Async for video, long-running (>~60s), or high-concurrency workloads; Sync is simplest for fast image & LLM calls. Async submits a request and you poll it to completion.
- 1
POST /v2/seed-audio-1.5Submit — returns request_id, status_url, response_url
- 2
GET /v2/requests/{id}/statusPoll — until COMPLETED or FAILED
- 3
GET /v2/requests/{id}Result — final response body
Status states
- A FAILED request is served as HTTP 422 — the body still carries the error detail.
- An unknown or expired request_id returns HTTP 404.
- Results are retained for 1 hour, then expire.
- Content / RAI blocks surface as FAILED, not a separate state.
- Track completion by polling the status endpoint.
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out