Modelos / Fala e música / Deepgram
Deepgram Aura-1 (text to speech) API
Deepgram Aura-1 (text to speech) API: $0.06 per 1,000 UTF-8 bytes, prepaid. A failed generation is not charged.
aura-1Fala e músicapor 1.000 bytes UTF-8
Preço · por 1.000 bytes UTF-8, USD
Obter uma chave| Configurações | UplinkSwitch |
|---|---|
| quaisquer configurações | $0.06 |
Cobrado quando a requisição é aceita, reembolsado integralmente se a geração falhar.
Quanto custa uma execução · USD, em tempo real
$0.06 por 1.000 bytes UTF-8, com qualquer configuração.
| Executar | A $0.06 por 1.000 bytes UTF-8 |
|---|---|
| 1.000 bytes UTF-8 | $0.06 |
| 10.000 bytes UTF-8 | $0.60 |
| 100.000 bytes UTF-8 | $6.00 |
Comparar · por 1.000 bytes UTF-8, em tempo real
Deepgram Aura-1 (text to speech) from $0.06 per 1,000 UTF-8 bytes; CosyVoice 2 (conversão de texto em fala) a partir de $0.0286; Fish Speech 1.5 (texto para fala) a partir de $0.0188.
Chame com · POST /v1/audio/speech ou POST /v1/generations
curl
curl https://api.uplinkswitch.com/v1/generations \
-H "Authorization: Bearer $UPLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "aura-1",
"input": {
"text": "Your order has shipped and arrives Thursday."
}
}'
# then poll until "status" is "succeeded":
curl https://api.uplinkswitch.com/v1/generations/gen_... -H "Authorization: Bearer $UPLINK_API_KEY"Python, requests
import os, time, requests
BASE = "https://api.uplinkswitch.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['UPLINK_API_KEY']}"}
payload = {
"model": "aura-1",
"input": {
"text": "Your order has shipped and arrives Thursday."
}
}
gen = requests.post(f"{BASE}/generations", headers=HEADERS, json=payload, timeout=30).json()
while gen["status"] not in ("succeeded", "failed"):
time.sleep(5)
gen = requests.get(f"{BASE}/generations/{gen['id']}", headers=HEADERS, timeout=30).json()
if gen["status"] == "succeeded":
url = gen["outputs"][0]["url"]
with open(url.rsplit("/", 1)[-1], "wb") as f:
f.write(requests.get(url, headers=HEADERS, timeout=120).content)A requisição é cobrada quando aceita e responde 202 com um id de geração. Consulte GET /v1/generations/{id} até que o status seja succeeded e, em seguida, baixe outputs[0].url; os arquivos ficam disponíveis para download por 30 dias, e uma geração com falha é reembolsada integralmente.
Configurações · na entrada
| Nome | Tipo | Valores | Padrão |
|---|---|---|---|
| texto obrigatório | string | — | — |
| voz | string | angus, asteria, arcas, orion, orpheus, athena, luna, zeus, perseus, helios, hera, stella | asteria |
| response_format | string | mp3 | mp3 |
Perguntas
A partir de $0.06 por 1.000 bytes UTF-8. O preço depende das configurações da tabela e é fixado quando a requisição é aceita.
Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. Send it as the bearer token to /v1/audio/speech with model aura-1; the same key calls every other model in the catalog.
Não. Você adiciona crédito e cada requisição é paga com ele. Não há taxa mensal nem valor mínimo por requisição.
O valor é reembolsado integralmente, automaticamente. Você paga apenas pelos arquivos que recebe.
Trinta dias, em uma URL em api.uplinkswitch.com. Baixe o que quiser manter.
Sim. A mesma chave chama todos os modelos de imagem, vídeo, fala e 3D, além de todos os modelos de chat do catálogo.