Calculate a credit for SR task
- Request a calculation of credit for SR(super-resolution).
task request#
bashcurl -X POST \"https://develop.kokoon.cloud/kokoon/api/sr/v3/credit/calc" \-H "Content-Type:application/json" \-H 'Authorization:eyJraWQiOiJPMGs5...eyJzdWIiOiIzN2U3NzYxM' \-d '{"task_type": "SR","category" : "person","use_sr" : true,"input_quality" : "medium","option": {"face_enhance": false,"denoise": false,"deinterlace": false,"add_noise": false},"vid": "8eb18100-3aa0-11ee-a8b4-73df6b5af037","width": 1920,"height": 1080,"start_pos": 10123,"duration": 1123}'
request body field#
field | mandatory | description |
---|---|---|
task_type | required |
|
category | required | select input(original) file's video-type
|
use_sr | required |
|
input_quality | required | select input(original) file's quality
|
option | required | select a AI-option with true or false.
|
vid | required | original files' unique video id. |
width | required | output(SR) width |
height | required | output(SR) height |
start_pos | optional(default : 0) | input(original) file's start-position to convert SR.(millisecond)
|
duration | optional(default : 0) | duration from start-positon to convert SR.(millisecond)
|
codec | optional(default : h264) | output(SR) codec |
format | optional(default : mp4) | output(SR) format |
use_trim_orig | optional(default : false) | if true, a trimmed range(with start_pos and duration) of original file will be created as a new original file.
|
response#
json{"credit": 5}
response body field#
field | type | description |
---|---|---|
credit | string | a needed credit for SR task. |
error response#
- invalid body format.
json{"message": "must have required property 'use_sr'"}