---
title: "Get a generation job"
method: GET
path: "/ai/jobs/{id}"
tags: ["Generation"]
---

# Get a generation job

`GET /ai/jobs/{id}`

## Request

- Base URL: `https://api.vidmoat.com/v1`
- URL: `https://api.vidmoat.com/v1/ai/jobs/{id}`
- Auth: HTTP bearer

Poll a video generation job until it is COMPLETED or FAILED. Images, speech and stickers answer synchronously and have no job. A job that fails is refunded.

## Path parameters

- `id` string, required

## Response `200`

Get a generation job

- object
  - `job` object: The job.
    - `id` string: Job id.
    - `status` 'PROCESSING' | 'COMPLETED' | 'FAILED': Where it is.
    - `kind` string: `video`.
    - `outputUrl` string, nullable: The clip, once `COMPLETED`.
    - `error` string, nullable: Why it failed.
    - `durationSec` integer: Seconds generated, once finished.
    - `credits` object: Once finished: `{ charged, refunded }`.
    - `warning` string: Present when the provider could not be checked this time; poll again.
  - `hint` string: Present on completion.

## Other responses

- `404`: `not_found`: No such video job on your projects.

---

[API](https://skmtc.dev/vidmoat/apis/vidmoat-api.md) · [All operations](https://skmtc.dev/vidmoat/apis/vidmoat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vidmoat/apis/vidmoat-api/revisions/23e24e25c756?raw)
