Endpoints
Retrieve a job
Every generation and face swap is a job. Poll it until it finishes.
GET/v1/jobs/{id}
Jobs are visible only to keys of the account that created them; any other id returns 404 not_found.
curl https://api.goth.video/v1/jobs/job_5f0e2c1a-8b7d-4e43-9a51-2f6c0d9b1e77 \
-H "Authorization: Bearer $GOTH_API_KEY"The job object
{
"id": "job_5f0e2c1a-8b7d-4e43-9a51-2f6c0d9b1e77",
"object": "job",
"type": "video.generation", // video.generation | faceswap
"model": "goth-1",
"status": "succeeded",
"created_at": "2026-12-01T12:00:00.000Z",
"completed_at": "2026-12-01T12:02:41.000Z",
"input": {
"mode": "text-to-video",
"prompt": "Candlelit bedroom, two adults, slow push-in, quiet breathing, rain outside",
"duration": 10,
"resolution": "768p",
"aspect_ratio": "16:9",
"prompt_expansion": true
},
"credits": 96,
"refunded": false,
"output": {
"url": "https://api.goth.video/v/…/output.mp4",
"content_type": "video/mp4",
"duration": 10,
"resolution": "768p"
},
"error": null
}Statuses
| Status | Meaning |
|---|---|
| queued | Accepted and waiting for capacity. |
| processing | Rendering. Most clips take one to five minutes. |
| succeeded | Finished. output.url holds the MP4. |
| failed | Did not finish. See error.message. Failed jobs are refunded in full (refunded: true). Jobs still running after 45 minutes are failed and refunded. |
Poll no more than once every few seconds per job; polling counts toward your per-minute request limit.