curl --request GET \
--url https://api.simli.ai/faces/trinity/generation_status \
--header 'x-simli-api-key: <api-key>'import requests
url = "https://api.simli.ai/faces/trinity/generation_status"
headers = {"x-simli-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-simli-api-key': '<api-key>'}};
fetch('https://api.simli.ai/faces/trinity/generation_status', 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.simli.ai/faces/trinity/generation_status",
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-simli-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://api.simli.ai/faces/trinity/generation_status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-simli-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://api.simli.ai/faces/trinity/generation_status")
.header("x-simli-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simli.ai/faces/trinity/generation_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-simli-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "not_found",
"queue_position": 123,
"generations": [
{
"face_id": "<string>",
"status": "not_found",
"queue_position": 123,
"dispatch_after": 123
}
],
"face_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Check Trinity Generation Status
Status of the caller’s Trinity generations. generations lists every one still tracked, oldest first; the top-level status, queue_position and face_id describe the most recent of them. Accounts that generate in parallel should read generations - the top-level fields only ever describe one of several in flight.
curl --request GET \
--url https://api.simli.ai/faces/trinity/generation_status \
--header 'x-simli-api-key: <api-key>'import requests
url = "https://api.simli.ai/faces/trinity/generation_status"
headers = {"x-simli-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-simli-api-key': '<api-key>'}};
fetch('https://api.simli.ai/faces/trinity/generation_status', 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.simli.ai/faces/trinity/generation_status",
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-simli-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://api.simli.ai/faces/trinity/generation_status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-simli-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://api.simli.ai/faces/trinity/generation_status")
.header("x-simli-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simli.ai/faces/trinity/generation_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-simli-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "not_found",
"queue_position": 123,
"generations": [
{
"face_id": "<string>",
"status": "not_found",
"queue_position": 123,
"dispatch_after": 123
}
],
"face_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Query Parameters
Limit the response to a single generation.
Response
Successful Response
Status of the most recent generation, or not_found when none is tracked.
not_found, pending, processing, completed, failed Queue position of the most recent generation, or -1 when none is tracked.
Every generation still tracked for the caller, oldest first. Completed and failed entries remain listed for 24 hours. Empty when none is tracked.
Show child attributes
Show child attributes
The most recent generation's face id. Absent when nothing is tracked and no face_id was requested; echoes the requested face_id otherwise.