Jimeng Task Status Query
curl --request GET \
--url https://zx1.deepwl.net/v1/videos/{task_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "<string>"
}
'import requests
url = "https://zx1.deepwl.net/v1/videos/{task_id}"
payload = { "task_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '<string>'})
};
fetch('https://zx1.deepwl.net/v1/videos/{task_id}', 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://zx1.deepwl.net/v1/videos/{task_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'task_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://zx1.deepwl.net/v1/videos/{task_id}"
payload := strings.NewReader("{\n \"task_id\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://zx1.deepwl.net/v1/videos/{task_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"task_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://zx1.deepwl.net/v1/videos/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "video_123",
"object": "video",
"model": "jimeng-video-3.0",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"video_url": ""
}
{
"id": "video_123",
"object": "video",
"model": "jimeng-video-3.0",
"status": "completed",
"progress": 100,
"created_at": 1712697600,
"completed_at": 1712697900,
"video_url": "https://example.com/video/output.mp4"
}
OpenAI Format
Jimeng Task Status Query
Use GET /v1/videos/{task_id} to query Jimeng video task status and results.
GET
https://zx1.deepwl.net
/
v1
/
videos
/
{task_id}
Jimeng Task Status Query
curl --request GET \
--url https://zx1.deepwl.net/v1/videos/{task_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "<string>"
}
'import requests
url = "https://zx1.deepwl.net/v1/videos/{task_id}"
payload = { "task_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '<string>'})
};
fetch('https://zx1.deepwl.net/v1/videos/{task_id}', 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://zx1.deepwl.net/v1/videos/{task_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'task_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://zx1.deepwl.net/v1/videos/{task_id}"
payload := strings.NewReader("{\n \"task_id\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://zx1.deepwl.net/v1/videos/{task_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"task_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://zx1.deepwl.net/v1/videos/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "video_123",
"object": "video",
"model": "jimeng-video-3.0",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"video_url": ""
}
{
"id": "video_123",
"object": "video",
"model": "jimeng-video-3.0",
"status": "completed",
"progress": 100,
"created_at": 1712697600,
"completed_at": 1712697900,
"video_url": "https://example.com/video/output.mp4"
}
Jimeng Task Status Query
OpenAI-format query entry. If the task was submitted viaPOST /v1/video/create, please use Query Task.
After a Jimeng series task is submitted, query it via GET /v1/videos/{task_id}.
- The query path is
GET /v1/videos/{task_id}. - A successful response returns an OpenAI-style
videoobject. - After the task is completed, you can read the result from
video_url.
Method and Path
GET /v1/videos/{task_id}
Request Example
curl https://zx1.deepwl.net/v1/videos/video_123 \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
resp = requests.get(
"https://zx1.deepwl.net/v1/videos/video_123",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(resp.json())
const response = await fetch("https://zx1.deepwl.net/v1/videos/video_123", {
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
console.log(await response.json());
Response Example
{
"id": "video_123",
"object": "video",
"model": "jimeng-video-3.0",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"video_url": ""
}
{
"id": "video_123",
"object": "video",
"model": "jimeng-video-3.0",
"status": "completed",
"progress": 100,
"created_at": 1712697600,
"completed_at": 1712697900,
"video_url": "https://example.com/video/output.mp4"
}
Authentication
Authorization: Bearer YOUR_API_KEY
Path Parameters
string
required
Video task ID.
Response
string
Task ID.
string
Fixed as
video.string
Model name.
string
Task status:
queued, processing, completed, failed, cancelled.integer
Progress percentage (0-100).
integer
Creation timestamp.
integer
Completion timestamp (returned after the task is completed).
string
Video result URL (returned after the task is completed).
Status Description
| Status | Description |
|---|---|
queued | Task submitted, queued |
processing | Task is being processed |
completed | Task completed, video available |
failed | Task failed |
cancelled | Task cancelled |
Related APIs
⌘I