# VibePeak API - Complete Documentation > VibePeak API enables programmatic creation of AI-powered real estate videos with virtual staging and text-to-speech narration. Base URL: https://api.vibepeak.ai Documentation: https://docs.vibepeak.ai ## Authentication All requests require Bearer token authentication: ``` Authorization: Bearer vpk_live_xxxxx ``` API keys are generated from the API tab of My Account at https://app.vibepeak.ai/account/profile Keys carry a prefix that fixes their mode: `vpk_live_` (live — charges credits, real video) or `vpk_test_` (test — free sandbox, watermarked sample). See Test Mode below. ## Endpoints ### POST /v1/real-estate/living-property Create an AI-powered real estate video with virtual staging. **Request Body:** - `images` (array, required): 5-9 entries, each a plain image URL string or an object with `url`, optional `room_type`, and optional per-image staging overrides `modification_mode` / `include_humans_and_pets` / `space_use` / `space_tag` (omit to inherit the request-level value; set to make an exception for one image, e.g. keep a facade original while the rest is restyled, or override one image's business use — see `space_use` below) - `voiceover_enabled` (boolean, optional): Whether the video is narrated, default true. When false, omit `voice` and `script` for a music-only/silent video (subtitles unavailable). - `voice` (object, required when `voiceover_enabled` is true): Voice configuration - `voice_id` (string, required): Voice ID - `language` (string, required): ISO 639-1 language code (e.g., "en", "es") - `modification_mode` (string, required): "no_modify" or "change_decoration". ("furnish" is no longer supported and is rejected with VALIDATION_ERROR.) - `include_humans_and_pets` (boolean, optional): Add people/pets to scenes, default true. With change_decoration it selects the two-step script budget. - `decoration_style` (string, optional): Interior style for change_decoration mode, ignored otherwise. On a commercial image (see `space_use`), it has exactly one effect: `industrial` and `mountain-rustic` keep the photographed shell's raw finishes (exposed brick, concrete, visible installations); any other value, or omitting it, renders a fully renovated space — walls plastered and painted, ceiling finished with installations hidden, new floor suited to the business — as for a residential room. The business look itself still comes from `space_use`, not `decoration_style`. A `facade_exterior` image is never renovated by this: the building's exterior finishes are kept whatever `decoration_style` is. `bathroom` and `storage_back_room` images are renovated too, even though they never get people. One of: scandinavian, minimalist, traditional, mid-century-modern, industrial, mediterranean, modern, bohemian, mountain-rustic, luxury, japandi, wabi-sabi, organic-modern, quiet-luxury. - `space_use` (string, optional): Request-level default commercial business use, one of the 17 catalog slugs: modest-restaurant, luxury-restaurant, contemporary-cafe, artisanal-ice-cream-shop, fast-food-restaurant, artisan-bakery, cocktail-bar, clothing-store, sneaker-store, bookstore, modest-office, modern-office, luxury-office, coworking-space, gym-fitness, hair-beauty-salon, spa-wellness. Only takes effect on an image whose effective `modification_mode` is change_decoration; a per-image `images[].space_use` overrides it (omit to inherit). An image with an effective use is a "commercial image": staged from the commercial catalog with use-aware people (capped at 4, no pets; bathrooms and storage/back rooms get none) instead of the residential prompt; `decoration_style` still applies to it, but only for its one renovation effect (see `decoration_style` above). Its tag is `images[].space_tag` (one of 9: customer_area, facade_exterior, waiting_reception, counter_service, kitchen_workshop, storage_back_room, bathroom, hallway_common_areas, internal_office) if set, else derived from `room_type` (bathroom/exterior/hallway/kitchen only), else customer_area. Setting `space_use`/`space_tag` explicitly on an effectively `no_modify` image, or `space_tag` with no effective use, is 400 VALIDATION_ERROR; a request-level `space_use` merely inherited by a `no_modify` image is not an error. Cannot combine with `story_mode` (400 VALIDATION_ERROR). May return 503 SPACE_USE_UNAVAILABLE (retry later, or omit space_use). Does not change the flat 15-credit price. A commercial image renders like a residential one: with change_decoration and people on, it gets the same before → after reveal and widens the script budget to two-step by the same rule as a residential image; bathroom and storage_back_room images never get people, so they stay single-pass and don't widen it — e.g. 6 cocktail-bar images with people on and change_decoration use the two-step budget (660-840 chars for 6 images). - `script` (string, required when `voiceover_enabled` is true): Narration script. Per-scene budget by mode: single-step (no_modify, people disabled, or no image — residential or commercial — qualifies as a two-step candidate) 58-87 chars/image (outer envelope across languages; the recommended length is per narration language); two-step (at least one two-step candidate: change_decoration with people for a residential image, or change_decoration with people and a tag other than bathroom/storage_back_room for a commercial image) 110-140 chars/image. Max 2000 chars. - `background_music` (boolean, optional): Enable background music, default true - `story_mode` (boolean, optional): Default false. Turns the video into one continuous day-in-the-life story told through the family from `selected_family_id` (required): the AI orders the scenes from morning to night, picks a time of day, activities, and family members per scene, and evolves the lighting across the day. Requires a `room_type` on every image. Write the script as one continuous narration (the AI chooses the scene order, not upload order); the final order appears in the completed task result's `story` block. Errors: 400 STORY_FAMILY_REQUIRED, 400 STORY_ROOM_TYPE_REQUIRED (details list the image indices), 503 STORY_MODE_UNAVAILABLE (retry later), 502 STORY_PLAN_FAILED (no credits charged). - `story_locale` (string, optional): Language of the generated scene activities (2-10 chars, e.g. "en", "es", "pt-BR"), default "en". Only honored when `story_mode` is true. - `webhook_url` (string, optional): HTTPS URL for completion notification - `elements_config` (object, optional): Configuration for watermarks, text overlays, and intro/outro branded overlays. `watermark.mode` is "single" (default, one logo at `watermark.position`/`watermark.size`) or "mosaic" (tiles the logo across the whole frame at a fixed layout, ignoring `position`/`size`; `watermark.rotation` sets the tile angle, integer -45 to 45, default -20). The top-level `enabled` gates watermark/text only; the `intro_outro` block has its own `enabled` and holds optional `intro` and `outro` selections (`templateId` the design's id (e.g. `ruled_caps`), `templateVersion` currently 1, `animation` preset, `values` keyed by the template's field ids (intros take `title`, required, 40 chars, and `subtitle`, optional, 24; the eleven contact-card outros take `agent_name`, required, 32, and `contact_line`, optional, 64), `assets` keyed by image field ids, of which the catalogue declares two, both on outros: `agent_photo`, optional, on the eleven contact cards and `custom_image`, required, on the outro of the same name, as public HTTPS image URLs; a required field that is missing, empty or whitespace-only is rejected by the request schema with 400 VALIDATION_ERROR, whose `details.field` is the field's dotted path (`elements_config.intro_outro.intro.values.title`, `elements_config.intro_outro.outro.values.agent_name` or `elements_config.intro_outro.outro.assets.custom_image`) and whose `details.issues` lists every field refused, an optional field you omit renders nothing at all rather than falling back to anything, and the `default_value` published by the catalogue is preview sample copy that is never drawn into a video; a key that is not a field id is accepted and silently ignored, plus optional `brandColorPrimary` and `brandColorContrast` as six-digit `#RRGGBB` hex per overlay; contrast requires primary, all 27 templates take both, the primary paints the line a design leads with and the contrast the second line plus the rules, frames, brackets and rings around it, and no colour is refused for how it looks, only for its shape). Overlays cover roughly the first/last 1.5 seconds and never add duration. The `custom_image` outro closes on an image of yours instead of a contact card: it is an outro like the other eleven and not an extra scene, so it takes the same window and adds no duration either; it requires `assets.custom_image`, its `values` must be empty, and brand colours are accepted and ignored because it draws no type. The image must be a JPG, PNG or WEBP of at most 8 MB with a shortest edge of at least 400 px, and when its aspect ratio differs from the video's the server extends its background to the video's shape rather than cropping it. That preparation runs while the request is accepted, so such a POST takes a few seconds and up to about 25 s when the ratios differ; a preparation that cannot run returns a retryable 503 INTRO_OUTRO_ADAPTATION_UNAVAILABLE with no task created and no credits charged. It costs no extra credits. - `subtitle` (object, optional): Subtitle configuration (preset or custom styles) - `test_scenario` (string, optional): Sandbox-only — "success" (default), "fail", or "slow". Honored only for vpk_test_ keys, silently ignored for live keys. **Response (202 Accepted):** ```json { "task_id": "task_abc123xyz", "status": "queued", "message": "Real estate video generation request accepted", "created_at": "2026-01-19T12:00:00Z", "credits_charged": 15, "livemode": true, "request_id": "req_xyz123", "_links": { "self": "/v1/tasks/task_abc123xyz", "poll_interval_seconds": 30 } } ``` **Room Types:** bedroom, kitchen, living_room, bathroom, dining_room, office, garage, basement, attic, patio, balcony, garden, pool, exterior, entrance, hallway, laundry, other **Modification Modes:** - `no_modify`: Keep rooms as-is, add realistic people - `change_decoration`: Modernize furniture and decor (`furnish` is no longer supported — requests using it are rejected with VALIDATION_ERROR.) ### POST /v1/real-estate/narrated-slideshow Create a narrated slideshow video from property images. **Request Body:** - `images` (array, required): 6-15 unique images. Each entry is EITHER a plain image URL string (static still) OR an object opting the image into a subtle camera move: `{ image_url (required), reanimate (bool, default false), movement (string|null), room_type (string, max 64, optional) }`. Do not mix strings and objects in the same array. - `movement` values (exactly six): `traveling_left`, `traveling_right`, `traveling_up`, `traveling_down`, `dolly_in`, `dolly_out`. When `reanimate` is true, `movement` is required — supply one value or `null` (auto-pick). When `reanimate` is false/omitted, `movement` must not be set. - `voiceover_enabled` (boolean, optional): Whether the video is narrated, default true. When false, omit `voice` and `script` for a music-only/silent video (`subtitle` and `avatar_id` unavailable). - `voice` (object, required when `voiceover_enabled` is true): Voice configuration (same as living-property), plus optional `voice.speed` (number, 0.5 to 2, default 1): speaking rate of the synthesized voiceover; below 1 slows it down, above 1 speeds it up; the effect depends on the voice and language (most voices follow the value closely, some apply it only partially), and each voice applies its own supported range within these bounds - `script` (string, required when `voiceover_enabled` is true): Narration script - `webhook_url` (string, optional): HTTPS URL for completion notification - `elements_config` (object, optional): Configuration for watermarks, text overlays, and intro/outro branded overlays. `watermark.mode` is "single" (default, one logo at `watermark.position`/`watermark.size`) or "mosaic" (tiles the logo across the whole frame at a fixed layout, ignoring `position`/`size`; `watermark.rotation` sets the tile angle, integer -45 to 45, default -20). The top-level `enabled` gates watermark/text only; the `intro_outro` block has its own `enabled` and holds optional `intro` and `outro` selections (`templateId` the design's id (e.g. `ruled_caps`), `templateVersion` currently 1, `animation` preset, `values` keyed by the template's field ids (intros take `title`, required, 40 chars, and `subtitle`, optional, 24; the eleven contact-card outros take `agent_name`, required, 32, and `contact_line`, optional, 64), `assets` keyed by image field ids, of which the catalogue declares two, both on outros: `agent_photo`, optional, on the eleven contact cards and `custom_image`, required, on the outro of the same name, as public HTTPS image URLs; a required field that is missing, empty or whitespace-only is rejected by the request schema with 400 VALIDATION_ERROR, whose `details.field` is the field's dotted path (`elements_config.intro_outro.intro.values.title`, `elements_config.intro_outro.outro.values.agent_name` or `elements_config.intro_outro.outro.assets.custom_image`) and whose `details.issues` lists every field refused, an optional field you omit renders nothing at all rather than falling back to anything, and the `default_value` published by the catalogue is preview sample copy that is never drawn into a video; a key that is not a field id is accepted and silently ignored, plus optional `brandColorPrimary` and `brandColorContrast` as six-digit `#RRGGBB` hex per overlay; contrast requires primary, all 27 templates take both, the primary paints the line a design leads with and the contrast the second line plus the rules, frames, brackets and rings around it, and no colour is refused for how it looks, only for its shape). Overlays cover roughly the first/last 1.5 seconds and never add duration. The `custom_image` outro closes on an image of yours instead of a contact card: it is an outro like the other eleven and not an extra scene, so it takes the same window and adds no duration either; it requires `assets.custom_image`, its `values` must be empty, and brand colours are accepted and ignored because it draws no type. The image must be a JPG, PNG or WEBP of at most 8 MB with a shortest edge of at least 400 px, and when its aspect ratio differs from the video's the server extends its background to the video's shape rather than cropping it. That preparation runs while the request is accepted, so such a POST takes a few seconds and up to about 25 s when the ratios differ; a preparation that cannot run returns a retryable 503 INTRO_OUTRO_ADAPTATION_UNAVAILABLE with no task created and no credits charged. It costs no extra credits. - `subtitle` (object, optional): Subtitle configuration (preset or custom styles) - `test_scenario` (string, optional): Sandbox-only — "success" (default), "fail", or "slow". Honored only for vpk_test_ keys, silently ignored for live keys. **Response:** Same as living-property endpoint (includes `livemode`) ### POST /v1/land Create a land transformation video from a single photo of an empty plot. **Request Body:** - `source_image_url` (string, required): Publicly accessible URL of the source land image - `format` (string, required): `"9:16"` or `"16:9"` - `mask_image_url` (string, optional): Binary mask marking the buildable area (alias: `mask_url`) - `marked_image_url` (string, optional): Pre-rendered marked terrain frame (img1); skips the marking render - `area_polygon` (array, optional): Polygon coordinates [{x, y}] normalized 0-1, min 3 points (alias: `polygon`) - `terrain_type` (string, optional): Free-form hint, e.g. `"urban"`, `"rural"`, `"industrial"` (not a closed enum) - `construction_prompts` (string[], optional): 1-8 prompts, one scene per prompt (alias: `prompts`) - `num_constructions` (integer, optional): 2-8, default 3 (ignored if scenes or prompts provided) - `style` (string, optional): Style hint for auto-generation - `exclude` (string, optional): Exclusion hint for auto-generation - `scenes` (array, optional): Fully-resolved scene chain [{image_url, prompt?, order?, camera_movement?}] (1-8 items). `order` must be >= 1; `0` is rejected - `camera_movement` (per scene, optional): one of `traveling_left`, `traveling_right`, `traveling_up`, `traveling_down`, `dolly_in`, `dolly_out`, `arc_left`, `arc_right` - `script` (string, optional): Narration script. No length or charset validation on this endpoint (~65-85 chars per scene is guidance only) - `language` (string, optional): Language code for auto-script and TTS - `voice_id` (string, optional): Voice ID for narration - `voice_speed` (number, optional): Speaking rate of the synthesized voiceover, 0.5 to 2, default 1; below 1 slows it down, above 1 speeds it up; the effect depends on the voice and language (most voices follow the value closely, some apply it only partially), and each voice applies its own supported range within these bounds - `voiceover_enabled` (boolean, optional): `false` renders without narration; omitted means narration on - `background_music` (boolean, optional): `true` adds a music bed; omitted or `false` means silent - `music_id` (string, optional): Music Library track UUID. Must be sent together with `music_kind`; only honored when `background_music` is true - `music_kind` (string, optional): `"stock"` or `"ai"`. Required whenever `music_id` is present - `subtitle_config` (object, optional): Subtitle configuration - `elements_config` (object, optional): Elements/watermark configuration. The `intro_outro` block is fully validated here too, with the same shape as the other video endpoints; the rest is passed through to the renderer. - `webhook_url` (string, optional): HTTPS URL for completion notification **Response (202 Accepted):** land uses `charged_credits` and `resolution` — NOT `credits_charged`/`preparation` like other endpoints. ```json { "task_id": "task_abc123xyz", "status": "preparing", "message": "Land transformation request accepted", "created_at": "2026-08-31T12:15:00.000Z", "livemode": true, "request_id": "req_xyz123", "charged_credits": 40, "resolution": { "stage": "preparing", "progress": 10, "credits_breakdown": { "base_render": 15, "generated_mask": 5, "generated_scene_count": 3, "generated_scenes": 15, "generated_script": 5, "total": 40 }, "used_overrides": [] }, "_links": { "self": "/v1/tasks/task_abc123xyz", "poll_interval_seconds": 30 } } ``` **Credit Model:** - Base render: 15 credits (always) - Generated mask: 5 credits (if no `mask_image_url`, `area_polygon` or `marked_image_url` provided) - Generated scenes: 5 credits per scene (if not pre-provided) - Generated script: 5 credits (if no script provided) - Minimal request (auto everything): 40 credits total - Fully resolved (scenes + script + marked frame): 15 credits total - Credits are refunded automatically if the job fails **Frame Limits:** 3-10 total frames. - Without `scenes[]`: `2 + n` where n is `construction_prompts.length`, else `num_constructions`, else 3 - With `scenes[]`: `1 + (marked_image_url ? 1 : 0) + scenes.length` — img1 counts only if `marked_image_url` is sent **Task Statuses:** preparing, queued, processing, completed, failed. Tasks that requested post-processing can also report the transitional statuses watermarking, intro_outro, and subtitling (in that order); treat them like processing and keep polling. If a post-processing step cannot finish, the task still completes and `result` carries `watermark_warning`, `intro_outro_warning`, or `subtitle_warning`. **Preparation stages (polling):** preparing (10), marking_resolved (35), terrain_resolved (50), scenes_resolved (70), script_resolved (85), resolved (100). Sparse: an explicit `marked_image_url`/`mask_image_url` skips the intermediate stages and reports resolved/100 on the first poll. `generated_image_count` counts generated scenes plus one for an auto-generated mask; `0` for a fully-resolved request. GET also returns `resolution.resolved_inputs` (whitelist: source_image_url, format, mask_image_url, area_polygon, terrain_type, scenes, construction_prompts, script) — this is where the generated scene image URLs and the auto-written script appear. **Webhook headers:** `X-VibePeak-Event` (`task.completed` / `task.failed`), `X-VibePeak-Signature` (HMAC-SHA256, hex), `X-VibePeak-Timestamp` (unix seconds). The signed message is `{timestamp}.{raw body}`, not the body alone. **Webhook Payload:** no `event`, `type` or `timestamp` fields in the body — the event name is the `X-VibePeak-Event` header. `result` carries only `video_url` and `cover_image_url` (no `duration_seconds`, `resolution` or `expires_at`). The webhook `task_id` is the external id (`vp_land_`), which is NOT the `task_id` returned at creation (`task_`) and cannot be passed to GET /v1/tasks/:taskId. ```json { "task_id": "vp_land_abc123xyz", "status": "completed", "result": { "video_url": "https://storage.vibepeak.ai/videos/land_abc123xyz.mp4", "cover_image_url": "https://storage.googleapis.com/vibepeak-audio/covers/land_abc123xyz.jpg" }, "charged_credits": 40, "resolution": { "marking": "auto", "generated_image_count": 4, "used_overrides": [] } } ``` Failure webhooks carry `status: "failed"`, an `error` object (`GENERATION_FAILED` or `GENERATION_TIMEOUT`) and `charged_credits: 0` after the automatic refund. `GENERATION_TIMEOUT` means the render was still running 180 minutes after the task was created, and it is the one failure that is not always final: if the render finishes within 48 hours of creation, the task moves from `failed` to `completed` and a `task.completed` webhook follows the `task.failed` one. The refund stands and nothing is charged again, although that `task.completed` webhook reports the original price in `charged_credits`. `marking` values: `mask` (pre-provided `marked_image_url` or `mask_image_url`; `marked_image_url` wins), `polygon` (pre-provided `area_polygon`, rasterized), `auto` (Gemini detected). `fullimage` is reserved and not currently emitted by any code path. ### GET /v1/tasks/:taskId Get the status of a video generation task. **Response:** ```json { "task_id": "task_abc123xyz", "status": "completed", "livemode": true, "result": { "video_url": "https://storage.vibepeak.ai/videos/task_abc123xyz.mp4", "duration_seconds": 45, "resolution": "1080p", "expires_at": "2026-01-26T12:00:00Z" } } ``` **Task Statuses:** queued, processing, completed, failed. Land tasks start one step earlier, in preparing, while the server resolves their inputs. Tasks that requested post-processing can also report the transitional statuses watermarking, intro_outro, and subtitling (in that order); treat them like processing and keep polling. If a post-processing step cannot finish, the task still completes and `result` carries `watermark_warning`, `intro_outro_warning`, or `subtitle_warning`. `livemode` is `true` for live tasks and `false` for test-mode sandbox tasks. Test and live tasks are isolated — a vpk_test_ key cannot read a live task and vice-versa (returns 404 TASK_NOT_FOUND). This same endpoint also polls `family-avatars` tasks created by `POST /v1/families`; the `result` shape is `{ family_id, reference_image_urls, card_image_url }` instead of the video fields above. Completed videos created with `story_mode` also include `result.story`, the day-in-the-life plan the AI chose at creation time, in final scene order: `{ arc: "morning_to_night", locale, scenes: [{ order, room, time_of_day, members_present, activity, transition_to_next }] }`. `time_of_day` is one of morning|midday|afternoon|sunset|night, or null for a scene that carries no lighting. `members_present` are indices into the family's `members` array (empty for people-free scenes). `transition_to_next` is an intent label: cut|fade|follow|match|close. Completed living-property videos whose request had at least one commercial image (an image with an effective `space_use`) also include `result.space_uses`: `[{ image_index, space_use, space_tag }, ...]`, one entry per commercial image, ordered by `image_index` (0-based position in the request's `images`). Absent for a residential-only video. Built at read time from the request, like `result.story`; GET-only, never included in webhook payloads. ### GET /v1/families List families: built-in presets, plus custom families you own or that are shared by your active organization. **Query Parameters:** - `type` (string, optional): `preset`, `custom`, or `all` (default `all`) **Response (200):** ```json { "families": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "scope": "user", "slug": "8c1d4f30-2a77-4b91-9de6-5f0a3c2b71e4", "name": "The Garcia Family", "members": [{ "role": "mother", "type": "adult" }], "card_image_url": "https://media.vibepeak.ai/families/garcia-family-card.jpg", "reference_image_urls": ["https://media.vibepeak.ai/families/garcia-family-mother.jpg"], "owner_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "org_id": null, "created_at": "2026-06-20T15:30:00Z" } ] } ``` Preset families (`scope: "preset"`) omit `id` entirely and are referenced by `slug` instead; `user`-scope families carry both. Two response quirks that differ from the request shape: every preset returns `"name": null` (the readable names live only in the docs' preset gallery, so fall back to `slug`), and preset `members` carry ONLY `role` — which holds the age category (`adult`/`child`) — with no `type` and no other descriptors. A `user` family returns every descriptor supplied at creation. A `user` family's `slug` is an opaque generated UUID, not derived from the name, and is never accepted as an address: use `id` for your own families and `slug` only for presets. A family that ends up `failed` or `pending_avatars` cannot be repaired: every member operation returns `422 FAMILY_NOT_READY`, no endpoint re-runs generation, and it still counts against the family limit. Delete it and create a new one. ### POST /v1/families Create a custom family with AI-generated avatars. Always charges **0 credits**. Requires a Pro, Max, or Enterprise plan. Supports `Idempotency-Key`. **Request Body:** - `name` (string, required): 1-80 characters - `members` (array, required): 1-6 entries, each `{ type: adult|child|senior (required), role?, age?, ethnicity?, physical?, clothing? }` - `generate_avatars` (boolean, optional): default true. When false, family is created as `pending_avatars` with no generation triggered. - `webhook_url` (string, optional): HTTPS URL for completion notification (only used when `generate_avatars` is true) **Response (202 Accepted, `generate_avatars: true`):** ```json { "family_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "task_id": "task_fam456xyz", "status": "generating", "livemode": true, "_links": { "self": "/v1/families/3fa85f64-5717-4562-b3fc-2c963f66afa6", "task": "/v1/tasks/task_fam456xyz" } } ``` **Response (201 Created, `generate_avatars: false`):** ```json { "family_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "status": "pending_avatars" } ``` Poll the `task_id` via `GET /v1/tasks/:taskId` (the result is `{ family_id, reference_image_urls, card_image_url }`), or receive a `task.completed` webhook. ### GET /v1/families/:idOrSlug Get a single family, including its `status`: `ready`, `generating`, `failed`, or `pending_avatars` (presets are always `ready`). Pass a UUID for any family visible to you, or a slug for a preset family (e.g. `young-family`). An unknown slug returns `404 FAMILY_NOT_FOUND`. ### DELETE /v1/families/:familyId Delete a family you own. UUID only. Returns `204 No Content` (idempotent). Only the owner can delete; presets and org-shared families you don't own return `404 FAMILY_NOT_FOUND`. Requires a Pro, Max, or Enterprise plan. Existing videos made with the family are unaffected. ### Family member endpoints Owner-only, UUID only, require a Pro, Max, or Enterprise plan. The family must be `ready`: another edit already in progress rejects the request with `422 FAMILY_NOT_READY`. On success, each returns `202 { family_id, task_id, status: "generating", livemode, _links: { self, task } }`, pollable via `GET /v1/tasks/:taskId` or a webhook (`webhook_url` optional in the body). On completion, the affected member's portrait and the family's group `card_image_url` are regenerated. On failure, the family is left exactly as it was. Support test-mode (same shape, `livemode: false`, no real changes) and `Idempotency-Key` on POST/PATCH. - `POST /v1/families/:familyId/members`: add a member. Body is a single member object (`type` required; `role`, `age`, `ethnicity`, `physical`, `clothing` optional). Max 6 members total, else `422 FAMILY_MEMBER_LIMIT_EXCEEDED`. - `PATCH /v1/families/:familyId/members/:index`: update a member. `index` is 0-based, per the order of `members` from Get Family. Body is partial fields, at least one required. Unknown index returns `404 FAMILY_MEMBER_NOT_FOUND`. - `POST /v1/families/:familyId/members/:index/regenerate`: regenerate a member's portrait with its existing descriptors. No body required. - `DELETE /v1/families/:familyId/members/:index`: remove a member and its portrait. A family can't go to 0 members, else `422 FAMILY_MEMBER_MINIMUM`. Also returns `202` (not `204`) since the group card is re-derived. ### selected_family_id (on POST /v1/real-estate/living-property) Optional identifier field to cast a consistent family across every scene: pass the UUID for a family you own or one shared by your organization, or the slug for a preset. The family must be `ready`. Using a family (preset or your own) requires a Pro, Max, or Enterprise plan. Members can appear in different combinations from scene to scene, always drawn from the same cast. Omitting it leaves casting unchanged. Errors: `404 FAMILY_NOT_FOUND`, `422 FAMILY_NOT_READY`, `403 PLAN_NOT_ALLOWED`. Does not change the video's credit cost. ### POST /v1/real-estate/property-showcase Generate a branded real estate property showcase image from a single property photo and a selected template. **Request Body:** - `template_id` (string, required): One of `hero_impact`, `info_story`, `luxury_vertical`, `dynamic_collage`, `ad_performance`, `cover_blurs`, `minimalist`, `magazine`, `dark_minimalist`, `tech`, `luxury_real_estate`, `modern`, `full_bleed_panel`, `grid_collage`, `split_panel`, `framed_border`. Determines the layout, the output aspect ratio, and which optional fields are accepted. Aspect ratio is 9:16 (vertical) for hero_impact, info_story, luxury_vertical, dynamic_collage, ad_performance and cover_blurs; 16:9 (landscape) for minimalist, magazine, dark_minimalist, tech, luxury_real_estate and modern. The last four are brand layouts, authored for both orientations: they require `brand_profile_id`, accept `aspect_ratio` (9:16 by default, or 16:9), render `price` and `size` with an optional `label`, and take 0 supporting images except `grid_collage`, which accepts 0 to 3. Full Bleed Panel is an edge to edge photo with a white logo card and a three-band information panel in the brand palette; Grid Collage is a main photo over a three-cell row of supporting photos (empty cells filled with the brand's secondary colour) and an information bar below; Split Panel is a solid brand block (35 percent) beside or above the photo (65 percent) with the logo and data; Framed Border is a solid brand frame around the photo with a bottom band (22 percent) carrying the logo and data. `custom` is a seventeenth value that names a reference design you registered yourself (see "Custom property showcase templates" below): it requires `custom_template_id`, rejects `aspect_ratio` and `brand_profile_id`, and takes its aspect ratio, its accepted fields, its photo count and its logo contract from the stored template spec. A third-party API key needs a Pro, Max or Enterprise plan to generate with it, otherwise 403 PLAN_REQUIRED. - `brand_profile_id` (string, brand templates only): One of `remax` (RE/MAX, #CE0000), `century21` (Century 21, #000000), `kw` (Keller Williams, #B40101), `ev` (Engel & Völkers, #0A0A0A), `era` (ERA Real Estate, #6E2585), `iqi` (IQI Global, #0B2545), `sothebys` (Sotheby's International Realty, #002349), `cbre` (CBRE, #003F2D), `colliers` (Colliers, #003DA5), `eastdil` (Eastdil Secured, #14213D), `zillow` (Zillow, #006AFF). REQUIRED by full_bleed_panel, grid_collage, split_panel and framed_border: omitting it returns VALIDATION_ERROR on the brand_profile_id path with "brand_profile_id is required for the