> ## Documentation Index
> Fetch the complete documentation index at: https://evo-0136956d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 音频转录

> 将音频转换为文本



## OpenAPI

````yaml /zh/openapi/relay-api.mintlify.json post /v1/audio/transcriptions
openapi: 3.0.1
info:
  title: AI 调用接口
  description: 统一的 AI 模型调用接口，支持 OpenAI、Claude、Gemini、Kling、即梦等多种格式
  version: 1.0.0
servers:
  - url: https://api.nusabase.com
    description: API Base URL
security:
  - BearerAuth: []
tags:
  - name: Models
    description: 获取可用模型列表（支持 OpenAI / Gemini / Anthropic 格式）
  - name: Chat
    description: 对话补全与文本补全（OpenAI Chat Completions 兼容）
  - name: Responses
    description: OpenAI Responses API（支持工具调用、推理、多轮对话）
  - name: Realtime
    description: WebSocket 实时对话（OpenAI Realtime API 兼容）
  - name: Claude
    description: Anthropic Claude Messages API 兼容格式
  - name: Gemini
    description: Google Gemini API 兼容格式
  - name: Images
    description: 图片生成与编辑
  - name: Video
    description: 视频生成（OpenAI Sora 兼容格式 + 通用格式）
  - name: Video / Kling
    description: Kling 视频生成（文生视频 / 图生视频）
  - name: Video / Jimeng
    description: 即梦（Jimeng）视频生成
  - name: Audio
    description: 语音转文字 / 语音翻译 / 文字转语音
  - name: Embeddings
    description: 文本向量嵌入
  - name: Rerank
    description: 文档相关性重排序
  - name: Moderations
    description: 内容安全审核
  - name: Not Implemented
    description: 暂未实现的接口（保留兼容性占位）
paths:
  /v1/audio/transcriptions:
    post:
      tags:
        - Audio
      summary: 音频转录
      description: 将音频转换为文本
      operationId: createTranscription
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: 音频文件
                  example: ''
                model:
                  type: string
                  example: whisper-1
                language:
                  type: string
                  description: ISO-639-1 语言代码
                  example: ''
                prompt:
                  type: string
                  example: ''
                response_format:
                  type: string
                  enum:
                    - json
                    - text
                    - srt
                    - verbose_json
                    - vtt
                  default: json
                  example: json
                temperature:
                  type: number
                  example: 0
                timestamp_granularities:
                  type: array
                  items:
                    type: string
                    enum:
                      - word
                      - segment
                  example: ''
              required:
                - file
                - model
        required: true
      responses:
        '200':
          description: 成功转录
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioTranscriptionResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    AudioTranscriptionResponse:
      type: object
      properties:
        text:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        使用 Bearer Token 认证。
        格式: `Authorization: Bearer sk-xxxxxx`

````

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