Edit Motion Graphics Video Endpoint

Edit an existing motion graphics video by modifying its Remotion code via LLM.

This endpoint takes an edit prompt (natural language instruction) and:

  1. Fetches the video's current Remotion TSX code
  2. Uses Claude to modify the code based on the edit instruction
  3. Re-renders the video using Remotion CLI
  4. Updates the video record with the new code and video URL

Args: video_id: UUID of the video to edit project_id: Project ID for authorization prompt: Edit instruction (e.g., "Make the title bigger") chat_history: JSON-encoded array of previous chat messages for context attachments: Optional list of image/video files to add to the motion graphic

Returns: Success response with updated video data

post/api/videos/{video_id}/edit-motion-graphics

Path parameters

video_idstring required

Response

Successful Response

{"stackTrail":"paths:/api/videos/{video_id}/edit-motion-graphics:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.