n8n Real Estate Video Automation With the PhotoAIVideo API
How do you make listing videos in n8n with the PhotoAIVideo API?
n8n has no PhotoAIVideo node, so you build the pipeline from HTTP Request nodes. A Webhook receives the listing's photo links, each photo is re-uploaded through a presigned URL because the API refuses external image URLs, every clip job is polled with Wait and If nodes, and a Code node merges 2–30 finished clips into a reel.
Last reviewed · By Zach Calhoon, Founder
For ops staff, listing coordinators and small teams on self-hosted or Cloud n8n who want to automate listing videos without code. Endpoints live on the Real Estate Video API hub; this is the no-code real estate video API route.
n8n pipeline at a glance
| Built for | Ops teams and coordinators running n8n (self-hosted or Cloud) |
|---|---|
| PhotoAIVideo node in n8n | None — generic HTTP Request node |
| Auth | Bearer auth credential (or Header auth: Authorization) |
| Trigger | Webhook from your CRM/form, or a Schedule Trigger |
| Photo hand-off | GET photo as File → PUT n8n Binary File to presignedUrl |
| Status | Poll — the docs document no callback |
| Cost | 1 credit per clip + 1 per reel; failures refunded |
| No-code alternative | Automation Mode in the app |
Which n8n nodes does the workflow use?
Twelve steps, webhook to reel. Each PhotoAIVideo call is an HTTP Request node on one shared credential.
| # | n8n node | Settings that matter | PhotoAIVideo endpoint |
|---|---|---|---|
| 1 | Webhook | POST; test URL first, production URL once it works | — |
| 2 | HTTP Request “Check credits” + If | Bearer credential; stop if remainingCredits < photos + reels | GET /api/v1/credits |
| 3 | HTTP Request “Get upload URLs” | Query parameter count = number of photos (1–20) | GET /api/v1/presigned-urls?count= |
| 4 | Code “Pair photos” | Upload slot i joined to photo i | — |
| 5 | HTTP Request “Download photo” | GET; Response Format File, Put Output in Field data | — (your photo host) |
| 6 | HTTP Request “Upload photo” | PUT; Body n8n Binary File, field data; Content-Type image/jpeg or image/png | presignedUrl |
| 7 | HTTP Request “Create clip” | POST; Send Body → JSON → Using JSON | POST /api/v1/videos |
| 8 | Wait + HTTP Request “Clip status” + If | After Time Interval; loop back until completed/failed; attempt cap | GET /api/v1/videos/:jobId |
| 9 | Code “Order clips” | Run Once for All Items; sort by photo position | — |
| 10 | HTTP Request “Merge reel” | POST Using JSON; once per cut | POST /api/v1/reels |
| 11 | Wait + HTTP Request “Reel status” + If | Same loop and cap as step 8 | GET /api/v1/reels/:jobId |
| 12 | HTTP Request “Send link back” | Post output_video_url or download_url to the CRM, a sheet or email | — (your systems) |
Is there a PhotoAIVideo node for n8n?
No. There is no official or community node, template or partnership. An n8n listing video workflow runs on the n8n HTTP Request node video API pattern, pointed at the REST endpoints under https://app.photoaivideo.com.
Save the key once. Copy it from the API dashboard, create a Bearer auth credential (or Header auth named Authorization with value Bearer plus the key) and pick it under Authentication on each API node. All keys on an account draw from one credit balance.
Want one-click videos with no trigger from your own systems? Use Automation Mode inside the app.
Why can't n8n pass the CRM's photo links straight to the API?
Those links point at the CRM's own servers, and the video endpoint only takes images stored with PhotoAIVideo. Each photo detours through four nodes first:
- Request upload slots in one call. GET /api/v1/presigned-urls?count=<photos> (1–20, free) returns a presignedUrl and publicUrl per slot.
- Pair slots with photos. A Code node joins slot i to photo i.
- Fetch the photo as a file. GET the link with Response Format File, output field data.
- PUT the bytes. PUT to presignedUrl as n8n Binary File (field data) with Content-Type image/jpeg or image/png; publicUrl becomes imageUrl.
Over 20 photos needs a second presigned call, though at about 5 seconds per photo, a dozen already fill a minute.
How do you configure the clip request without the cURL import breaking it?
Pasting the docs' curl into Import cURL backfires. n8n documents that the importer always brings values in as strings, so 5 arrives as "5", effects turn into text, and existing settings are overwritten. The API answers with a 400 listing the allowed values.
Set "Create clip" up by hand: POST to https://app.photoaivideo.com/api/v1/videos, Send Body on, JSON, Specify Body Using JSON, with expressions that keep numbers numeric:
{
"prompt": "{{ $json.prompt }}",
"imageUrl": "{{ $json.publicUrl }}",
"effects": {{ JSON.stringify($json.effects) }},
"duration": 5,
"model": "hypernova"
}effects holds codes from the 19 camera moves (push_in, orbit_left, crane_up and so on); duration is 4, 5 or 6. Acceptance costs 1 credit:
{"jobId":"…","status":"pending","model":"hypernova","creditsCharged":1}Keep jobId on the item. No rate limit is documented, but Batching can still space out a large post.
How should the workflow wait for clips to finish?
Only polling is documented; nothing calls n8n back. The loop is a Wait (After Time Interval), a "Clip status" GET to /api/v1/videos/{{ $json.jobId }} and an If on status: completed continues, failed goes to an alert quoting error_message, anything else wires back to the Wait.
n8n warns that a loop whose stop condition never matches gets stuck. Add one to an attempts field each pass and route the item to the alert after about 20.
Waits under 65 seconds stay in memory; longer ones are offloaded to the database. Use 20–30 seconds for clips. Hypernova takes about 10 seconds of model time per clip, but queues vary.
Guard credits first. Straight after the trigger, GET /api/v1/credits and stop with an alert when remainingCredits is under photos plus reels, before a mid-run 402.
How do the clips become one reel in the right order?
Items run independently, so the kitchen may finish before the facade. A Code node in Run Once for All Items mode sorts the completed items by listing position into one videoJobIds array of 2–30, exterior first as the establishing shot. Failed photos just drop out.
Merge it twice. The MLS cut is landscape and unbranded: no logo, ending card or address, music off or one track. The social cut is portrait with the address textOverlay and an ending card. Each merge is 1 credit and reuses the clips.
{
"videoJobIds": {{ JSON.stringify($json.orderedJobIds) }},
"orientation": "landscape",
"musicType": "no_music"
}Poll GET /api/v1/reels/:jobId the same way, then send output_video_url or download_url to the CRM, a sheet or an email. Retention isn't documented, so keep your own MP4 copy.
What should happen when something fails?
A failed PhotoAIVideo job carries an error_message such as "The photo is too large. Use a photo of at most 6000 pixels on each side. The credit for this job was refunded." Forward it to a person.
A dead photo link, expired credential or CRM error stops the execution in n8n instead. Choose an error workflow under Workflow Settings → Error workflow; it starts with an Error Trigger.
Test with Listen for test event on the Webhook's test URL, then point the CRM at the production URL. The n8n webhook new listing trigger can also be a Schedule Trigger.
What does one listing look like end to end?
Illustrative example — not a real listing, CRM or customer. A 1940s Cape Cod with two dormer bedrooms; the form posts 11 photo links. A floor plan is filtered out, leaving 10. The guard needs 12 credits (10 clips, 2 reels), the balance covers it, and one count=10 call fetches upload URLs.
Ten jobs charge 10 credits. One dormer photo fails as too large, is refunded and alerts the coordinator. The other nine run front exterior, entry, living room with fireplace, dining, kitchen, first-floor bedroom, bath, dormer bedroom, backyard.
| Step | Items | Credits |
|---|---|---|
| Credit guard | 10 photos + 2 reels planned | 0 (needs 12) |
| Clip jobs accepted | 10 | 10 |
| Dormer photo fails (too large) | 1 | −1 refunded |
| MLS + social merges | 9 ids × 2 cuts | 2 |
| First run, net | 9 clips, 2 reels | 11 |
| Resized photo, one-photo run | 1 | 1 |
| Re-merge both cuts | 10 ids × 2 cuts | 2 |
| Listing total | 10 clips, 4 reels | 14 |
After a resize, the photo reruns alone and both cuts re-merge with 10 ids. Real renders: examples; plans: pricing.
What stays outside PhotoAIVideo
n8n downloads photos, filters floor plans and private shots, sets order and moves, stores job ids and copies the MP4. The API only makes clips and reels and reports status.
Frequently Asked Questions
Run one listing through n8n
Grab a key, wire the test webhook and watch a single listing reach both cuts before you switch on the production URL.
Sources
- n8n docs: HTTP Request node: body types, Import cURL; accessed November 30, 2026.
- n8n docs: HTTP Request credentials: Bearer and Header auth; accessed November 30, 2026.
- n8n docs: Wait node: 65-second rule; accessed November 30, 2026.
- n8n docs: Looping: loop-back with If; accessed November 30, 2026.
- n8n docs: Loop Over Items: stuck-loop warning; accessed November 30, 2026.
- n8n docs: If node: AND/OR conditions; accessed November 30, 2026.
- n8n docs: Webhook node: test and production URLs; accessed November 30, 2026.
- n8n docs: Error handling: Error Trigger; accessed November 30, 2026.
- n8n docs: Hosting: Community edition; accessed November 30, 2026.
- n8n docs: Choose n8n: Cloud or self-hosted; accessed November 30, 2026.
- PhotoAIVideo API v1 docs: auth, credits, uploads, jobs, errors; accessed November 30, 2026.
n8n is a trademark of its owner; PhotoAIVideo isn't affiliated with or endorsed by n8n.