Skip to main content
GET
/
ms
/
v1
/
tasks
/
{task_id}
Poll task result
curl --request GET \
  --url https://api.mountsea.ai/ms/v1/tasks/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "ms-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "endpoint": "google/veo-3.1/text-to-video",
  "model": "veo-3.1",
  "mode": "text-to-video",
  "created_at": "2023-11-07T05:31:56Z",
  "error": {
    "code": 500,
    "message": "task failed"
  },
  "started_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "elapsed_ms": 123,
  "output": {
    "videos": [
      {
        "url": "<string>"
      }
    ]
  }
}
Poll this endpoint until the task reaches a terminal status.
Recommended polling interval: 3-5 seconds. Read output.images, output.videos, or output.audio after status becomes succeeded.
Terminal statuses are succeeded, failed, timeout, and canceled. For failures, read the error object.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

task_id
string
required
Example:

"ms-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Response

200 - application/json

Standard Task object

mountsea standard Task object. Output shape depends on capability (image / video / audio).

task_id
string
required
Example:

"ms-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

endpoint
string
required
Example:

"google/veo-3.1/text-to-video"

model
string
required
Example:

"veo-3.1"

capability
enum<string>
required
Available options:
image,
video,
audio
mode
string
required
Example:

"text-to-video"

status
enum<string>
required
Available options:
queued,
processing,
succeeded,
failed,
timeout,
canceled
created_at
string<date-time>
required
error
object
started_at
string<date-time> | null
completed_at
string<date-time> | null
elapsed_ms
integer | null
output
object

Populated when status=succeeded; null while in-flight.