Generate Scene
Generate a new scene with AI-generated video plan.
This endpoint:
- Creates a new scene at the end of the project
- Optionally processes uploaded reference images
- Generates a video plan using LLM (keyframes and motion videos)
- Saves keyframe and video records to the database
- Returns the newly created scene with its plan
Args: project_id: Project ID to add scene to description: Description of the scene to generate duration: Optional duration in milliseconds. If not provided (None/empty), uses 'auto' mode where duration is determined by ai_video_generation.py based on voiceover length files: Optional reference images for generation current_user: Authenticated user db: Database session
Returns: Scene response with generated plan
post/api/projects/{project_id}/scenes/generate
Path parameters
project_idstring required
Response
Successful Response
object required
Changes
No recorded changes to this endpoint across all 1 revision of this API.