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

# Get Task Status

> Get task status to the generated video or image.



## OpenAPI

````yaml GET /generation/{taskId}/status
openapi: 3.0.3
info:
  title: Pollo | AI Video Collection
  description: ✨RESTful API Document
  version: 1.0.0
servers:
  - url: https://pollo.ai/api/platform
security: []
externalDocs:
  url: https://pollo.ai/api/platform/api/openapi.json
paths:
  /generation/{taskId}/status:
    get:
      tags:
        - Generation
      summary: Query task generation status
      operationId: generation-queryGeneratingVideo
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  taskId:
                    type: string
                  credit:
                    type: number
                    description: >-
                      Credits charged at submission time. Decimal value is
                      returned with up to 2 fractional digits; falls back to the
                      integer credit field if creditDecimal is absent.
                  generations:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        createdDate:
                          type: string
                          format: date-time
                          nullable: true
                        updatedDate:
                          type: string
                          format: date-time
                          nullable: true
                        status:
                          type: string
                          enum:
                            - waiting
                            - succeed
                            - failed
                            - processing
                        failMsg:
                          type: string
                          nullable: true
                        url:
                          type: string
                          nullable: true
                          description: >-
                            All generated videos and images are stored for up to
                            14 days only; we cannot guarantee storage beyond
                            that period.
                        mediaType:
                          type: string
                          enum:
                            - image
                            - video
                            - text
                            - audio
                      required:
                        - id
                        - status
                        - failMsg
                        - url
                        - mediaType
                      additionalProperties: false
                required:
                  - taskId
                  - credit
                  - generations
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - ApiKeyAuth: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key to authorize requests

````