04 / Endpoints
Renders
Request a re-render with the edited captions
API key requiredPOST/api/enterprise/v1/generated-videos/{videoId}/render
Re-renders the mp4 from the video's current captions and style.
- Typical flow: replace the whole word list with
PUT /captions, then call this endpoint. - Free of charge.
- The resolution (720p/1080p) of the first generation is inherited automatically.
- This is asynchronous; poll
GET /renders/latestfor the result. It usually takes 30 seconds to a minute. - If the source video (YouTube and the like) has expired:
RENDER_PRECONDITION_FAILED(412).
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| videoId | string | Required | Generated short to re-renderExample: gsv_001 |
Request body
This endpoint takes no request body.
Responses
| Status | Meaning |
|---|---|
| 202 | Queued for renderingRequestRenderResponse |
| 401 | Authentication failedErrorResponse |
| 404 | Video not foundErrorResponse |
| 412 | Re-render precondition failed (for example, the source video expired)ErrorResponse |
| 502 | The call to the Generation Server failedErrorResponse |
Responses 202RequestRenderResponse
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | string | Required | |
| status | enum | Required | Allowed: pending |
| video | object | Required | |
| id | string | Required | |
| render | object | Required | |
| id | string | Required | render job ID (= VideoGenerationJob.sharedId) |
| resolution | enum | Required | Resolution inherited from the first generationAllowed: RES_720p · RES_1080p |
| requestedAt | string | Required | Requested at (ISO 8601) |
Response example
{
"requestId": "string",
"status": "pending",
"video": {
"id": "string"
},
"render": {
"id": "string",
"resolution": "RES_720p"
},
"requestedAt": "string"
}Poll the latest render result
API key requiredGET/api/enterprise/v1/generated-videos/{videoId}/renders/latest
Reads the single most recent RenderedVideoOutput of a video.
status: "none": the video has no render output yet (the first generation has not finished, and so on)status: "PENDING" | "RENDERING": in progress, url is nullstatus: "COMPLETED": finished,render.urlholds the mp4 download URLstatus: "FAILED": failed
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| videoId | string | Required | Generated short video IDExample: gsv_001 |
Request body
This endpoint takes no request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Retrieved (none / PENDING / RENDERING / COMPLETED / FAILED)LatestRenderResponse |
| 401 | Authentication failedErrorResponse |
| 404 | Video not foundErrorResponse |
Responses 200LatestRenderResponse
No body.



