https://api.apyhub.com/generate/image-thumbnail/file
POST
multipart/form-data
Attribute | Type | Mandatory | Description |
---|---|---|---|
output | String | No | The name of the output file, defaults to test-sample.png . |
Attribute | Type | Mandatory | Description |
---|---|---|---|
video | File | Yes | The source video file in any of supported formats (mp4 ,webm ,flv ,avi ,mkv ,mov ,3gp ). |
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 thumbnail at 90th second then this will be as time: 90 and it defaults to 1 (generate thumbnail at 1st second of the video). |
size | String | No | The dimensions of the generated image file, should be in WidthxHeight format and it defaults to original_size . |
Status Code | Description |
---|---|
200 | The request was successful. |
400 | Invalid input - the video file is corrupt or the supported inputs are not provided. |
401 | Required authentication information is either missing or not valid for the resource. |
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.