Skip to article
Documentation

Search documentation

Search stays in this browser. Queries are not sent or saved. Do not paste credentials.

Loading the public search index…

Tab or arrow keys to navigate · Enter to open · Esc to close
Browse documentation

Complete video upload

Source-generated POST /video-uploads/{upload_id}/complete reference: authentication, fields, responses, errors, and operational safeguards.

Public betaAPI v1 · 1.5.0Last verified
On this page

Operation

POST /video-uploads/{upload_id}/complete

operationId: finish_video_upload_v1_video_uploads__upload_id__complete_post

Validate uploaded source metadata and return a reusable video file_id. Repeat completion returns the same file. No depth processing starts; select a supported range in input.reference_video when generating. The source limit is 30 seconds; selected clips are 2–5 seconds, or less for the model.

Authentication and side effects

Use a server-side Bearer API key. Required scope: animations:write

This operation does not start paid generation. Other state changes are described above.

Parameters

Parameter Location Type Required Constraints / default Meaning
upload_id path string Yes format: uuid Owned public resource UUID; task, asset, and file IDs are not interchangeable.

Responses

HTTP Body Meaning
200 VideoFileResponse Successful public response. Example values are illustrative.
400 APIErrorEnvelope Invalid input; correct the request before retrying.
401 APIErrorEnvelope Missing, expired, or revoked API key.
403 APIErrorEnvelope Account eligibility, account status, or key scope does not allow this operation.
404 APIErrorEnvelope Resource is unavailable, not owned, or its signature is invalid/expired.
409 APIErrorEnvelope Idempotency conflict; only IDEMPOTENCY_IN_PROGRESS is retryable with the original request.
410 APIErrorEnvelope Upload session expired; prepare a new upload.
413 APIErrorEnvelope Request or decoded image exceeds the configured limit.
415 APIErrorEnvelope Use supported image media types.
422 APIErrorEnvelope Video metadata or size is invalid.
429 APIErrorEnvelope Account-wide rate or queue limit; wait for Retry-After.
500 APIErrorEnvelope Internal failure; preserve the task/key and retry only when marked retryable.
503 APIErrorEnvelope Service/provider unavailable; retry only when error.retryable is true.

Response headers

HTTP Header Type Meaning
429 Retry-After integer Suggested wait in seconds; respect the server value and an overall deadline.
503 Retry-After integer Suggested wait in seconds; respect the server value and an overall deadline.

Response example

json
{
  "byte_size": 1024,
  "duration_seconds": 5,
  "file_id": "00000000-0000-4000-8000-000000000001",
  "height": 768,
  "mime_type": "video/mp4",
  "object": "file",
  "sha256": "0000000000000000000000000000000000000000000000000000000000000000",
  "width": 768
}

Polling and downloads · Errors and safe retries

Was this page helpful?

No search queries, code, or free text are collected. This switch controls documentation interactions only; general site analytics follow the privacy policy. Privacy policy

Need a hand? Contact support