curl --request GET \
--url https://api.example.com/v1/faces/{face_id}import requests
url = "https://api.example.com/v1/faces/{face_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/faces/{face_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://api.example.com/v1/faces/{face_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/faces/{face_id}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/faces/{face_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/faces/{face_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"alias": "<string>",
"created": 123,
"owned_by": "<string>",
"styles": [
"<string>"
],
"uid": "<string>",
"object": "face",
"name": "<string>",
"specialty": "<string>",
"description": "<string>",
"basic_facts": {},
"default_tools": [
"<string>"
],
"default_model": "<string>",
"formula": "<string>",
"profile_addendum": "<string>",
"published": true,
"via": [
"<string>"
],
"shared_with": [
"<string>"
],
"read_only": true,
"warnings": [
"<string>"
],
"fidelity": 123,
"fidelity_at": "<string>",
"fidelity_competitor": "<string>",
"tags": [
"<string>"
],
"groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"component_counts": [
123
],
"compiled": true,
"avatar_status": "<string>",
"avatar_version": 123,
"avatar_uploaded": true,
"owner_followed": true,
"owner_avatar": true,
"usage": {},
"updated_at": "<string>",
"compile_tokens_synced": 123,
"last_synced_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Face
Get a specific face by ID (username).
curl --request GET \
--url https://api.example.com/v1/faces/{face_id}import requests
url = "https://api.example.com/v1/faces/{face_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/faces/{face_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://api.example.com/v1/faces/{face_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/faces/{face_id}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/faces/{face_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/faces/{face_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"alias": "<string>",
"created": 123,
"owned_by": "<string>",
"styles": [
"<string>"
],
"uid": "<string>",
"object": "face",
"name": "<string>",
"specialty": "<string>",
"description": "<string>",
"basic_facts": {},
"default_tools": [
"<string>"
],
"default_model": "<string>",
"formula": "<string>",
"profile_addendum": "<string>",
"published": true,
"via": [
"<string>"
],
"shared_with": [
"<string>"
],
"read_only": true,
"warnings": [
"<string>"
],
"fidelity": 123,
"fidelity_at": "<string>",
"fidelity_competitor": "<string>",
"tags": [
"<string>"
],
"groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"component_counts": [
123
],
"compiled": true,
"avatar_status": "<string>",
"avatar_version": 123,
"avatar_uploaded": true,
"owner_followed": true,
"owner_avatar": true,
"usage": {},
"updated_at": "<string>",
"compile_tokens_synced": 123,
"last_synced_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
The account that owns the face, when it is not you. The same thing as the <owner>:<alias> handle in the path: /v1/faces/head:socrates and /v1/faces/socrates?owner=head are one request. Sending both and disagreeing is a 422. Without either, a bare alias means YOUR face of that name if you have one, and an alias is unique per owner, so me and any popular name collide across accounts.
Optional enrichment fields. Repeatable or comma-separated. Recognized values: 'tags', 'groups', 'profile'. NOT 'sharing': shared_with is always populated on this route and needs no flag; only the /faces listing requires one. Unknown values are silently ignored. The face description and its tags are always included; groups, and the compiled-profile fields (component_counts, compile_tokens_synced, last_synced_at) are populated only when requested here, and returned as null otherwise.
Response
Successful Response
Public representation of a face.