estateclip.ai

Developer documentation

API v1

estateclip.ai API

Turn real estate photos into motion videos: one clip per photo and, if you ask for it, a final video that joins the clips with transitions, music and your logo. A generation runs asynchronously: you create it, then wait for the webhook or poll it until it has completed, and download the videos.

  • Base URL: https://api.estateclip.ai/v1/
  • Reference with every field and status: OpenAPI reference, as a file: openapi.json
  • Webhooks: Webhooks
  • Prices, your balance and what a generation is charged: Billing
  • To check that your key works: GET /v1/generations?limit=1 answers 200 (401 if the key is not accepted)

All texts in responses are English. Act on error.code, never on error.message: messages may be reworded.

Getting started

Quickstart

Create a generation from two photos that are online, as a final with music, wait until it has ended and download the videos. The same in cURL, JavaScript (Node.js 18 or newer) and Python (standard library only):

# 1. Create the generation. The answer is 202 Accepted with the generation; keep its "id".
curl https://api.estateclip.ai/v1/generations \
  -H "Authorization: Bearer $ESTATECLIP_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: listing-4711-v1" \
  -d '{
    "images": [
      "https://example.com/living-room.jpg",
      "https://example.com/exterior.jpg"
    ],
    "resolution": "1080p",
    "compose": true,
    "music": true
  }'

# 2. Ask for it, every 5 seconds or slower, until "status" is "completed" or "failed".
curl https://api.estateclip.ai/v1/generations/gen_3f2a9c… \
  -H "Authorization: Bearer $ESTATECLIP_API_KEY"

# 3. Download each entry of "outputs" by its "url", without the Authorization header.
curl -o final.mp4 "<url of the entry with kind final>"
  • Keep the id of the generation and ask for it until status is completed or failed; a webhook spares you the asking (see Webhooks).
  • Once it has completed, download the videos from outputs[].url; the final is the entry with "kind": "final". The links are signed: fetch them with a plain GET and without your Authorization header (they point to our storage, which must not see your key). They are valid until expires_at.
  • Photos that are not online: upload each one first (see Upload) and put the upl_… IDs from the answers into images instead of URLs.

Replace the example URLs and the key before integrating.

To try the API without writing code, use the Playground in the dashboard. It uploads your photos and creates the generation through these same routes; generations started there are real and charged like any other.

Authentication

Every request except GET /v1/health needs an API key of your workspace:

Authorization: Bearer ec_…
  • No account yet: register with your company name and work email. A new workspace starts without credit; add credit on the Billing page, then create a key.
  • Create keys in the dashboard under API keys. A key is shown once, when it is created; we store only its hash.
  • Keep keys on your server, in its environment or secret store. The API key does not belong in a browser or an app: whoever has it can create generations at your cost. That is also why photos are uploaded by your server, not by your users' browsers.
  • To rotate a key: create a new one, deploy it, check that it works, then revoke the old one.
  • A missing, malformed (no Bearer), unknown or revoked key answers 401 unauthorized; a key of a deactivated workspace 403 forbidden.

How a generation runs

queued → processing (stage: fetching → rendering → composing) → completed | failed
status stage What happens
queued null Accepted, waiting for a free renderer
processing fetching Photos given as URLs, and the overlay, are fetched and checked. Only when you sent URLs or an overlay
processing rendering Clips are rendered, several at a time
processing composing Every clip has ended (progress.finished equals progress.total); the final is being cut. Only with compose
completed null At least one clip succeeded. Clips that failed say why in clips[].error
failed null No clip succeeded, or the generation could not run at all; error says why
  • progress: {"finished": 12, "total": 20}, clips that have ended, succeeded or failed.
  • clips[]: one entry per photo, in the order of images, with its own status and error.
  • A failed photo does not fail the others: the generation completes with the clips that succeeded.
  • Rendering a 4 s clip takes about 45 s at 720p and 75 s at 1080p once a renderer is warm; 20 photos with a final take a few minutes, longer when renderers have to start first.

Photos

Each entry of images is either an upload ID (upl_…) or an HTTPS URL. At most 20 photos per generation; the order of images is the order of the clips and of the final.

Upload

cURL
curl https://api.estateclip.ai/v1/uploads \
  -H "Authorization: Bearer $ESTATECLIP_API_KEY" \
  -F "file=@living-room.jpg"

Answers 201 Created:

JSON
{"id": "upl_7c1e2f…", "content_type": "image/jpeg", "size_bytes": 2483021, "expires_at": "2026-11-25T09:30:00Z"}
  • One photo per request, field file, as multipart/form-data.
  • JPEG, PNG or WebP, at most 50 MB. The type is taken from the file's content, not its name. HEIC (iPhone) is not accepted: convert it to JPEG first.
  • Too large: 413 image_too_large. Another type: 422 invalid_image.
  • An upload can be used for 7 days (expires_at). Storage removes it some hours after that; a generation created shortly before then may find it gone (image_not_found on the clip).
  • An upload belongs to your workspace; an upload ID of another workspace is 422 image_not_found.
  • The PNG of an overlay is uploaded the same way; pass its ID as overlay.url.

Image URLs

Photos that are online already need no upload. We fetch them before any clip starts (stage fetching):

  • HTTPS on port 443, no user name or password in the URL, at most 2000 characters.
  • The host must be a public address. URLs that point to private, local or otherwise internal addresses are refused, also after a redirect.
  • Up to 3 redirects are followed, each checked like the first URL.
  • At most 50 MB and 60 seconds per photo. A connection error, a timeout, or HTTP 408, 429, 500, 502, 503 or 504 is tried once more.
  • Our requests identify as estateclip-fetch/1.0.
  • A photo that cannot be fetched fails its clip with fetch_failed, one that is too large with image_too_large, one that is no readable JPEG, PNG or WebP with invalid_image. The other photos go on.
  • Signed links (for example presigned S3 links) work, as long as they stay valid until the generation has started.

Size and shape

  • Every clip is landscape 16:9: 1280 × 720 at 720p, 1920 × 1080 at 1080p. Portrait and panorama photos are cropped around their centre to 16:9.
  • A photo is enlarged at most twice. It must be at least 640 × 360 pixels (width × height) for 720p and 960 × 540 for 1080p, after the rotation stored in its EXIF data; smaller photos fail their clip with invalid_image.
  • At most about 178 megapixels per photo.

Create a generation

POST /v1/generations with a JSON body. Answers 202 Accepted with the new generation, or 200 OK with the existing one when an Idempotency-Key repeats a request (see below).

Field Type Default Meaning
images array of strings required 1–20 upload IDs or HTTPS URLs
resolution "720p" | "1080p" required Size of every clip and of the final
clip_seconds 4 | 5 | 6 4 Length of every clip, at 24 frames per second
compose boolean false Also cut a final from the clips. Needs at least 2 images
transition string "crossfade" Between the clips of the final: crossfade, white_fade, black_fade, hard_cut. Needs compose
music false | true | folder false Music under the final: none, a random title of the whole library, or a random title of one folder (below). Needs compose
overlay object none A PNG laid over the whole final (below). Needs compose
webhook_url string | null null Where to announce the end of the generation, see Webhooks
  • Leave out a field to get its default. null is accepted only for webhook_url.
  • Unknown fields are refused with 422 validation_error, as are transition, music or overlay without compose.
  • music folders: alternative, ambient, blues, classical, electronic, hip_hop, pop, rnb_soul, rock, soundtrack. Only JSON true and false count as booleans; "true" or 1 are refused.
  • webhook_url: HTTPS on port 443, a public host, no user name or password, at most 2000 characters. A URL that breaks these rules is refused with 422 validation_error (field webhook_url).
  • The generation's charge.estimated_cents is set aside from your balance when it is created. A balance that does not cover it answers 402 insufficient_balance and creates nothing; see Balance.

Overlay

JSON
"overlay": {"url": "https://example.com/logo.png", "width": 300, "height": 120, "x": 1580, "y": 40}
  • url is an HTTPS URL or, like an entry of images, the ID of an upload of your workspace: "url": "upl_7c1e2f…". An upload ID that is unknown, of another workspace or expired is 422 image_not_found (field overlay.url) at once.
  • One PNG, laid over the whole final, over the transitions and the fade at the end; not on the single clips.
  • width and height are the PNG's size in pixels, x and y its top left corner, all in pixels of the chosen resolution (1280 × 720 or 1920 × 1080), measured from the top left of the frame.
  • It has to lie within the frame: x + width at most the frame's width, y + height at most its height; otherwise 422 validation_error at once.
  • The PNG is fetched like an image URL, or read from its upload, before any clip is rendered. If it is no PNG of exactly width × height or larger than 50 MB, the generation fails with invalid_overlay and nothing is rendered; if it cannot be fetched, or its upload expired before that, with fetch_failed.
  • Transparency is kept. The overlay costs nothing extra.

Idempotency-Key

Send an Idempotency-Key header with every POST /v1/generations. If a request times out on your side, send it again with the same key: you get the generation created the first time (200 OK), never a second one that is billed again.

  • 1–255 printable ASCII characters, unique per workspace; for example your listing ID and a version.
  • The same key with a different body: 409 idempotency_conflict.
  • The key of a generation you have deleted stays used: 409 idempotency_conflict.

The final

With compose, the final is cut once every clip has ended, from the clips that succeeded, in the order of images.

  • crossfade: the clips overlap for 0.5 s. white_fade and black_fade: 0.5 s to white or black, 0.5 s back to the next clip. hard_cut: straight cuts.
  • The final starts on the first photo without a fade, so its first frame works as a thumbnail, and ends with a 1 s fade to black (to white with white_fade).
  • It has a sound track only with music: a random excerpt of the title, faded in over 0.5 s and out over 1 s.
  • It needs at least 2 clips that succeeded. With fewer, or if cutting fails twice, the generation still completes with its clips, and compose_error says so: {"code": "compose_failed", "message": "The final could not be created. The clips are available."}.
  • Clips and final are H.264 MP4 files, ready for the web; clips have no sound, a final with music carries AAC.

Retrieve a generation

GET /v1/generations/{id} returns the generation's status, options, clips and outputs, null where there is no value. Two fields of the request are not returned: images (each clip has its index instead) and webhook_url. The reference lists every field.

outputs holds one entry per clip that succeeded, in the order of images, and the final last. It fills while the generation runs: clips appear as they finish, the final when it is cut. Pick the final by kind, not by position:

JSON
{"kind": "clip", "url": "https://…", "duration_seconds": 4.04, "resolution": "1080p", "image_index": 0}
{"kind": "final", "url": "https://…", "duration_seconds": 7.58, "resolution": "1080p", "image_index": null}
  • Links are signed anew on every request and stay valid until expires_at. Download the videos, or fetch the generation again for fresh links; do not store the links. Download them without your Authorization header.
  • output_seconds: clip_seconds times the clips that succeeded. Transitions do not shorten it.
  • charge: {"currency": "EUR", "estimated_cents": 115, "charged_cents": null}. estimated_cents is the most the generation can cost, set aside from your balance when it is created; charged_cents is what it was charged, set when it has ended (0 if it failed). How both are formed: Billing.
  • An ID of another workspace answers exactly like an unknown one: 404 not_found.

List generations

GET /v1/generations?status=processing&limit=100&offset=0 returns {"items": [...], "count": 37}, newest first.

  • items holds full generations, like GET /v1/generations/{id}; count is the number of all matching ones.
  • limit 1–100 (default 20), offset 0–10,000,000, status one of queued, processing, completed, failed.
  • To follow many generations at once, poll this list with status=processing instead of each generation on its own.

Delete a generation

DELETE /v1/generations/{id} answers 204 No Content.

  • Only a generation that has completed or failed; while it runs: 409 generation_running.
  • Afterwards it answers 404 not_found, leaves the list, and a webhook not yet delivered is dropped. One that was on its way at that moment may still arrive.
  • Deleted are its clips, its final, the photos fetched from URLs, its overlay and the photo and overlay URLs we stored. An uploaded photo or overlay is deleted with it unless another generation still uses it; a deleted upload cannot be used again: upload the file anew.
  • The files are usually gone within minutes, removed once more about an hour after the generation ended, and expire after 7 days at the latest.
  • What the generation was billed is kept.

Data lifecycle

What How long
Uploads 7 days after the upload
Photos fetched from URLs, clips, finals Until expires_at, 7 days after the generation was created; storage removes them within about a day after that
Download links Until expires_at, signed on every request
Photo and overlay URLs you sent Cleared within an hour after expires_at, or when you delete the generation; an upload ID as overlay.url stays
  • After expires_at a generation still answers, with "expired": true and empty outputs.
  • A generation still running one hour before expires_at fails with timeout and is not billed; its clips that succeeded stay downloadable until expires_at. This happens only after very long waits.

Errors

Every error has the same form:

JSON
{"error": {"code": "validation_error", "message": "music requires compose.", "field": "music"}}

field names the request field concerned, or is null.

HTTP code What to do
400 invalid_request Fix the JSON or the headers; a malformed upload also answers this
401 unauthorized Check the API key and whether it was revoked
402 insufficient_balance Your balance does not cover the generation's estimated charge; add credit or switch on automatic top-ups, then send the same request again (Billing)
403 forbidden The workspace is deactivated; contact us
404 not_found Check the ID; generations of other workspaces and deleted ones are not found
405 invalid_request Use the method the route takes
409 idempotency_conflict The Idempotency-Key was used for another request or a deleted generation; use a new key
409 generation_running Delete the generation once it has completed or failed
413 image_too_large Send photos of at most 50 MB
413 invalid_request The request body is too large; send photos as uploads, not inside JSON
422 validation_error Correct the named field; do not resend the same input
422 invalid_image The upload is no JPEG, PNG or WebP
422 image_not_found The upload ID in images or overlay.url is unknown, of another workspace or expired; upload the file again
429 rate_limited Wait the seconds in Retry-After, then go on (below)
500 internal_error Retry later; tell us if it persists
503 unavailable Retry after Retry-After or a few seconds; with an Idempotency-Key a retry is safe

error of a generation, when it failed:

code Meaning
all_clips_failed No clip succeeded; each clip says why
timeout The generation did not finish before it expired
invalid_overlay The overlay is no PNG of exactly the given size, or larger than 50 MB; nothing was rendered
fetch_failed The overlay could not be fetched from its URL, or its upload no longer exists; nothing was rendered

clips[].error, for a photo that did not become a clip:

code Meaning
invalid_image Not a readable JPEG, PNG or WebP, too small for the resolution, or too many pixels
image_too_large The photo behind the URL is larger than 50 MB
image_not_found The upload expired before the clip was rendered
fetch_failed The photo could not be fetched from its URL
download_failed, inference_failed, upload_failed A failure on our side, tried once more before it is reported
timeout Rendering took too long, or the generation expired before this clip was rendered
validation_error The clip could not be started with these settings

compose_error, when a final was ordered but not made: compose_failed (see The final).

Rate limits

Each API key may send 600 requests per minute (UTC minutes) to every route except GET /v1/health. One more answers 429 rate_limited with Retry-After: the seconds until the next minute begins. Requests with an invalid key are not counted.

  • Wait for Retry-After before you continue; do not retry in a loop.
  • Use a webhook instead of polling, or poll every 5 seconds or slower.
  • Following many generations: poll GET /v1/generations?status=processing once instead of each generation.
  • Uploads count like any request.
  • If your integration needs more, contact us.

Integration checklist

  1. Keep the API key on your server, in its environment or secret store; never in a browser or an app.
  2. Make sure your photos are reachable: public HTTPS URLs that stay valid until the generation has started, or uploads from your server. Confirm that you may process them.
  3. Store the generation id with your listing, and send an Idempotency-Key with every create.
  4. Handle every status: queued, processing with its stages, completed with failed clips in it, failed, and compose_error.
  5. Verify webhook signatures, deduplicate by event_id, and keep polling as a fallback.
  6. Download the videos within 7 days, or fetch fresh links when you need them.
  7. On 429 and 503, wait for Retry-After.
  8. Watch your balance with GET /v1/balance, and on 402 insufficient_balance tell your users instead of retrying. Credit is added by card on the Billing page of the dashboard, by hand or as automatic top-ups.