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

# Query audio task

> Retrieve an audio task belonging to the authenticated account. Poll until `status` is `Success` or `Failed`.

On success, `output_url` is a signed download URL valid for 30 minutes. Query again after it expires. The returned `prompt` may be truncated to 2,000 characters; generation uses the full submitted text. Final charges use provider-reported character-cost usage.




## OpenAPI

````yaml /openapi/audio/_query.yaml get /query/audio-generation
openapi: 3.0.3
info:
  title: Query audio generation task
  version: 1.0.0
  description: Retrieve the status and result of an audio generation task.
servers:
  - url: https://api.linkmodel.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: audio
paths:
  /query/audio-generation:
    get:
      tags:
        - audio
      summary: Query audio task
      description: >
        Retrieve an audio task belonging to the authenticated account. Poll
        until `status` is `Success` or `Failed`.


        On success, `output_url` is a signed download URL valid for 30 minutes.
        Query again after it expires. The returned `prompt` may be truncated to
        2,000 characters; generation uses the full submitted text. Final charges
        use provider-reported character-cost usage.
      operationId: query-audio-generation
      parameters:
        - name: task_id
          in: query
          required: true
          description: Task ID returned by audio task creation.
          schema:
            type: string
            maxLength: 50
      responses:
        '200':
          description: Current audio task state.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  msg:
                    type: string
                  request_id:
                    type: string
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                      model_name:
                        type: string
                        example: eleven_v4
                      prompt:
                        type: string
                        description: Returned text can be truncated to 2,000 characters.
                      status:
                        type: string
                        enum:
                          - Pending
                          - Processing
                          - Success
                          - Failed
                      output_url:
                        type: string
                        format: uri
                        description: Signed audio URL, available on success for 30 minutes.
                      msg:
                        type: string
                        description: Task detail or failure message.
                      usage:
                        type: object
                        additionalProperties:
                          type: string
                        description: >-
                          Provider usage when available; character-cost units
                          are not token counts.
        '400':
          description: Missing or invalid task ID.
        '401':
          description: Missing or invalid API key.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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