curl --request POST \
--url https://api.fotolabs.co/v1/projects/{projectId}/process \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"templateId": "original",
"autoLevel": true
}
'import requests
url = "https://api.fotolabs.co/v1/projects/{projectId}/process"
payload = {
"templateId": "original",
"autoLevel": True
}
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({templateId: 'original', autoLevel: true})
};
fetch('https://api.fotolabs.co/v1/projects/{projectId}/process', 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.fotolabs.co/v1/projects/{projectId}/process",
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([
'templateId' => 'original',
'autoLevel' => true
]),
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.fotolabs.co/v1/projects/{projectId}/process"
payload := strings.NewReader("{\n \"templateId\": \"original\",\n \"autoLevel\": true\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.fotolabs.co/v1/projects/{projectId}/process")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"templateId\": \"original\",\n \"autoLevel\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fotolabs.co/v1/projects/{projectId}/process")
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 \"templateId\": \"original\",\n \"autoLevel\": true\n}"
response = http.request(request)
puts response.read_body{
"jobs": [
{
"jobId": "aaa-...",
"type": "hdr",
"imageIds": [
"aaa-...",
"bbb-...",
"ccc-..."
]
},
{
"jobId": "ddd-...",
"type": "hdr",
"imageIds": [
"ddd-...",
"eee-..."
]
},
{
"jobId": "fff-...",
"type": "single",
"imageIds": [
"fff-..."
]
},
{
"jobId": "ggg-...",
"type": "single",
"imageIds": [
"ggg-..."
]
}
]
}Process a project
Fetches all pending images for the project, auto-detects HDR bracket sets from EXIF
metadata, groups them, and enqueues all jobs in a single call.
Project must be in pending status. Returns 409 if already processing or completed.
Once this call succeeds, the project moves to processing status — no further uploads
are accepted and this endpoint cannot be called again for the same project.
HDR detection: Images captured within bracketWindowSeconds of each other with
an EV spread ≥ 0.5 stops are automatically grouped as HDR bracket sets. No client-side
grouping is needed — upload all images flat and let the API handle it.
Payment: Charged once per project.
- PAYG plans (
essential/ultimate): charged at the plan rate from your pricing tier. - Monthly plans: deducts one listing from your quota; if exhausted, the overage rate is charged.
- Second call on the same project (after adding more images): free — project is already paid.
curl --request POST \
--url https://api.fotolabs.co/v1/projects/{projectId}/process \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"templateId": "original",
"autoLevel": true
}
'import requests
url = "https://api.fotolabs.co/v1/projects/{projectId}/process"
payload = {
"templateId": "original",
"autoLevel": True
}
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({templateId: 'original', autoLevel: true})
};
fetch('https://api.fotolabs.co/v1/projects/{projectId}/process', 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.fotolabs.co/v1/projects/{projectId}/process",
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([
'templateId' => 'original',
'autoLevel' => true
]),
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.fotolabs.co/v1/projects/{projectId}/process"
payload := strings.NewReader("{\n \"templateId\": \"original\",\n \"autoLevel\": true\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.fotolabs.co/v1/projects/{projectId}/process")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"templateId\": \"original\",\n \"autoLevel\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fotolabs.co/v1/projects/{projectId}/process")
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 \"templateId\": \"original\",\n \"autoLevel\": true\n}"
response = http.request(request)
puts response.read_body{
"jobs": [
{
"jobId": "aaa-...",
"type": "hdr",
"imageIds": [
"aaa-...",
"bbb-...",
"ccc-..."
]
},
{
"jobId": "ddd-...",
"type": "hdr",
"imageIds": [
"ddd-...",
"eee-..."
]
},
{
"jobId": "fff-...",
"type": "single",
"imageIds": [
"fff-..."
]
},
{
"jobId": "ggg-...",
"type": "single",
"imageIds": [
"ggg-..."
]
}
]
}Authorizations
API key with fl_ prefix, issued from the Fotolabs dashboard
Path Parameters
Body
AI enhancement style. Overrides the project-level default.
original, twilight, virtual-stage Automatically correct horizon tilt using Hough line detection.
Override lens distortion correction. Omit to use automatic detection (recommended).
false skips correction; true forces it.
Free-text instruction passed to the AI model for all images in this batch.
"Brighten the foreground and add a warm sunset tone"
Time window in seconds used to group HDR bracket exposures.
0.5 <= x <= 30Response
All jobs enqueued. Project is now in processing status.
Poll each jobId via GET /v1/images/{imageId}.
Show child attributes
Show child attributes