> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Traducciones

> Usa el SDK de TypeScript para llamar a /audio/translations.

**Método**: `client.generateTranslation()`.

### Ejemplo

```typescript theme={null}
const translated = await client.generateTranslation({
  model: "openai/gpt-4o-translate",
  file: "data:audio/mp3;base64,...",
});
```

### Parámetros principales

* `model` obligatorio: ID de un modelo compatible con traducciones.
* `file` obligatorio: Datos de audio que se van a traducir.
* `prompt`: Contexto opcional para orientar la traducción.
* `temperature` (0–2): Aleatoriedad del muestreo.
* `response_format`: `json`, `text`, `srt`, `verbose_json`, etc.

### Devuelve

`AudioTranscriptionResponse`

```json theme={null}
{
  "text": "Hello world"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.