Query job status and results
curl --request GET \
--url https://api.vmeg.ai/openapi/v1/tasks/detail \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vmeg.ai/openapi/v1/tasks/detail"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vmeg.ai/openapi/v1/tasks/detail', 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://api.vmeg.ai/openapi/v1/tasks/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.vmeg.ai/openapi/v1/tasks/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vmeg.ai/openapi/v1/tasks/detail")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vmeg.ai/openapi/v1/tasks/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "",
"data": {
"taskId": "<string>",
"taskType": "vt",
"status": "<string>",
"result": {
"compress": {},
"asrScripts": {
"asrResults": [
{
"speaker": "<string>",
"start": 123,
"end": 123,
"text": "<string>",
"locale": "<string>",
"emotion": "<string>",
"name": "<string>",
"gender": "<string>",
"age": "<string>",
"id": "<string>",
"textWithBracket": "<string>",
"textWithBreak": "<string>"
}
],
"monoAudio": "<string>",
"speakerNum": 123,
"language": {
"source": "<string>",
"target": "<string>"
},
"category": "<string>",
"industry": "<string>",
"keywords": [
"<string>"
],
"ctcEnabled": true
},
"audioSeparation": {
"sfxUrl": "<string>",
"musicUrl": "<string>",
"vocalUrl": "<string>",
"speechUrl": "<string>",
"otherUrl": "<string>",
"mnsUrl": "<string>"
},
"translatedScripts": {
"result": [
{
"start": 123,
"end": 123,
"sourceText": "<string>",
"text": "<string>",
"speaker": "<string>",
"locale": "<string>",
"gender": "<string>",
"id": "<string>",
"voiceId": "<string>",
"provider": "<string>",
"speakerDisplayName": "<string>",
"emotion": "<string>",
"age": "<string>",
"sourceSyllable": 123,
"targetSyllable": 123,
"mode": "<string>"
}
]
},
"voiceClone": {
"provider": "<string>",
"mode": "<string>",
"refAudio": "<string>"
},
"voiceMatch": [
{
"speaker": "<string>",
"voiceId": "<string>",
"provider": "<string>",
"exampleLanguage": "<string>",
"content": "<string>",
"audio": "<string>"
}
],
"tts": {
"result": [
{
"id": "<string>",
"text": "<string>",
"ttsFile": "<string>",
"provider": "<string>",
"voiceId": "<string>",
"duration": 123,
"cloneMode": "<string>"
}
]
},
"alignment": {
"audio": [
{
"file": "<string>",
"templateId": 123,
"tracksTimes": [
123
],
"timeRange": [
123
],
"volumeScale": 123
}
],
"subtitle": [
"<unknown>"
],
"video": [
{
"file": "<string>",
"templateId": 123,
"tracksTimes": [
123
],
"timeRange": [
123
],
"volumeScale": 123
}
]
},
"build": {
"video": {
"url": "<string>",
"duration": 123,
"size": 123,
"resolution": {
"width": 123,
"height": 123
},
"fps": 123
},
"images": [
{
"url": "<string>",
"size": 123,
"resolution": {
"width": 123,
"height": 123
}
}
],
"audio": {
"url": "<string>",
"duration": 123,
"size": 123,
"fps": 123
}
}
}
}
}Task status and history
Query job status and results
Poll status and result for one taskId — use after any create-async, or when webhooks are unavailable. When status is finished, result holds the same deliverables as the completion webhook; its shape depends on taskType (see the result field below). For media translation, the final video / audio CDN URLs are result.build.video.url / result.build.audio.url. Scoped to your API Key.
GET
/
openapi
/
v1
/
tasks
/
detail
Query job status and results
curl --request GET \
--url https://api.vmeg.ai/openapi/v1/tasks/detail \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vmeg.ai/openapi/v1/tasks/detail"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vmeg.ai/openapi/v1/tasks/detail', 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://api.vmeg.ai/openapi/v1/tasks/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.vmeg.ai/openapi/v1/tasks/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vmeg.ai/openapi/v1/tasks/detail")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vmeg.ai/openapi/v1/tasks/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "",
"data": {
"taskId": "<string>",
"taskType": "vt",
"status": "<string>",
"result": {
"compress": {},
"asrScripts": {
"asrResults": [
{
"speaker": "<string>",
"start": 123,
"end": 123,
"text": "<string>",
"locale": "<string>",
"emotion": "<string>",
"name": "<string>",
"gender": "<string>",
"age": "<string>",
"id": "<string>",
"textWithBracket": "<string>",
"textWithBreak": "<string>"
}
],
"monoAudio": "<string>",
"speakerNum": 123,
"language": {
"source": "<string>",
"target": "<string>"
},
"category": "<string>",
"industry": "<string>",
"keywords": [
"<string>"
],
"ctcEnabled": true
},
"audioSeparation": {
"sfxUrl": "<string>",
"musicUrl": "<string>",
"vocalUrl": "<string>",
"speechUrl": "<string>",
"otherUrl": "<string>",
"mnsUrl": "<string>"
},
"translatedScripts": {
"result": [
{
"start": 123,
"end": 123,
"sourceText": "<string>",
"text": "<string>",
"speaker": "<string>",
"locale": "<string>",
"gender": "<string>",
"id": "<string>",
"voiceId": "<string>",
"provider": "<string>",
"speakerDisplayName": "<string>",
"emotion": "<string>",
"age": "<string>",
"sourceSyllable": 123,
"targetSyllable": 123,
"mode": "<string>"
}
]
},
"voiceClone": {
"provider": "<string>",
"mode": "<string>",
"refAudio": "<string>"
},
"voiceMatch": [
{
"speaker": "<string>",
"voiceId": "<string>",
"provider": "<string>",
"exampleLanguage": "<string>",
"content": "<string>",
"audio": "<string>"
}
],
"tts": {
"result": [
{
"id": "<string>",
"text": "<string>",
"ttsFile": "<string>",
"provider": "<string>",
"voiceId": "<string>",
"duration": 123,
"cloneMode": "<string>"
}
]
},
"alignment": {
"audio": [
{
"file": "<string>",
"templateId": 123,
"tracksTimes": [
123
],
"timeRange": [
123
],
"volumeScale": 123
}
],
"subtitle": [
"<unknown>"
],
"video": [
{
"file": "<string>",
"templateId": 123,
"tracksTimes": [
123
],
"timeRange": [
123
],
"volumeScale": 123
}
]
},
"build": {
"video": {
"url": "<string>",
"duration": 123,
"size": 123,
"resolution": {
"width": 123,
"height": 123
},
"fps": 123
},
"images": [
{
"url": "<string>",
"size": 123,
"resolution": {
"width": 123,
"height": 123
}
}
],
"audio": {
"url": "<string>",
"duration": 123,
"size": 123,
"fps": 123
}
}
}
}
}Authorizations
Send your API Key in the Authorization header (Bearer <api_key>). See Authentication.
Query Parameters
Open API task ID

