Create a restore
create_restoreStart a cloud restore of an old video (tape, DVD, film scan, old phone clip): denoise, deinterlace, rebuild detail and upscale. Returns an upload_url; PUT the video there, then call start_restore. With an agent key it is paid from the balance now (pay_with 'balance'), and refunded to the balance if it fails. With pay_with 'checkout' (or no key) the user pays through a checkout link that start_restore returns. Up to 2 GB; standard up to 30 minutes, enhanced and studio_max up to 6 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Needed for pay_with 'checkout': where the receipt goes. | ||
| width | No | Frame width in pixels. Bigger frames cost more; the GPU checks the real file. | |
| height | No | Frame height in pixels. | |
| quality | No | standard: denoise, deinterlace, 2x upscale. enhanced: adds AI detail reconstruction, for badly degraded footage. studio_max: enhanced, delivered at up to 4K. | enhanced |
| filename | Yes | The video's file name, e.g. wedding-1994.mp4. | |
| pay_with | No | Default: balance when this connection has a key, otherwise checkout. | |
| size_bytes | No | File size in bytes, up to 2 GB. | |
| content_type | Yes | The video's MIME type, e.g. video/mp4. | |
| duration_seconds | Yes | Length in seconds. The GPU checks it; a file much longer than declared is refused and refunded. |