https://api.apyhub.com/job/generate/video-thumbnail/filePOSTmultipart/form-data| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| persistent | Boolean | No | Set to true to retain the converted video URL indefinitely. If false, the URL expires after 15 minutes, default false. |
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| video | File | Yes | The source video file in any of supported formats (mp4,webm,flv,avi,mkv,mov,3gp). |
| start_time | String | No | The time in seconds at which you want to generate the thumbnail. For example: if a video is 3 minutes long and you want to generate video thumbnail from 90th second then this will be as start_time: 90 and it defaults to 0 (generate video thumbnail from 0th second of the video). |
| duration | String | No | The thumbnail length. For example: you want to generate the video thumbnail for 4 seconds then it will be as duration: 4 and it defaults to 2 and max duration user can enter is 20(seconds). |
| size | String | No | The dimensions of the generated video file, should be in WidthxHeight format where Width and Height must be divisible by 2 and it defaults to original_size |
| Attribute | Type | Description |
|---|---|---|
| job_id | String | The ID of the Job associated with the input video file, which can be utilized by the "Check Status" endpoint to retrieve the video thumbnail. |
| Status Code | Description |
|---|---|
| 200 | The request was successful. |
| 401 | Required authentication information is either missing or not valid for the resource. |
| 400 | Invalid input - the provided files are corrupt or the supported inputs are not provided. |
| 500 | If any unexpected error occurs while processing the request. |
tokens or basic authentication mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".apy-token as the header parameter to pass the token.Authorization header to send the basic authentication credentials.