cURL
curl --request GET \
--url https://api.deapi.ai/api/v2/jobs/{job_request} \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deapi.ai/api/v2/jobs/{job_request}"
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>', Authorization: 'Bearer <token>'}};
fetch('https://api.deapi.ai/api/v2/jobs/{job_request}', 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.deapi.ai/api/v2/jobs/{job_request}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"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.deapi.ai/api/v2/jobs/{job_request}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
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.deapi.ai/api/v2/jobs/{job_request}")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deapi.ai/api/v2/jobs/{job_request}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"preview": "https://example.com/preview.jpg",
"result_url": "https://example.com/results/image.jpg",
"results_alt_formats": {
"jpg": "https://example.com/results/image.jpg",
"webp": "https://example.com/results/image.webp"
},
"result": "https://example.com/results/image.jpg",
"metadata": {
"id": "7312345678901234567",
"title": "How we shipped it in a week",
"description": "Behind the scenes of the launch #build",
"channel": "deAPI",
"duration_seconds": 87,
"extractor": "tiktok",
"view_count": 154302,
"like_count": 12045,
"comment_count": 318,
"repost_count": 96,
"save_count": 2411,
"uploader": "deapi",
"uploader_url": "https://www.tiktok.com/@deapi",
"channel_id": "MS4wLjABAAAA",
"channel_url": "https://www.tiktok.com/@deapi",
"webpage_url": "https://www.tiktok.com/@deapi/video/7312345678901234567",
"timestamp": 1764499200,
"upload_date": "20251130",
"thumbnails": [
{
"url": "https://p16.tiktokcdn.com/thumb.jpeg",
"width": 720,
"height": 1280
}
],
"fulltitle": "Behind the scenes of the launch #build",
"has_audio": true,
"is_live": false,
"language": "en",
"tags": [
"build",
"launch"
],
"categories": [
"<string>"
],
"chapters": [
{}
],
"heatmap": [
{}
],
"availability": "public",
"channel_follower_count": 48210
},
"progress": 45.5,
"error_message": "age-restricted",
"error_reason": "SOURCE_DOWNLOAD_FAILED",
"retryable": true,
"refunded": true,
"failed_at": "2026-06-16T09:30:00+00:00",
"prompt_boosted": true,
"prompt_boost": {
"prompt": "Serene mountain lake at sunrise, 85mm lens, f/2.8, tranquil atmosphere",
"prompt_original": "a serene mountain lake at sunrise",
"negative_prompt": "blurry, low quality",
"negative_prompt_original": "ugly"
}
}
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"message": "Too Many Attempts."
}Utilities
Get Job Results
Retrieve the current status and result of a submitted inference job.
GET
/
api
/
v2
/
jobs
/
{job_request}
cURL
curl --request GET \
--url https://api.deapi.ai/api/v2/jobs/{job_request} \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deapi.ai/api/v2/jobs/{job_request}"
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>', Authorization: 'Bearer <token>'}};
fetch('https://api.deapi.ai/api/v2/jobs/{job_request}', 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.deapi.ai/api/v2/jobs/{job_request}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"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.deapi.ai/api/v2/jobs/{job_request}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
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.deapi.ai/api/v2/jobs/{job_request}")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deapi.ai/api/v2/jobs/{job_request}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"preview": "https://example.com/preview.jpg",
"result_url": "https://example.com/results/image.jpg",
"results_alt_formats": {
"jpg": "https://example.com/results/image.jpg",
"webp": "https://example.com/results/image.webp"
},
"result": "https://example.com/results/image.jpg",
"metadata": {
"id": "7312345678901234567",
"title": "How we shipped it in a week",
"description": "Behind the scenes of the launch #build",
"channel": "deAPI",
"duration_seconds": 87,
"extractor": "tiktok",
"view_count": 154302,
"like_count": 12045,
"comment_count": 318,
"repost_count": 96,
"save_count": 2411,
"uploader": "deapi",
"uploader_url": "https://www.tiktok.com/@deapi",
"channel_id": "MS4wLjABAAAA",
"channel_url": "https://www.tiktok.com/@deapi",
"webpage_url": "https://www.tiktok.com/@deapi/video/7312345678901234567",
"timestamp": 1764499200,
"upload_date": "20251130",
"thumbnails": [
{
"url": "https://p16.tiktokcdn.com/thumb.jpeg",
"width": 720,
"height": 1280
}
],
"fulltitle": "Behind the scenes of the launch #build",
"has_audio": true,
"is_live": false,
"language": "en",
"tags": [
"build",
"launch"
],
"categories": [
"<string>"
],
"chapters": [
{}
],
"heatmap": [
{}
],
"availability": "public",
"channel_follower_count": 48210
},
"progress": 45.5,
"error_message": "age-restricted",
"error_reason": "SOURCE_DOWNLOAD_FAILED",
"retryable": true,
"refunded": true,
"failed_at": "2026-06-16T09:30:00+00:00",
"prompt_boosted": true,
"prompt_boost": {
"prompt": "Serene mountain lake at sunrise, 85mm lens, f/2.8, tranquil atmosphere",
"prompt_original": "a serene mountain lake at sunrise",
"negative_prompt": "blurry, low quality",
"negative_prompt_original": "ugly"
}
}
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"message": "Too Many Attempts."
}Retrieve the current status and result of a submitted inference job. Use the
request_id returned by any POST /api/v2/** endpoint.
Consider using webhooks or WebSockets instead of polling.
- Webhooks — Results pushed to your server automatically
- WebSockets — Real-time updates with live previews
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Available options:
application/json Path Parameters
Example:
"c08a339c-73e5-4d67-a4d5-231302fbff9a"
Response
Current status of requested inference.
Status response data
Show child attributes
Show child attributes
Was this page helpful?
⌘I