curl --request POST \
--url https://api.halfpagetechnologies.com/backend/api/v1/predict \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_id": "c0ffee00-1234-5678-9abc-def012345678"
}
'import requests
url = "https://api.halfpagetechnologies.com/backend/api/v1/predict"
payload = {
"image_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_id": "c0ffee00-1234-5678-9abc-def012345678"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
model_id: 'c0ffee00-1234-5678-9abc-def012345678'
})
};
fetch('https://api.halfpagetechnologies.com/backend/api/v1/predict', 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.halfpagetechnologies.com/backend/api/v1/predict",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'image_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
'model_id' => 'c0ffee00-1234-5678-9abc-def012345678'
]),
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://api.halfpagetechnologies.com/backend/api/v1/predict"
payload := strings.NewReader("{\n \"image_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"model_id\": \"c0ffee00-1234-5678-9abc-def012345678\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.halfpagetechnologies.com/backend/api/v1/predict")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"model_id\": \"c0ffee00-1234-5678-9abc-def012345678\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.halfpagetechnologies.com/backend/api/v1/predict")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"image_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"model_id\": \"c0ffee00-1234-5678-9abc-def012345678\"\n}"
response = http.request(request)
puts response.read_body{
"prediction_id": "b1e5c7d2-9a4f-4c3b-8e2d-1f6a7b8c9d0e",
"status": "submitted",
"reason": "<string>"
}{
"detail": "Requires authentication"
}{
"detail": "You've reached your monthly analysis limit. Upgrade to run more."
}{
"detail": "Image with id 3fa85f64-5717-4562-b3fc-2c963f66afa6 not found"
}{
"detail": "Input should be a valid UUID"
}Run a prediction
Start an asynchronous segmentation of a ready image.
Returns immediately with a prediction_id; the segmentation itself runs on a
GPU worker. Poll GET /predict/{prediction_id} until status is
COMPLETED, then read segmentation_id off that response and hand it to the
/export/* endpoints. Each run counts against your plan’s monthly analysis
quota (402 when exceeded). The image_id and model_id are org-scoped: an
id outside your organization returns 404. A non-UUID model_id is rejected
with 422 before it reaches the database.
curl --request POST \
--url https://api.halfpagetechnologies.com/backend/api/v1/predict \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_id": "c0ffee00-1234-5678-9abc-def012345678"
}
'import requests
url = "https://api.halfpagetechnologies.com/backend/api/v1/predict"
payload = {
"image_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"model_id": "c0ffee00-1234-5678-9abc-def012345678"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
model_id: 'c0ffee00-1234-5678-9abc-def012345678'
})
};
fetch('https://api.halfpagetechnologies.com/backend/api/v1/predict', 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.halfpagetechnologies.com/backend/api/v1/predict",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'image_id' => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
'model_id' => 'c0ffee00-1234-5678-9abc-def012345678'
]),
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://api.halfpagetechnologies.com/backend/api/v1/predict"
payload := strings.NewReader("{\n \"image_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"model_id\": \"c0ffee00-1234-5678-9abc-def012345678\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.halfpagetechnologies.com/backend/api/v1/predict")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"model_id\": \"c0ffee00-1234-5678-9abc-def012345678\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.halfpagetechnologies.com/backend/api/v1/predict")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"image_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"model_id\": \"c0ffee00-1234-5678-9abc-def012345678\"\n}"
response = http.request(request)
puts response.read_body{
"prediction_id": "b1e5c7d2-9a4f-4c3b-8e2d-1f6a7b8c9d0e",
"status": "submitted",
"reason": "<string>"
}{
"detail": "Requires authentication"
}{
"detail": "You've reached your monthly analysis limit. Upgrade to run more."
}{
"detail": "Image with id 3fa85f64-5717-4562-b3fc-2c963f66afa6 not found"
}{
"detail": "Input should be a valid UUID"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
Successful Response
Acknowledgement that a prediction was queued. status is submitted for
a fresh run, or skipped when an identical prediction is already in
flight — in both cases prediction_id is the one to poll.