One key per workspace, one address, JSON responses. Long-running work answers right away with a job.
The address https://api.displayhome.ai and your key are sent to you when your access opens.
Authentication
Every call under /v1/ carries Authorization: Bearer <key>. The workspace, its media and its budget are those of the key: a resource from another workspace answers 404.
Every request that starts a job carries an Idempotency-Key of 8 to 200 characters. The same request with the same key finds the same job; the same key with a different request answers 409.
Asynchronous jobs
An accepted service answers 202 with the job identifier. Its result is read from GET /v1/jobs/{id}.
queuedreceived, waiting
runningin progress
completeddone, result available
partialdone, incomplete result (the counters say what is missing)
failedfailed
needs_attentiontracking stopped: resume it with /resume
const API = "https://api.displayhome.ai";
const headers = { Authorization: `Bearer ${process.env.DISPLAYHOME_API_KEY}` };
// 1. upload a photo
const photo = await fetch(`${API}/v1/media`, {
method: "POST",
headers: { ...headers, "Content-Type": "image/jpeg" },
body: await fs.readFile("salon.jpg"),
}).then((r) => r.json());
// 2. generate a vertical shot
const job = await fetch(`${API}/v1/video/single-image-generations`, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json", "Idempotency-Key": `salon-${photo.id}` },
body: JSON.stringify({ image_id: photo.id, aspect_ratio: "9:16", resolution: "1080p" }),
}).then((r) => r.json());
// 3. wait for the result
let t;
do {
await new Promise((r) => setTimeout(r, 5000));
t = await fetch(`${API}${job.status_url}`, { headers }).then((r) => r.json());
} while (t.status === "queued" || t.status === "running");
console.log(t.result.media.url);
An analysis result says which photos follow one another, and in which direction:
result · link analysis
{
"input_image_count": 24,
"link_count": 9,
"has_links": true,
"links": [
{
"link_id": "salon-terrasse",
"first_frame_image_id": "3f1c…",
"last_frame_image_id": "9a07…",
"relationship": "between_spaces",
"movement": "Walk through the open glass door onto the terrace.",
"generation_direction": "forward"
}
],
"unpaired_image_ids": ["c2d4…"],
"exhaustive": false
}
Formats and limits
Upload
JPG, PNG, WebP, MP4, WebM and audio; 32 MiB per file, 128 MiB of media per job.
Video shots
720p, 1080p, 2K (1440p), 4K (2160p); 16:9 or 9:16; 2 to 15 seconds requested. GET /v1/capabilities gives the values active on your workspace.
Film
Up to 30 shots and five minutes of clips; presets nu, generique, sobre, riche, magazine.
Analysis
2 to 60 photos per analysis.
Errors
400
Invalid request, or missing idempotency key.
401
Missing or invalid API key.
402
The estimated reservation exceeds the workspace budget.
404
Resource not found in your workspace.
409
Idempotency key already used for another request.
413
File or payload too large.
422
Unreadable media, or settings incompatible with the media.
503
Service temporarily unavailable.
Media
Everything starts with uploading the listing photos. Each file gets an identifier that the services reuse.
POST/v1/media
Upload a file
Sends a photo, a video or a music track as raw binary, with its Content-Type. The response gives the identifier, the fingerprint and the measured dimensions or duration.
Body: the raw file. Content-Type: image/jpeg, image/png, image/webp, video/mp4, video/webm, audio/mpeg, audio/mp4, audio/wav, audio/ogg. 32 MiB at most. With an Idempotency-Key, the same file sent twice returns the same media item.
One call takes you from photos to a teaser. To stay in control, shots can also be generated one by one, then assembled into a film.
POST/v1/video/teasers
From photos to teaser, in one call
Finds the pairs of photos that link, generates each clip, checks it, corrects it if needed, then edits the teaser. The result follows every step; at the end, the assembled film is a media item.
Field
Type
Description
image_idsrequired
array<string>
Identifiers of the uploaded photos.2 to 60
resolution
string
Resolution of the shot: 2k = 1440p, 4k = 2160p.720p · 1080p · 2k · 4k · default "720p"
aspect_ratio
string
The format: 16:9 for a website, 9:16 for social feeds.16:9 · 9:16 · default "16:9"
duration_seconds
integer
Requested duration; the duration kept is returned in the response.3 to 6 · default 6
title
string
The title shown at the opening.default "Teaser"
target_duration_seconds
number
Target duration of the film, in seconds.30 · 38 · default 30
max_clips
integer
Maximum number of clips in the teaser.1 to 8 · default 6
max_corrections
integer
Maximum number of corrections per clip rejected at review.0 to 2 · default 2
max_candidates
integer
Cap on the candidate pairs that are checked.1 to 300 · default 60
Every edit creates a new media item: the original stays intact and its provenance is kept.
POST/v1/photo/enhancements
Enhance a photo
Light, sharpness, verticals. An optional instruction refines the request.
Field
Type
Description
image_idrequired
uuid
Identifier of a photo uploaded with POST /v1/media.
format
string
The framing of the produced photo; closest keeps the ratio nearest to the original.closest · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · default "closest"
quality
string
Rendering quality level.low · medium · high · default "medium"
Identifier of a photo uploaded with POST /v1/media.
format
string
The framing of the produced photo; closest keeps the ratio nearest to the original.closest · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · default "closest"
quality
string
Rendering quality level.low · medium · high · default "medium"
Identifier of a photo uploaded with POST /v1/media.
format
string
The framing of the produced photo; closest keeps the ratio nearest to the original.closest · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · default "closest"
quality
string
Rendering quality level.low · medium · high · default "medium"
The same place in daylight, at golden hour, at dusk or at night.
Field
Type
Description
image_idrequired
uuid
Identifier of a photo uploaded with POST /v1/media.
format
string
The framing of the produced photo; closest keeps the ratio nearest to the original.closest · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · default "closest"
quality
string
Rendering quality level.low · medium · high · default "medium"
The same place in spring, summer, autumn or winter.
Field
Type
Description
image_idrequired
uuid
Identifier of a photo uploaded with POST /v1/media.
format
string
The framing of the produced photo; closest keeps the ratio nearest to the original.closest · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · default "closest"
quality
string
Rendering quality level.low · medium · high · default "medium"
Applies your instruction, written in plain language.
Field
Type
Description
image_idrequired
uuid
Identifier of a photo uploaded with POST /v1/media.
format
string
The framing of the produced photo; closest keeps the ratio nearest to the original.closest · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · default "closest"
quality
string
Rendering quality level.low · medium · high · default "medium"
instructionrequired
string
The move or the edit you want, in plain language.
Responses: 202400401402409422503
Request
curl -X POST https://api.displayhome.ai/v1/photo/custom-edits \
-H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
-H "Idempotency-Key: villa-salon-001" \
-H "Content-Type: application/json" \
-d '{
"image_id": "3f1c…",
"instruction": "Turn on the living room lamps."
}'
Jobs and account
Long-running services answer right away with a job; its result can be read once it is done.
GET/v1/jobs/{id}
Read a job
The status of the job and, once it is done, its result: the media produced or the service data.
Responses: 200404
Request
curl -X GET https://api.displayhome.ai/v1/jobs/JOB_ID \
-H "Authorization: Bearer $DISPLAYHOME_API_KEY"
POST/v1/jobs/{id}/resume
Resume a job
Restarts the tracking of a job marked needs_attention, without submitting twice.
Responses: 202409503
Request
curl -X POST https://api.displayhome.ai/v1/jobs/JOB_ID/resume \
-H "Authorization: Bearer $DISPLAYHOME_API_KEY"
GET/v1/capabilities
Read the capabilities
The services active on your workspace, and the available resolutions, formats and durations.
Responses: 200
Request
curl -X GET https://api.displayhome.ai/v1/capabilities \
-H "Authorization: Bearer $DISPLAYHOME_API_KEY"
GET/v1/budget
Read the budget
The budget of your workspace and what running jobs have reserved.
Responses: 200
Request
curl -X GET https://api.displayhome.ai/v1/budget \
-H "Authorization: Bearer $DISPLAYHOME_API_KEY"
GET/health/live
Service status
Answers 200 when the API is up. No authentication.
Responses: 200
Request
curl -X GET https://api.displayhome.ai/health/live