Get job status and result
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": {
"status": "pending",
"preview": "<string>",
"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": {},
"progress": 45.5,
"error_code": "WORKER_TIMEOUT",
"error_reason": "SOURCE_DOWNLOAD_FAILED",
"retryable": true,
"refunded": true,
"failed_at": "2026-06-16T09:30:00+00:00",
"price": {
"amount": 0.0234,
"is_estimated": false
},
"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}
Get job status and result
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": {
"status": "pending",
"preview": "<string>",
"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": {},
"progress": 45.5,
"error_code": "WORKER_TIMEOUT",
"error_reason": "SOURCE_DOWNLOAD_FAILED",
"retryable": true,
"refunded": true,
"failed_at": "2026-06-16T09:30:00+00:00",
"price": {
"amount": 0.0234,
"is_estimated": false
},
"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
Sanctum personal access token, sent as Authorization: Bearer <token>. The token is opaque — it carries no claims and no embedded expiry, so do not attempt to decode it. Issue and revoke tokens from your account dashboard.
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?