Skip to main content
GET
/
api
/
open
/
v3
/
content
/
video
/
infobymodelid
Get Video Info Result
curl --request GET \
  --url https://openapi.akool.com/api/open/v3/content/video/infobymodelid \
  --header 'x-api-key: <api-key>'
import requests

url = "https://openapi.akool.com/api/open/v3/content/video/infobymodelid"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://openapi.akool.com/api/open/v3/content/video/infobymodelid', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.akool.com/api/open/v3/content/video/infobymodelid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://openapi.akool.com/api/open/v3/content/video/infobymodelid"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://openapi.akool.com/api/open/v3/content/video/infobymodelid")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://openapi.akool.com/api/open/v3/content/video/infobymodelid")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "code": 1000,
  "msg": "OK",
  "data": {
    "faceswap_quality": 2,
    "storage_loc": 1,
    "_id": "64dd92c1f0b6684651e90e09",
    "create_time": 1692242625334,
    "uid": 378337,
    "type": 2,
    "from": 1,
    "video_id": "0acfed62e24f4cfd8801c9e846347b1d",
    "video_lock_duration": 7.91,
    "deduction_lock_duration": 10,
    "video_status": 2,
    "external_video": "",
    "video": "",
    "audio_splits": {
      "original_srt_url": "https://d3323c6w59hl44.cloudfront.net/algorithm/video_translate/260401/default/xd4mtd1sk8h0.srt",
      "translated_srt_url": "https://d3323c6w59hl44.cloudfront.net/algorithm/video_translate/260401/default/e893u0r1nim1.srt",
      "no_caption_video_url": "https://d3323c6w59hl44.cloudfront.net/algorithm/video_translate/260401/default/zr9eyq8rpla4.mp4"
    }
  }
}
Check the processing status of your video translation job and retrieve the translated video URL when completed. Use the _id returned from the Create Video Translation API.

Status Codes

StatusDescription
1Queueing - Your request is waiting to be processed
2Processing - Video translation is currently being generated
3Completed - Translation finished successfully, video URL is available
4Failed - Translation failed, check error_code and error_reason for details

Authorizations

x-api-key
string
header
required

Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.

Query Parameters

video_model_id
string
required

Video db id from the _id field returned by Create By Talking Photo API

Response

200 - application/json

Video information retrieved successfully

code
integer
required

Interface returns business status code (1000: success)

Example:

1000

msg
string
required

Interface returns status information

Example:

"OK"

data
object