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

# Poll Task Result

> Poll this endpoint after submitting a task. Keep polling until `ready=true`.

| Field | Description |
|---|---|
| `task_id` | Task identifier |
| `status` | `pending` \| `processing` \| `completed` \| `failed` \| `timeout` \| `cancelled` |
| `ready` | `true` once the task is finished — check `data` for the result |
| `data` | Model output (present only when `status=completed`) |
| `elapsed_ms` | Total processing time in milliseconds |
| `error_code` | Error code (present only on failure) |
| `error_message` | Human-readable error (present only on failure) |



## OpenAPI

````yaml GET /hub/v1/tasks/{task_id}
openapi: 3.0.0
info:
  title: Hub - Premium AI Gateway (Image / Video / Audio / Transcribe)
  description: >-
    Hub is a unified AI Gateway offering **flagship-quality, production-stable,
    and cheaper-than-official** access to the world's best AI models across
    image, video, audio (music) and transcription capabilities.


    **Why Hub?**

    - 🏆 **Flagship quality** — only official flagship model weights (Veo 3.1,
    Nano Banana Pro, GPT Image 2, Kling v3 Pro, WAN 2.7, Seedance 2.0,
    ElevenLabs Music). No knock-offs, no distillations — same outputs as going
    direct.

    - 🛡️ **Production stable** — multi-region routing, automatic failover,
    transparent retries on transient errors, queue-aware load balancing. Built
    for 24/7 production traffic.

    - 💰 **Cheaper than official** — pay only on `status=completed` (failed
    tasks are free), billed in unified credits at a meaningful discount versus
    going direct to the model provider. No per-provider minimums, no monthly
    subscriptions.


    Each endpoint accepts a `model` + `input` payload — switch models without
    changing the endpoint shape.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: hub
    description: >-
      Model discovery — list and inspect schemas/examples for every available
      model across all capabilities.
  - name: Image
    description: >-
      Image generation & editing models (Nano Banana, GPT Image 2 and edit
      variants).
  - name: Video
    description: >-
      Video generation models — text-to-video, image-to-video, multi-reference,
      first-last frame and edit (Veo 3.1, Kling v3, WAN 2.7, Seedance 2.0).
  - name: Audio
    description: >-
      Audio capabilities — music generation (ElevenLabs Music) and audio/video
      transcription.
  - name: Tasks
    description: Poll the status / result of any submitted Hub task.
paths:
  /hub/v1/tasks/{task_id}:
    get:
      tags:
        - Tasks
      summary: Poll task result
      description: >-
        Poll this endpoint after submitting a task. Keep polling until
        `ready=true`.


        | Field | Description |

        |---|---|

        | `task_id` | Task identifier |

        | `status` | `pending` \| `processing` \| `completed` \| `failed` \|
        `timeout` \| `cancelled` |

        | `ready` | `true` once the task is finished — check `data` for the
        result |

        | `data` | Model output (present only when `status=completed`) |

        | `elapsed_ms` | Total processing time in milliseconds |

        | `error_code` | Error code (present only on failure) |

        | `error_message` | Human-readable error (present only on failure) |
      operationId: HubTasksPublicController_getResult
      parameters:
        - name: task_id
          required: true
          in: path
          description: Task ID returned by the submit endpoint
          schema:
            example: hub-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
            type: string
      responses:
        '200':
          description: ''
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http

````