# Jobs and results

Submit jobs, monitor progress, and retrieve completed files.

## Job request fields

`POST /v1/jobs` takes a JSON body. Only `text` is required.

| Field | Values | Default | Meaning |
|---|---|---|---|
| `text` | 1–4096 characters | — | English text to sign. Long text is signed sentence by sentence into one video. |
| `sign_language` | `aslue` | `aslue` | American Sign Language. |
| `avatar` | `0`, `1`, `2`, `3` | `1` | Avatar 0 and 1 are women, 2 and 3 are men. |
| `resolution` | `960x540`, `1280x720`, `1920x1080` | `1280x720` | Video size. |
| `fps` | `24`, `30`, `60` | `30` | Frame rate. |
| `playback_speed` | `"0.5"`, `"0.75"`, `"1"`, `"1.25"`, `"1.5"`, `"2"` | `"1"` | Signing speed (a string). |
| `subtitles` | `true`, `false` | `true` | Burn the English caption into the video. |
| `background_color` | `#RRGGBB` | `#808080` | Background color. |
| `quality` | `fast` | `fast` | Rendering preset. |
| `max_duration_seconds` | 1–600 | derived from text | Cap on the delivered length (see Billing). |

Send an `Idempotency-Key` header (1–128 ASCII letters, numbers, or `_ . : -`) with every submission.

## Follow a job through delivery

New jobs are `queued`, then `running`. `succeeded`, `failed`, and `cancelled` are final states. Read the latest state by ID or subscribe to status events.

```
POST /v1/jobs
GET  /v1/jobs
GET  /v1/jobs/{job_id}
GET  /v1/jobs/{job_id}/events
GET  /v1/jobs/{job_id}/stream
POST /v1/jobs/{job_id}/cancel
```

A job looks like this:

```json
{
  "id": "d23be352fef14576ac6f22dc3f5fe1cb",
  "status": "succeeded",
  "reserved_ms": 0,
  "billed_ms": 3567,
  "error_code": null,
  "created_at": 1794853640.1,
  "completed_at": 1794853662.4,
  "artifacts": [
    {"id": "...", "kind": "mp4", "content_type": "video/mp4", "sha256": "...", "size_bytes": 1265035, "duration_ms": 3567, "expires_at": 1797445662.4}
  ],
  "settings": {"avatar": 1, "sign_language": "aslue", "resolution": "1280x720", "fps": 30, "playback_speed": "1", "subtitles": true, "background_color": "#808080", "quality": "fast", "max_duration_seconds": null}
}
```

`GET /v1/jobs?limit=20&status=succeeded` lists recent jobs, newest first; pass `before=<job_id>` (the `next_cursor`) for the next page.

Keep the same `Idempotency-Key` when retrying the same payload. Reusing a key for different input returns `409 idempotency_conflict`.

When replay is enabled for your account, `POST /v1/jobs/{source_job_id}/replay` with the same settings reuses a completed job's saved result.

## Use the completed output

Fetch a signed URL from `GET /v1/artifacts/{artifact_id}` (add `?download=true` for a download with a file name). Request a new URL when a link expires. If the artifact itself has expired (`410 artifact_expired`), generate a new video. Artifacts are kept for 30 days.

You can also play a job while it renders, from its first frames. Wait for `succeeded` before treating the video as delivered. See [Live playback](https://signapi.fingerdance.ai/developers/streaming).

Job history in the console: https://signapi.fingerdance.ai/account/requests
