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

Request

  • Base URL: https://api.latted.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.latted.com/api/videos/{video_id}/edit-motion-graphics
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

video_idstring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 20 revisions of this API.