# 创建翻译

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/audio/translations:
    post:
      summary: 创建翻译
      deprecated: false
      description: |+
        将音频翻译成英文。

      tags:
        - 模型接口/音频接口（Audio）
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: multipart/form-data
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  description: ' 要翻译的音频文件，支持以下格式：mp3，mp4，mpeg，mpga，m4a，wav 或 webm。'
                  type: string
                  format: binary
                model:
                  description: (要使用的模型的 ID，目前仅有 whisper-1 可用。
                  example: whisper-1
                  type: string
                prompt:
                  description: 一个可选的文本，用于指导模型的风格或继续先前的音频片段。 prompt 应为英文。
                  example: ''
                  type: string
                response_format:
                  description: 转录输出的格式，支持以下选项之一：json、text、srt、verbose_json 或 vtt。
                  example: json
                  type: string
                temperature:
                  description: >-
                    采样温度，介于 0 和 1 之间。 较高的值（如 0.8）将使输出更随机，而较低的值（如
                    0.2）将使其更加专注和确定性。 如果设置为 0，则模型将使用对数概率自动增加温度，直到达到一定的阈值。
                  example: 0
                  type: number
              required:
                - file
                - model
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  text:
                    type: string
                required:
                  - text
                x-apifox-orders:
                  - text
              example:
                text: >-
                  Hello, my name is Wolfgang and I come from Germany. Where are
                  you heading today?
          headers: {}
          x-apifox-name: OK
      security: []
      x-apifox-folder: 模型接口/音频接口（Audio）
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2946232/apis/api-92222083-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.chatanywhere.tech
    description: 正式环境
security: []

```
