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=1answers200(401if 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>"
// Run on your server, as quickstart.mjs. Never expose your API key in browser code.
import { writeFile } from "node:fs/promises";
const API = "https://api.estateclip.ai/v1";
const HEADERS = { Authorization: `Bearer ${process.env.ESTATECLIP_API_KEY}`, "Content-Type": "application/json" };
async function call(method, path, body, headers = {}) {
const response = await fetch(API + path, {
method,
headers: { ...HEADERS, ...headers },
body: body === undefined ? undefined : JSON.stringify(body),
});
if (!response.ok) throw new Error(`${method} ${path}: ${response.status} ${await response.text()}`);
return response.json();
}
let generation = await call(
"POST",
"/generations",
{
images: ["https://example.com/living-room.jpg", "https://example.com/exterior.jpg"],
resolution: "1080p",
compose: true,
music: true,
},
{ "Idempotency-Key": "listing-4711-v1" },
);
while (!["completed", "failed"].includes(generation.status)) {
await new Promise((resolve) => setTimeout(resolve, 5000));
generation = await call("GET", `/generations/${generation.id}`);
}
for (const output of generation.outputs) {
const name = output.kind === "final" ? "final.mp4" : `clip-${String(output.image_index).padStart(2, "0")}.mp4`;
// A plain download: the link is signed, so it gets no Authorization header.
const video = await fetch(output.url);
await writeFile(name, Buffer.from(await video.arrayBuffer()));
}
# Run on your server. Never expose your API key in browser code.
import json
import os
import time
from urllib.request import Request, urlopen
API = "https://api.estateclip.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['ESTATECLIP_API_KEY']}", "Content-Type": "application/json"}
def call(method: str, path: str, body: dict | None = None, headers: dict | None = None) -> dict:
data = json.dumps(body).encode() if body is not None else None
request = Request(API + path, data=data, headers={**HEADERS, **(headers or {})}, method=method)
with urlopen(request) as response:
return json.load(response)
generation = call(
"POST",
"/generations",
{
"images": ["https://example.com/living-room.jpg", "https://example.com/exterior.jpg"],
"resolution": "1080p",
"compose": True,
"music": True,
},
headers={"Idempotency-Key": "listing-4711-v1"},
)
while generation["status"] not in ("completed", "failed"):
time.sleep(5)
generation = call("GET", f"/generations/{generation['id']}")
for output in generation["outputs"]:
name = "final.mp4" if output["kind"] == "final" else f"clip-{output['image_index']:02d}.mp4"
# A plain download: the link is signed, so it gets no Authorization header.
with urlopen(output["url"]) as response, open(name, "wb") as file:
file.write(response.read())
- Keep the
idof the generation and ask for it untilstatusiscompletedorfailed; 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 yourAuthorizationheader (they point to our storage, which must not see your key). They are valid untilexpires_at. - Photos that are not online: upload each one first (see Upload) and put the
upl_…IDs from the answers intoimagesinstead 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 answers401 unauthorized; a key of a deactivated workspace403 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 ofimages, with its ownstatusanderror.- 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 https://api.estateclip.ai/v1/uploads \
-H "Authorization: Bearer $ESTATECLIP_API_KEY" \
-F "file=@living-room.jpg"
Answers 201 Created:
{"id": "upl_7c1e2f…", "content_type": "image/jpeg", "size_bytes": 2483021, "expires_at": "2026-11-25T09:30:00Z"}
- One photo per request, field
file, asmultipart/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_foundon 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 withimage_too_large, one that is no readable JPEG, PNG or WebP withinvalid_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 at1080p. 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
720pand 960 × 540 for1080p, after the rotation stored in its EXIF data; smaller photos fail their clip withinvalid_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.
nullis accepted only forwebhook_url. - Unknown fields are refused with
422 validation_error, as aretransition,musicoroverlaywithoutcompose. musicfolders:alternative,ambient,blues,classical,electronic,hip_hop,pop,rnb_soul,rock,soundtrack. Only JSONtrueandfalsecount as booleans;"true"or1are 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 with422 validation_error(fieldwebhook_url).- The generation's
charge.estimated_centsis set aside from your balance when it is created. A balance that does not cover it answers402 insufficient_balanceand creates nothing; see Balance.
Overlay
"overlay": {"url": "https://example.com/logo.png", "width": 300, "height": 120, "x": 1580, "y": 40}
urlis an HTTPS URL or, like an entry ofimages, the ID of an upload of your workspace:"url": "upl_7c1e2f…". An upload ID that is unknown, of another workspace or expired is422 image_not_found(fieldoverlay.url) at once.- One PNG, laid over the whole final, over the transitions and the fade at the end; not on the single clips.
widthandheightare the PNG's size in pixels,xandyits 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 + widthat most the frame's width,y + heightat most its height; otherwise422 validation_errorat 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×heightor larger than 50 MB, the generation fails withinvalid_overlayand nothing is rendered; if it cannot be fetched, or its upload expired before that, withfetch_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_fadeandblack_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_errorsays 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:
{"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 yourAuthorizationheader. output_seconds:clip_secondstimes the clips that succeeded. Transitions do not shorten it.charge:{"currency": "EUR", "estimated_cents": 115, "charged_cents": null}.estimated_centsis the most the generation can cost, set aside from your balance when it is created;charged_centsis what it was charged, set when it has ended (0if 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.
itemsholds full generations, likeGET /v1/generations/{id};countis the number of all matching ones.limit1–100 (default 20),offset0–10,000,000,statusone ofqueued,processing,completed,failed.- To follow many generations at once, poll this list with
status=processinginstead of each generation on its own.
Delete a generation
DELETE /v1/generations/{id} answers 204 No Content.
- Only a generation that has
completedorfailed; 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_ata generation still answers, with"expired": trueand emptyoutputs. - A generation still running one hour before
expires_atfails withtimeoutand is not billed; its clips that succeeded stay downloadable untilexpires_at. This happens only after very long waits.
Errors
Every error has the same form:
{"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-Afterbefore 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=processingonce instead of each generation. - Uploads count like any request.
- If your integration needs more, contact us.
Integration checklist
- Keep the API key on your server, in its environment or secret store; never in a browser or an app.
- 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.
- Store the generation
idwith your listing, and send anIdempotency-Keywith every create. - Handle every status:
queued,processingwith its stages,completedwith failed clips in it,failed, andcompose_error. - Verify webhook signatures, deduplicate by
event_id, and keep polling as a fallback. - Download the videos within 7 days, or fetch fresh links when you need them.
- On
429and503, wait forRetry-After. - Watch your balance with
GET /v1/balance, and on402 insufficient_balancetell your users instead of retrying. Credit is added by card on the Billing page of the dashboard, by hand or as automatic top-ups.