displayhomeTest on a listing

API reference.

displayhome as an API: every service, its fields, its responses. OpenAPI 3.1, private beta.

ContentsGetting started

Getting started

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
202 · job accepted
{
  "job_id": "7b5e2c1a-…",
  "status": "queued",
  "status_url": "/v1/jobs/7b5e2c1a-…",
  "video": { "resolution": "4k", "aspect_ratio": "16:9", "effective_duration_seconds": 6 }
}
GET /v1/jobs/{id} · completed
{
  "id": "7b5e2c1a-…",
  "service": "transition",
  "status": "completed",
  "result": {
    "media": {
      "id": "e81a90f3-…",
      "mime": "video/mp4",
      "metadata": { "width": 3840, "height": 2160, "duration_seconds": 6 },
      "url": "/v1/media/e81a90f3-…/content"
    },
    "resolution": "4k",
    "aspect_ratio": "16:9",
    "requested_duration_seconds": 6,
    "effective_duration_seconds": 6
  }
}

Full example

Upload a photo, make a vertical shot from it, wait for the result.

Shell
curl -X POST https://api.displayhome.ai/v1/media \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Content-Type: image/jpeg" \
  --data-binary @salon.jpg

curl -X POST https://api.displayhome.ai/v1/video/single-image-generations \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…",
    "resolution": "1080p",
    "aspect_ratio": "9:16",
    "duration_seconds": 5
  }'

curl -X GET https://api.displayhome.ai/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY"

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

UploadJPG, PNG, WebP, MP4, WebM and audio; 32 MiB per file, 128 MiB of media per job.
Video shots720p, 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.
FilmUp to 30 shots and five minutes of clips; presets nu, generique, sobre, riche, magazine.
Analysis2 to 60 photos per analysis.

Errors

400Invalid request, or missing idempotency key.
401Missing or invalid API key.
402The estimated reservation exceeds the workspace budget.
404Resource not found in your workspace.
409Idempotency key already used for another request.
413File or payload too large.
422Unreadable media, or settings incompatible with the media.
503Service 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.

Responses: 201 413 422

Request
curl -X POST https://api.displayhome.ai/v1/media \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Content-Type: image/jpeg" \
  --data-binary @salon.jpg
GET/v1/media/{id}

Read a media item

The metadata of a media item in your workspace.

Responses: 200 404

Request
curl -X GET https://api.displayhome.ai/v1/media/MEDIA_ID \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY"
GET/v1/media/{id}/content

Download a media item

The file itself. Partial reads (Range) are accepted, to stream a video.

Responses: 200 206 404 416

Request
curl -X GET https://api.displayhome.ai/v1/media/MEDIA_ID/content \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY"

Listing analysis

The service looks at every photo, finds the ones that physically follow one another and derives the walkthrough from them.

POST/v1/image-pair-evaluations

Check a pair

Says whether two photos you provide can be linked by a camera move, and which one.

FieldTypeDescription
first_frame_image_idrequireduuid The starting photo: the first frame of the shot.
last_frame_image_idrequireduuid The ending photo: the last frame of the shot.
kindstring visite: a move within one place; transition: the passage from one place to another.visite · transition · default "transition"
movementstring The move to check, in plain language (optional).

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/image-pair-evaluations \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "first_frame_image_id": "3f1c…",
    "last_frame_image_id": "9a07…",
    "kind": "transition"
  }'
POST/v1/video/film-plans

Plan the film

From a completed analysis, orders the confirmed links into a walkthrough.

FieldTypeDescription
analysis_job_idrequireduuid Identifier of a completed or partial analysis job.
target_duration_secondsnumber Target duration of the film, in seconds.30 · 38 · 90 · default 38

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/film-plans \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "analysis_job_id": "7b5e…"
  }'
POST/v1/video/reviews

Review a video

Compares a generated shot with its source photos and flags what is not faithful to them.

FieldTypeDescription
video_idrequireduuid Identifier of an uploaded or produced video.
image_idsrequiredarray<string> Identifiers of the uploaded photos.1 to 2
instructionstring The move or the edit you want, in plain language.default "Respecter les photographies du bien"
sample_framesboolean

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/reviews \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "video_id": "e81a…",
    "image_ids": [
      "3f1c…"
    ]
  }'

Video

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.

FieldTypeDescription
image_idsrequiredarray<string> Identifiers of the uploaded photos.2 to 60
resolutionstring Resolution of the shot: 2k = 1440p, 4k = 2160p.720p · 1080p · 2k · 4k · default "720p"
aspect_ratiostring The format: 16:9 for a website, 9:16 for social feeds.16:9 · 9:16 · default "16:9"
duration_secondsinteger Requested duration; the duration kept is returned in the response.3 to 6 · default 6
titlestring The title shown at the opening.default "Teaser"
target_duration_secondsnumber Target duration of the film, in seconds.30 · 38 · default 30
max_clipsinteger Maximum number of clips in the teaser.1 to 8 · default 6
max_correctionsinteger Maximum number of corrections per clip rejected at review.0 to 2 · default 2
max_candidatesinteger Cap on the candidate pairs that are checked.1 to 300 · default 60

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/teasers \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_ids": [
      "3f1c…",
      "9a07…",
      "c2d4…",
      "…"
    ],
    "aspect_ratio": "9:16",
    "resolution": "1080p",
    "title": "Sea-view villa",
    "target_duration_seconds": 30
  }'
POST/v1/video/single-image-generations

Generate a shot from one photo

A camera move within a single photo. Without an instruction, the service prepares the move itself.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
resolutionstring Resolution of the shot: 2k = 1440p, 4k = 2160p.720p · 1080p · 2k · 4k · default "1080p"
aspect_ratiostring The format: 16:9 for a website, 9:16 for social feeds.16:9 · 9:16 · default "16:9"
duration_secondsnumber Requested duration; the duration kept is returned in the response.2 to 15 · default 5
instructionstring The move or the edit you want, in plain language.
path_hintstring A hint about the path, for preparing the move (for example "towards the terrace").
amplitudestring When the service prepares the move: borne stays within what the photo shows, libre and creatif go further.borne · libre · creatif · default "borne"

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/single-image-generations \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…",
    "resolution": "1080p",
    "aspect_ratio": "9:16",
    "duration_seconds": 5
  }'
POST/v1/video/transitions

Generate a shot between two photos

The passage from one photo to the other: the first and the last frame of the shot are yours.

FieldTypeDescription
first_frame_image_idrequireduuid The starting photo: the first frame of the shot.
last_frame_image_idrequireduuid The ending photo: the last frame of the shot.
resolutionstring Resolution of the shot: 2k = 1440p, 4k = 2160p.720p · 1080p · 2k · 4k · default "1080p"
aspect_ratiostring The format: 16:9 for a website, 9:16 for social feeds.16:9 · 9:16 · default "16:9"
duration_secondsnumber Requested duration; the duration kept is returned in the response.2 to 15 · default 5
instructionstring The move or the edit you want, in plain language.
path_hintstring A hint about the path, for preparing the move (for example "towards the terrace").

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/transitions \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "first_frame_image_id": "3f1c…",
    "last_frame_image_id": "9a07…",
    "resolution": "4k",
    "aspect_ratio": "16:9",
    "duration_seconds": 6
  }'
POST/v1/video/transition-preparations

Prepare a move

Returns the move the service proposes between two photos, without generating: review it before you spend.

FieldTypeDescription
first_frame_image_idrequireduuid The starting photo: the first frame of the shot.
last_frame_image_idrequireduuid The ending photo: the last frame of the shot.
instructionstring The move or the edit you want, in plain language.
kindstring visite: a move within one place; transition: the passage from one place to another.visite · transition · default "transition"

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/transition-preparations \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "first_frame_image_id": "3f1c…",
    "last_frame_image_id": "9a07…",
    "kind": "visite"
  }'
POST/v1/video/assemblies

Assemble a film

Puts the shots end to end in the given order, with a preset, a title and optional music.

FieldTypeDescription
clipsrequiredarray<object> The shots, in film order: video_id, an optional label, reversed to play a shot backwards.1 to 30
titlestring The title shown at the opening.
aspect_ratiostring The format: 16:9 for a website, 9:16 for social feeds.16:9 · 9:16 · default "16:9"
presetstring The film preset.nu · generique · sobre · riche · magazine · default "nu"
speednumber Playback speed of the shots.0.5 to 3 · default 1
music_iduuid Identifier of an uploaded music track.

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/assemblies \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "clips": [
      {
        "video_id": "e81a…"
      },
      {
        "video_id": "42bd…",
        "reversed": true
      }
    ],
    "title": "Sea-view villa",
    "aspect_ratio": "16:9",
    "preset": "sobre"
  }'
POST/v1/video/photo-animations

Animate a photo

A simple framing move (push in, pull out) with no AI generation. Instant, with no generation cost.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
aspect_ratiostring The format: 16:9 for a website, 9:16 for social feeds.16:9 · 9:16 · default "16:9"
duration_secondsnumber Requested duration; the duration kept is returned in the response.1 to 20 · default 5
motionstring The framing move.push-in · pull-out · static · default "push-in"

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/photo-animations \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…",
    "aspect_ratio": "9:16",
    "duration_seconds": 5,
    "motion": "push-in"
  }'
POST/v1/video/gifs

Extract a GIF

A GIF taken from a video, for an email or a thumbnail.

FieldTypeDescription
video_idrequireduuid Identifier of an uploaded or produced video.
start_secondsnumber Start of the excerpt, in seconds.at least 0 · default 0
duration_secondsnumber Requested duration; the duration kept is returned in the response.0.1 to 10 · default 4
widthinteger Width of the GIF, in pixels.120 to 1000 · default 600

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/video/gifs \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "video_id": "e81a…",
    "start_seconds": 1,
    "duration_seconds": 3,
    "width": 600
  }'

Photo

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.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
formatstring 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"
qualitystring Rendering quality level.low · medium · high · default "medium"
instructionstring The move or the edit you want, in plain language.

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/photo/enhancements \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…"
  }'
POST/v1/photo/home-staging

Furnish a room

Virtual home staging in the requested style.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
formatstring 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"
qualitystring Rendering quality level.low · medium · high · default "medium"
stylestring The furniture style.contemporary · scandinavian · mediterranean · classic · default "contemporary"

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/photo/home-staging \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…",
    "style": "mediterranean"
  }'
POST/v1/photo/decluttering

Empty a room

Removes movable furniture and objects.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
formatstring 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"
qualitystring Rendering quality level.low · medium · high · default "medium"

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/photo/decluttering \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…"
  }'
POST/v1/photo/time-of-day

Change the time of day

The same place in daylight, at golden hour, at dusk or at night.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
formatstring 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"
qualitystring Rendering quality level.low · medium · high · default "medium"
timerequiredstring The time of day.day · golden · twilight · night

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/photo/time-of-day \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…",
    "time": "twilight"
  }'
POST/v1/photo/seasons

Change the season

The same place in spring, summer, autumn or winter.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
formatstring 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"
qualitystring Rendering quality level.low · medium · high · default "medium"
seasonrequiredstring The season.spring · summer · autumn · winter

Responses: 202 400 401 402 409 422 503

Request
curl -X POST https://api.displayhome.ai/v1/photo/seasons \
  -H "Authorization: Bearer $DISPLAYHOME_API_KEY" \
  -H "Idempotency-Key: villa-salon-001" \
  -H "Content-Type: application/json" \
  -d '{
    "image_id": "3f1c…",
    "season": "summer"
  }'
POST/v1/photo/custom-edits

Free edit

Applies your instruction, written in plain language.

FieldTypeDescription
image_idrequireduuid Identifier of a photo uploaded with POST /v1/media.
formatstring 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"
qualitystring Rendering quality level.low · medium · high · default "medium"
instructionrequiredstring The move or the edit you want, in plain language.

Responses: 202 400 401 402 409 422 503

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: 200 404

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: 202 409 503

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