Skip to main content
DELETE
/
ms
/
v1
/
tasks
/
{task_id}
Cancel task (only while not terminal)
curl --request DELETE \
  --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>"
      }
    ]
  }
}
Cancel a task while it is still non-terminal. Tasks that have already succeeded, failed, timeout, or canceled cannot be canceled again.

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.