---
title: "Generate Scene Video"
method: POST
path: "/api/projects/{project_id}/scenes/{scene_id}/video/generate"
---

# Generate Scene Video

`POST /api/projects/{project_id}/scenes/{scene_id}/video/generate`

Generate final video for a scene based on its approved storyboard (element sequence).

This endpoint:
1. Validates that the scene has a valid element sequence with keyframes and videos
2. Sets the scene status to 'generating'
3. Runs video generation in the background using generate_scene_video_from_sequence
4. Updates are propagated to clients via Supabase Realtime CDC

Args:
    background_tasks: FastAPI background tasks
    project_id: Project ID
    scene_id: Scene ID to generate video for
    current_user: Authenticated user
    
Returns:
    Success response indicating video generation has started

## Path parameters

- `project_id` string, required
- `scene_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/latted/apis/motion-graphics-designer-api.md) · [All operations](https://skmtc.dev/latted/apis/motion-graphics-designer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latted/motion-graphics-designer-api/revisions/54e858aff21b/schema)
