- Before using the API, make sure you have obtained the API key. Refer to the link below for instructions on how to obtain it. API For API Key Settings
- All generated videos will be automatically deleted after 30 days. Please make sure to save the videos you need to your local storage in a timely manner.
Parameter | Description |
---|
Authorization | Your API Key used for request authorization. |
--request POST https://developer.remaker.ai/api/remaker/v1/ai-video-enhancer/create-job
Parameter | Type | Required | Description |
---|
target_video_url | str | True | The url of target video. Required. And the width and height of the video must be lower than . Otherwise there will be a error of PARAM ERROR. |
import requests
url = 'https://developer.remaker.ai/api/remaker/v1/ai-video-enhancer/create-job'
headers = {
'accept': 'application/json',
'Authorization': 'your token',
}
payload = {
'target_video_url': 'https://xxxxxx/xxx/xxxxxx.mp4'
}
response = requests.post(url, headers=headers, data=payload)
print(response.json()) # Print the response content
--request GET https://developer.remaker.ai/api/remaker/v1/ai-video-enhancer/get-job/{job_id}
Parameter | Description |
---|
job_id | job_id returned by create task |
import requests
url = 'https://developer.remaker.ai/api/remaker/v1/ai-video-enhancer/get-job/7fd42c92-8f4c-497a-8eaa-3e5f6e315a69'
headers = {
'accept': 'application/json',
'Authorization': 'your token',
}
response = requests.get(url, headers=headers)
print(response.json()) # Print the response content
{
"code": 100000,
"result": {
"job_id": "7fd42c92-8f4c-497a-8eaa-3e5f6e315a69",
"input_content": {
"video_path": "https://xxxxxx/xxx/xxxxxx.mp4",
"model": "realesr-animevideov3",
"resolution": "4k"
}
},
"message": {
"en": "Request Success."
}
}
{
"code": 100000,
"result": {
"input": {
"video_path": "https://xxxxxx/xxx/xxxxxx.mp4",
"model": "realesr-animevideov3",
"resolution": "4k"
},
"output": [
"https://image.remaker.ai/datarm30/video-enhancer/generate/2024-09-13/tmp1gmqe74utrump_spline_out.mp4"
],
"thumbnail_path": "https://image.remaker.ai/datarm30/video-enhancer/output/2024-09-13/c88e44e1-cc2e-4758-a02f-c484836e74c3.png",
"progress": 100
},
"message": {
"en": "Request Success."
}
}