Four steps.
- 01
Draw the editor, keep the key on your server
The player, the timeline and the buttons are yours. A thin backend holds the API key and forwards each action to POST /v1/<tool>; users upload straight to a media.upload URL.
- 02
Map each button to one tool
Split is clip.split, trim is clip.trim, a caption is caption.add, a fade is audio.fade, speed is clip.set_speed, and edit.batch applies many edits in one call. Each returns a new timeline_id: undo and redo move between ids, and timeline.history lists them.
- 03
Draw the timeline and the preview
timeline.get returns tracks and clips with times in frames, to draw as your timeline. render.frames gives pictures for the playhead and thumbnails; a short export with the mp4_h264_fast preset plays a range with sound.
- 04
Export
export.video renders the timeline as MP4, ProRes, GIF, WAV or MP3, and export.timeline writes FCPXML, OTIO, EDL, SRT or VTT. job.get waits for the render and gives the download link.