Skip to main content
POST
/
audio
/
translations
Create translation
const form = new FormData();
form.append('model', '<string>');
form.append('audio_url', '<string>');
form.append('audio_b64', '<string>');
form.append('language', '<string>');
form.append('prompt', '<string>');
form.append('temperature', '1');
form.append('provider', '{
  "order": [
    "<string>"
  ],
  "only": [
    "<string>"
  ],
  "ignore": [
    "<string>"
  ],
  "include_alpha": true
}');

const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

options.body = form;

fetch('https://api.phaseo.app/v1/audio/translations', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "text": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

multipart/form-data
model
string
required
audio_url
string<uri>
audio_b64
string
language
string
prompt
string
temperature
number
Required range: 0 <= x <= 2
provider
object

Provider routing preferences for gateway selection.

Response

200 - application/json

Translation response

text
string
Last modified on February 11, 2026