Voz, música e efeito sonoro
Fala no formato da OpenAI, música e efeito sonoro, com o arquivo na resposta.
3 rotas. Sem pagamento, cada uma responde 402 com o preço do corpo enviado; como pagar e buscar o resultado está em x402.
speech
POST /api/x402/v1/audio/speech · dinâmico, exato no 402
OpenAI-compatible text to speech: send input and get the audio file back (mp3 by default). Voices from 11 engines; the price follows the length of the text, quoted in the 402.
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
input | string | sim | The text to speak, up to 4096 characters. |
model | string | Voice engine (default tts-elevenlabs-turbo-v2-5): tts-elevenlabs-turbo-v2-5, tts-minimax-speech-02-hd, tts-gemini-3-1-flash, tts-kokoro, tts-xai-v1, tts-inworld-1-5-max, tts-chatterbox-hd, tts-orpheus, tts-gradium-v1, tts-qwen3-1-7b, tts-qwen3-0-6b. | |
voice | string | Voice name of the engine. | |
response_format | string | mp3, opus, aac, flac, wav, pcm (default mp3). | |
speed | number | 0.25 to 4. |
{
"input": "Welcome to the house. Pay per call, no account needed."
}- 200: OpenAI-compatible text to speech: send
inputand get the audio file back (mp3 by default). Voices from 11 engines; the price follows the length of the text, quoted in the 402. - 402: Payment Required
sound-effects
POST /api/x402/v1/audio/sound-effects · US$ 0,03, fixo
A sound effect from a description (ElevenLabs Sound Effects v2), up to 10 s. Returns the file URL on the house CDN.
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
prompt | string | sim | The sound you want, up to 1000 characters. |
seconds | integer | 1 to 10 (default: the engine decides). | |
loop | boolean | Make it loop seamlessly. |
{
"prompt": "heavy wooden door creaking open in a stone castle hall",
"seconds": 4
}- 200: A sound effect from a description (ElevenLabs Sound Effects v2), up to 10 s. Returns the file URL on the house CDN.
- 402: Payment Required
music
POST /api/x402/v1/audio/music · US$ 0,09, fixo
A full music track from a description of style, mood and instruments, with optional lyrics (Google Lyria 3 Pro). Returns the file URL on the house CDN.
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
prompt | string | sim | Style, mood, tempo and instruments, up to 5000 characters. |
lyrics | string | Lyrics to sing, up to 4096 characters. Leave out for the engine to decide. |
{
"prompt": "warm lo-fi hip hop, dusty vinyl drums, mellow Rhodes chords, rain outside, 80 bpm"
}- 200: A full music track from a description of style, mood and instruments, with optional lyrics (Google Lyria 3 Pro). Returns the file URL on the house CDN.
- 402: Payment Required
