Seed Audio 1.5

This guide shows how to generate speech using the Seed Audio 1.5 model via the Leonardo.AI REST API.

Sample Request

curl --request POST \
     --url https://cloud.leonardo.ai/api/rest/v2/generations \
     --header 'accept: application/json' \
     --header 'authorization: Bearer <YOUR_API_KEY>' \
     --header 'content-type: application/json' \
     --data '
{
    "model": "bytedance/seed-audio-1.5",
    "public": false,
    "parameters": {
      "prompt": "Narrator, English, warm and calm, steady pace: \"Welcome back, traveller. The city gates close at sundown, so lets not waste any time.\"",
      "voice_id": "multi_female_lisa_v3_uranus_bigtts",
      "speed": 1,
      "pitch": 0,
      "volume": 1,
      "quantity": 1,
      "sample_rate": 44100,
      "output_format": "mp3"
    }
}
'

API Request Endpoint, Headers, Parameters

Endpoint

https://cloud.leonardo.ai/api/rest/v2/generations

Headers

--header "accept: application/json" \
--header "authorization: Bearer <YOUR_API_KEY>" \
--header "content-type: application/json"

Body Parameters

ParameterTypeDefinition
guidances.audio_referencearrayVoice clips that set the timbre or performance. Maximum 6 items. Each item includes audio.id and audio.type (UPLOADED or GENERATED). A preset voice_id counts toward the same 6-item limit. With several speakers, name each clip's speaker in the prompt. Cannot be combined with an image reference. Each item must be 2–30 seconds and under 15 MB, with a maximum of 180 seconds in total.
guidances.image_referencearrayAn image that guides the voice. Maximum 1 item. Each item includes image (with id and type) and order. Image type is UPLOADED, GENERATED, VARIATION, URL, or BASE64; image.url is required when type is URL, and image.data is required when type is BASE64. Image width and height must be 300 to 6000. Cannot be combined with audio clips, a preset voice, or a video reference. Must be under 10 MB.
guidances.video_reference_basearrayA video whose lines and timing the audio follows. Maximum 1 item. Each item includes video.id and video.type (UPLOADED or GENERATED). Add audio clips or a preset voice to set the voice. Cannot be combined with an image reference. Speed stays at normal so the audio keeps in sync. Video width and height must be 300 to 6000. Each item must be 4–60 seconds. The output always lasts as long as the video.
modelstringSpecifies the model used for generation. Set to bytedance/seed-audio-1.5. Required.
output_formatstringThe file format of the generated audio. Set to mp3 or wav. Defaults to mp3.
pitchintegerAdjusts the pitch of the generated speech. Ranges from -12 to 12. Defaults to 0.
promptstringThe exact lines to speak, each in quotation marks, and how to perform them: speaker, language, emotion and pace. Required. Maximum of 9999 characters. Speech is required: music and sound effects work only alongside spoken lines. A prompt with no quoted line, or with an unclosed quote, is rejected. With a video reference, quote lines that span the whole video, or start each line with a timestamp range such as [0.0s:10.0s]. A short prompt leaves the rest of the video silent; without a preset voice, it is rejected.
publicbooleanControls whether the generated audio is public (true) or private (false).
quantityintegerThe number of outputs to generate. Set to 1. Defaults to 1.
sample_rateintegerThe sample rate of the generated audio in Hz. Set to 8000, 16000, 24000, 32000, 44100, or 48000. Defaults to 44100.
speednumberAdjusts the playback speed of the generated speech. Ranges from 0.5 to 2. Defaults to 1.
voice_idstringID of the preset voice used for speech, or none to describe the voice in the prompt or with audio clips. Defaults to none. A preset voice takes one of the slots shared with the audio reference clips. Cannot be combined with an image reference. See List of Voice IDs below.
volumenumberAdjusts the volume of the generated speech. Ranges from 0.5 to 2. Defaults to 1.

List of Voice IDs

The API accepts the following voice_id values:

Voice IDVoice NameLanguageStyle
noneNo preset voice—With a video, quote lines across it or add timestamps [0.0s:10.0s]
multi_female_lisa_v3_uranus_bigttsLisaUS EnglishConversational
multi_female_wenrouzhishijieshuonv_v3_uranus_bigttsMeganUS EnglishGentle
multi_female_skye_v3_uranus_bigttsSkyeUS EnglishHeartfelt
multi_male_michael_v3_uranus_bigttsHankUS EnglishEasygoing
multi_male_jamie_v3_uranus_bigttsJamieUS EnglishEnergetic
multi_male_marcus_v3_uranus_bigttsMarcusUS EnglishDeep
multi_female_authoritative_britishukaudiobook_v3_uranus_bigttsCharlotteUK EnglishSoft-Spoken
multi_female_yingyujiaoxue_v3_uranus_bigttsJeanUK EnglishPatient
multi_male_russell_v3_uranus_bigttsRussellUK EnglishFriendly
multi_male_benukaudiobook_v3_uranus_bigttsTobiasUK EnglishNarrator
multi_female_vv_xi_v3_uranus_bigttsViviMandarinApproachable
multi_male_ruyaqingnian_v3_uranus_bigttsWen YuMandarinArticulate
multi_female_bv166narrator_v3_uranus_bigttsFreyaMexican SpanishExpressive
multi_male_marcelo_v3_uranus_bigttsMarceloMexican SpanishComposed
multi_female_fr_f47_v3_uranus_bigttsCamilleFrenchClear
multi_male_fr_m29_v3_uranus_bigttsMauriceFrenchResonant
multi_female_bv530_v3_uranus_bigttsSofiaBrazilian PortugueseLively
multi_male_bv531_v3_uranus_bigttsArthurBrazilian PortugueseSteady
multi_female_bv081_v3_uranus_bigttsStellaGermanProfessional
multi_male_sven_v3_uranus_bigttsSvenGermanHusky
multi_female_bv522_v3_uranus_bigttsHanaJapaneseCalm
multi_male_m1_v3_uranus_bigttsHiroJapaneseStoryteller

Did this page help you?