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

# Transcribe Audio

> One-shot transcription of an uploaded audio blob via Gemini.

Used by the chat textarea mic button (dictation). The frontend records
a chunk via MediaRecorder and POSTs it here; we return plain text.



## OpenAPI

````yaml /api-reference/openapi.json post /api/audio/transcribe
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/audio/transcribe:
    post:
      summary: Transcribe Audio
      description: |-
        One-shot transcription of an uploaded audio blob via Gemini.

        Used by the chat textarea mic button (dictation). The frontend records
        a chunk via MediaRecorder and POSTs it here; we return plain text.
      operationId: transcribe_audio_api_audio_transcribe_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_transcribe_audio_api_audio_transcribe_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Transcribe Audio Api Audio Transcribe Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_transcribe_audio_api_audio_transcribe_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: Body_transcribe_audio_api_audio_transcribe_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

## Related topics

- [Load Artifact](/api-reference/load-artifact.md)
- [Load Artifact Version](/api-reference/load-artifact-version.md)
- [Save Artifact](/api-reference/save-artifact.md)
- [Create Session](/api-reference/create-session.md)
- [Get Session](/api-reference/get-session.md)
