PricingBlogEnterpriseAPI
Log inStart free
Log inStart free

04 / Endpoints

Renders

Request a re-render with the edited captions

API key required
POST/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/latest for 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

FieldTypeRequiredDescription
videoIdstringRequiredGenerated short to re-renderExample: gsv_001

Request body

This endpoint takes no request body.

Responses

StatusMeaning
202Queued for renderingRequestRenderResponse
401Authentication failedErrorResponse
404Video not foundErrorResponse
412Re-render precondition failed (for example, the source video expired)ErrorResponse
502The call to the Generation Server failedErrorResponse

Responses 202RequestRenderResponse

FieldTypeRequiredDescription
requestIdstringRequired
statusenumRequiredAllowed: pending
videoobjectRequired
idstringRequired
renderobjectRequired
idstringRequiredrender job ID (= VideoGenerationJob.sharedId)
resolutionenumRequiredResolution inherited from the first generationAllowed: RES_720p · RES_1080p
requestedAtstringRequiredRequested 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 required
GET/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 null
  • status: "COMPLETED" : finished, render.url holds the mp4 download URL
  • status: "FAILED" : failed

Path parameters

FieldTypeRequiredDescription
videoIdstringRequiredGenerated short video IDExample: gsv_001

Request body

This endpoint takes no request body.

Responses

StatusMeaning
200Retrieved (none / PENDING / RENDERING / COMPLETED / FAILED)LatestRenderResponse
401Authentication failedErrorResponse
404Video not foundErrorResponse

Responses 200LatestRenderResponse

No body.