Speech-to-Text (STT)

POST/stt
Body
Voice.v1.SpeechToTextPayloadDTO (any of)
Response
Body
metadata*object
Request
const response = await fetch('/stt', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "model": "#g1_nova-2-general"
    }),
});
const data = await response.json();
Response
{
  "metadata": {
    "transaction_key": "text",
    "request_id": "text",
    "sha256": "text",
    "created": "2025-01-20T20:54:35.193Z",
    "duration": 0,
    "channels": 0,
    "models": [
      "text"
    ]
  }
}

Last updated