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/v4/credit/calc" \-H "Content-Type:application/json" \-H 'Authorization:eyJraWQiOiJPMGs5...eyJzdWIiOiIzN2U3NzYxM' \-d '{"task_type": "SR","ai_model_name" : "bluewhale","use_film_grain" : true,"use_color_grading" : true,"vid": "8eb18100-3aa0-11ee-a8b4-73df6b5af037","width": 1920,"height": 1080,"start_pos": 10123,"duration": 1123}'
request body field#
field | mandatory | description |
---|---|---|
task_type | required |
|
ai_model_name | required | select a ai_model_name
|
use_film_grain | required |
|
use_color_grading | required |
|
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'"}