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

# POST /v1/audio/translations

> Available at the instance root or under a provider/namespace prefix. Shared paths select the wire dialect from client headers; without dialect evidence, the first listed route wins.



## OpenAPI

````yaml /generated/openapi.json post /v1/audio/translations
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /v1/audio/translations:
    post:
      tags:
        - Forwarding
      summary: POST /v1/audio/translations
      description: >-
        Available at the instance root or under a provider/namespace prefix.
        Shared paths select the wire dialect from client headers; without
        dialect evidence, the first listed route wins.
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Input_CreateTranslationMultipartForm'
        required: true
      responses:
        2XX:
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Output_TranslationJson'
                  - $ref: '#/components/schemas/Output_TranslationVerbose'
            application/x-subrip:
              schema:
                type: string
            text/plain:
              schema:
                type: string
            text/vtt:
              schema:
                type: string
          description: Successful protocol response
        default:
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Output_Envelope'
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_ErrorDetail'
                    required:
                      - error
                    type: object
                  - allOf:
                      - $ref: '#/components/schemas/Output_ErrorEvent'
                      - properties:
                          type:
                            const: error
                        required:
                          - type
                        type: object
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_GenerateContentError'
                    required:
                      - error
                    type: object
            text/plain:
              schema:
                type: string
          description: Gateway or upstream error
components:
  schemas:
    Input_CreateTranslationMultipartForm:
      properties:
        file:
          $ref: '#/components/schemas/Input_BinaryPart'
        model:
          type: string
        prompt:
          type:
            - string
            - 'null'
        response_format:
          anyOf:
            - $ref: '#/components/schemas/Input_TranslationResponseFormat'
            - type: 'null'
        temperature:
          type:
            - number
            - 'null'
      required:
        - file
        - model
      type: object
    Output_TranslationJson:
      additionalProperties: true
      properties:
        text:
          type: string
      required:
        - text
      type: object
    Output_TranslationVerbose:
      additionalProperties: true
      properties:
        duration:
          type: number
        language:
          type: string
        segments:
          items:
            $ref: '#/components/schemas/Output_TranscriptionSegment'
          type:
            - array
            - 'null'
        text:
          type: string
      required:
        - duration
        - language
        - text
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
      required:
        - message
      type: object
    Output_ErrorEvent:
      additionalProperties: true
      properties:
        error:
          $ref: '#/components/schemas/Output_StreamError'
        request_id:
          type:
            - string
            - 'null'
      required:
        - error
      type: object
    Output_GenerateContentError:
      additionalProperties: true
      properties:
        code:
          format: int64
          type: integer
        details:
          items: true
          type:
            - array
            - 'null'
        message:
          type: string
        status:
          type:
            - string
            - 'null'
      required:
        - code
        - message
      type: object
    Input_BinaryPart:
      format: binary
      type: string
    Input_TranslationResponseFormat:
      enum:
        - json
        - text
        - srt
        - verbose_json
        - vtt
      type: string
    Output_TranscriptionSegment:
      additionalProperties: true
      properties:
        avg_logprob:
          type: number
        compression_ratio:
          type: number
        end:
          type: number
        id:
          format: int64
          type: integer
        no_speech_prob:
          type: number
        seek:
          format: int64
          type: integer
        start:
          type: number
        temperature:
          type: number
        text:
          type: string
        tokens:
          items:
            format: int64
            type: integer
          type: array
      required:
        - id
        - avg_logprob
        - compression_ratio
        - end
        - no_speech_prob
        - seek
        - start
        - temperature
        - text
        - tokens
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Output_StreamError:
      additionalProperties: true
      properties:
        message:
          type: string
        type:
          $ref: '#/components/schemas/Output_StreamErrorType'
      required:
        - type
        - message
      type: object
    Output_StreamErrorType:
      enum:
        - api_error
        - authentication_error
        - billing_error
        - invalid_request_error
        - not_found_error
        - overloaded_error
        - permission_error
        - rate_limit_error
        - timeout_error
        - conflict_error
        - request_too_large
      type: string
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey

````

## Related topics

- [Routing & Endpoints](https://gproxy.leenhawk.com/reference/routing-table.md)
- [POST /v1/audio/speech](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1audiospeech.md)
- [POST /v1/audio/transcriptions](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1audiotranscriptions.md)
- [POST /v1/audio/voices](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1audiovoices.md)
- [POST /v1/live](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1live.md)


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