suno-ai/bark

🔊 Text-Prompted Generative Audio Model

  • Public
  • 194.1K runs

Run bark with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.
Input prompt
history_prompt
string (enum)

Options:

announcer, de_speaker_0, de_speaker_1, de_speaker_2, de_speaker_3, de_speaker_4, de_speaker_5, de_speaker_6, de_speaker_7, de_speaker_8, de_speaker_9, en_speaker_0, en_speaker_1, en_speaker_2, en_speaker_3, en_speaker_4, en_speaker_5, en_speaker_6, en_speaker_7, en_speaker_8, en_speaker_9, es_speaker_0, es_speaker_1, es_speaker_2, es_speaker_3, es_speaker_4, es_speaker_5, es_speaker_6, es_speaker_7, es_speaker_8, es_speaker_9, fr_speaker_0, fr_speaker_1, fr_speaker_2, fr_speaker_3, fr_speaker_4, fr_speaker_5, fr_speaker_6, fr_speaker_7, fr_speaker_8, fr_speaker_9, hi_speaker_0, hi_speaker_1, hi_speaker_2, hi_speaker_3, hi_speaker_4, hi_speaker_5, hi_speaker_6, hi_speaker_7, hi_speaker_8, hi_speaker_9, it_speaker_0, it_speaker_1, it_speaker_2, it_speaker_3, it_speaker_4, it_speaker_5, it_speaker_6, it_speaker_7, it_speaker_8, it_speaker_9, ja_speaker_0, ja_speaker_1, ja_speaker_2, ja_speaker_3, ja_speaker_4, ja_speaker_5, ja_speaker_6, ja_speaker_7, ja_speaker_8, ja_speaker_9, ko_speaker_0, ko_speaker_1, ko_speaker_2, ko_speaker_3, ko_speaker_4, ko_speaker_5, ko_speaker_6, ko_speaker_7, ko_speaker_8, ko_speaker_9, pl_speaker_0, pl_speaker_1, pl_speaker_2, pl_speaker_3, pl_speaker_4, pl_speaker_5, pl_speaker_6, pl_speaker_7, pl_speaker_8, pl_speaker_9, pt_speaker_0, pt_speaker_1, pt_speaker_2, pt_speaker_3, pt_speaker_4, pt_speaker_5, pt_speaker_6, pt_speaker_7, pt_speaker_8, pt_speaker_9, ru_speaker_0, ru_speaker_1, ru_speaker_2, ru_speaker_3, ru_speaker_4, ru_speaker_5, ru_speaker_6, ru_speaker_7, ru_speaker_8, ru_speaker_9, tr_speaker_0, tr_speaker_1, tr_speaker_2, tr_speaker_3, tr_speaker_4, tr_speaker_5, tr_speaker_6, tr_speaker_7, tr_speaker_8, tr_speaker_9, zh_speaker_0, zh_speaker_1, zh_speaker_2, zh_speaker_3, zh_speaker_4, zh_speaker_5, zh_speaker_6, zh_speaker_7, zh_speaker_8, zh_speaker_9

history choice for audio cloning, choose from the list
custom_history_prompt
string
Provide your own .npz file with history choice for audio cloning, this will override the previous history_prompt setting
text_temp
number
0.7
generation temperature (1.0 more diverse, 0.0 more conservative)
waveform_temp
number
0.7
generation temperature (1.0 more diverse, 0.0 more conservative)
output_full
boolean
False
return full generation as a .npz file to be used as a history prompt

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'properties': {'audio_out': {'format': 'uri',
                              'title': 'Audio Out',
                              'type': 'string'},
                'prompt_npz': {'format': 'uri',
                               'title': 'Prompt Npz',
                               'type': 'string'}},
 'required': ['audio_out'],
 'title': 'ModelOutput',
 'type': 'object'}