{"name":"ClipForge Studio API","version":"79e7dcf","base":"https://clipforge.thetempleofdoom.com/api/v1","about":"ClipForge Studio is a free, watermark-free video editor that runs in your browser and turns long videos into ranked shorts. Video files open from disk and are processed in the browser (WebAudio, WebCodecs, WebGL2, Whisper on WebGPU/WASM); they never upload. The API also runs video jobs on the server (opt-in): send a video file or a direct link and get back ranked, captioned vertical shorts with filler words, stutters, retakes and pauses removed and an automatic color grade, plus a small unedited \"before\" preview of each, transcripts, SRT/VTT, thumbnails and public share links. The JSON tools plan shorts from transcript timestamps, Hook Score a transcript, build word-by-word captions, convert SRT/VTT, plan silence cuts and validate .clipforge.json projects.","auth":"JSON tools: no key, 300 calls per hour per IP. Video jobs and share links: a free API key (POST /api/v1/keys), sent as Authorization: Bearer <key>; 20 jobs per day, up to 2048 MB and 90 min per video, files deleted after 24 h.","endpoints":[{"method":"GET","path":"/api/v1","what":"This explainer (HTML for browsers, JSON for agents)."},{"method":"GET","path":"/api/v1/openapi.json","what":"OpenAPI 3.1."},{"method":"GET","path":"/api/v1/health","what":"Liveness, version, GPU worker state."},{"method":"GET","path":"/api/gpu/status","what":"Optional GPU worker: online or offline (the editor falls back to the browser)."},{"method":"POST","path":"/api/gpu/transcribe","what":"GPU mode only: 16 kHz mono WAV body → word timestamps (faster-whisper)."},{"method":"POST","path":"/api/gpu/score-hooks","what":"GPU mode only: {windows:[{start,end,text,score}]} → LLM hook scores, titles, reasons."},{"method":"POST","path":"/api/gpu/render","what":"GPU mode only: multipart project (.clipforge.json) + media (source video) → MP4 (h264_nvenc, libx264 fallback)."},{"method":"POST","path":"/api/v1/keys","what":"Create a free API key {name?} → {api_key, key_id, webhook_secret}. Shown once."},{"method":"GET","path":"/api/v1/me","what":"Key info, jobs left today, limits."},{"method":"DELETE","path":"/api/v1/me","what":"Revoke this key."},{"method":"POST","path":"/api/v1/jobs","what":"Start a job. JSON {source_url, ...options}, or the video file as the body (Content-Type video/*, options as query string, X-Filename header)."},{"method":"POST","path":"/api/v1/uploads","what":"Start a chunked upload for files over ~95 MB {size, filename} → {upload_id, chunk_bytes}. Then PUT each piece, then POST /api/v1/jobs {upload_id, ...options}."},{"method":"PUT","path":"/api/v1/uploads/{id}","what":"Send the next piece: body = bytes, ?offset=<bytes already sent>. ≤ 50 MB per piece. → {received, size, complete}."},{"method":"GET","path":"/api/v1/uploads/{id}","what":"How many bytes have arrived (to resume)."},{"method":"GET","path":"/api/v1/jobs","what":"List your jobs."},{"method":"GET","path":"/api/v1/jobs/{id}","what":"Status, progress, shorts with Hook Scores, titles, hashtags, signed download links."},{"method":"GET","path":"/api/v1/jobs/{id}/transcript","what":"Transcript ?format=json|srt|vtt|text."},{"method":"POST","path":"/api/v1/jobs/{id}/clips","what":"Render a custom range {start, end, title?, options?}."},{"method":"POST","path":"/api/v1/jobs/{id}/restore","what":"Full-edit jobs: put cuts back (or cut them again) and re-render {restore:[cut ids], cut:[cut ids], keep_pauses?}."},{"method":"POST","path":"/api/v1/jobs/{id}/shorts/{n}/share","what":"Public share link for a rendered short."},{"method":"DELETE","path":"/api/v1/jobs/{id}","what":"Delete the job and its files now."},{"method":"GET","path":"/api/v1/jobs/{id}/files/{file}","what":"Download (signed links from the job; no key needed while the link is valid). Supports Range."},{"method":"POST","path":"/api/v1/shares","what":"Share a finished video: MP4/WebM as the body (?title=). No key: 10/day per IP, kept 7 days; with a key: 30 days. Returns {url, delete_token}."},{"method":"GET","path":"/api/v1/shares","what":"Your share links (key)."},{"method":"DELETE","path":"/api/v1/shares/{token}","what":"Delete a share (key that made it, or X-Delete-Token)."},{"method":"GET","path":"/s/{token}","what":"Public share page (video player, download, Open Graph)."},{"method":"POST","path":"/api/v1/shorts/plan","what":"Plan ranked shorts with Hook Scores, titles, hashtags from transcript timestamps. Body {segments, words?, energy?, silences?, duration?, count?, min_sec?, max_sec?}.","mcp_tool":"plan_shorts"},{"method":"POST","path":"/api/v1/hooks/score","what":"Hook Score windows of a transcript 1-99. Body {segments, words?, energy?, windows?}.","mcp_tool":"score_hooks"},{"method":"POST","path":"/api/v1/captions/convert","what":"Convert captions SRT ⇄ VTT ⇄ JSON. Body {captions, to}.","mcp_tool":"convert_captions"},{"method":"POST","path":"/api/v1/captions/make","what":"Word-by-word caption cues from a transcript, optionally retimed after cuts. Body {segments | words, max_words?, cuts?, format?}.","mcp_tool":"make_captions"},{"method":"POST","path":"/api/v1/silences/plan","what":"Ripple cut list for gaps over min_gap_sec. Body {segments | words | silences, duration?, min_gap_sec?}.","mcp_tool":"plan_silence_cuts"},{"method":"POST","path":"/api/v1/projects/validate","what":"Validate and summarise a .clipforge.json project. Body {project}.","mcp_tool":"validate_project"},{"method":"GET","path":"/api/v1/info","what":"Caption styles, fonts, color presets, formats, layouts, editor links.","mcp_tool":"clipforge_info"}],"examples":["KEY=$(curl -s -X POST https://clipforge.thetempleofdoom.com/api/v1/keys -H 'content-type: application/json' -d '{\"name\":\"me\"}' | jq -r .api_key)","curl -X POST 'https://clipforge.thetempleofdoom.com/api/v1/jobs?count=5&platform=tiktok' -H \"Authorization: Bearer $KEY\" -H 'content-type: video/mp4' -H 'X-Filename: talk.mp4' --data-binary @talk.mp4","# files over 95 MB (Cloudflare limit): chunked upload\nSIZE=$(stat -c%s talk.mp4); ID=$(curl -s -X POST https://clipforge.thetempleofdoom.com/api/v1/uploads -H \"Authorization: Bearer $KEY\" -H 'content-type: application/json' -d \"{\\\"size\\\":$SIZE,\\\"filename\\\":\\\"talk.mp4\\\"}\" | jq -r .upload_id)\nsplit -b 50m -d talk.mp4 part_; OFF=0; for f in part_*; do curl -s -X PUT \"https://clipforge.thetempleofdoom.com/api/v1/uploads/$ID?offset=$OFF\" -H \"Authorization: Bearer $KEY\" -H 'content-type: application/octet-stream' --data-binary @$f; OFF=$((OFF+$(stat -c%s $f))); done\ncurl -X POST https://clipforge.thetempleofdoom.com/api/v1/jobs -H \"Authorization: Bearer $KEY\" -H 'content-type: application/json' -d \"{\\\"upload_id\\\":\\\"$ID\\\",\\\"count\\\":5}\"","curl -X POST https://clipforge.thetempleofdoom.com/api/v1/jobs -H \"Authorization: Bearer $KEY\" -H 'content-type: application/json' -d '{\"source_url\":\"https://example.com/talk.mp4\",\"count\":5,\"caption_style\":\"neon\",\"webhook_url\":\"https://example.com/hook\"}'","curl https://clipforge.thetempleofdoom.com/api/v1/jobs/JOB_ID -H \"Authorization: Bearer $KEY\"","curl -X POST https://clipforge.thetempleofdoom.com/api/v1/shorts/plan -H 'content-type: application/json' -d '{\"segments\":[{\"text\":\"Here is the secret nobody tells you.\",\"start\":2,\"end\":5}, {\"text\":\"Why? Because the first three seconds decide everything.\",\"start\":5.4,\"end\":9}],\"count\":1,\"min_sec\":5}'","curl -X POST https://clipforge.thetempleofdoom.com/api/v1/captions/convert -H 'content-type: application/json' -d '{\"captions\":\"1\\n00:00:01,000 --> 00:00:02,500\\nHello there\\n\",\"to\":\"vtt\"}'"],"mcp":{"url":"https://clipforge.thetempleofdoom.com/mcp","transport":"streamable-http","card":"https://clipforge.thetempleofdoom.com/.well-known/mcp.json","config":{"mcpServers":{"clipforge":{"url":"https://clipforge.thetempleofdoom.com/mcp"}}},"stdio":{"command":"node","args":["clipforge-mcp-server.mjs"],"download":"https://clipforge.thetempleofdoom.com/clipforge-mcp-server.mjs"},"tools":["plan_shorts","score_hooks","convert_captions","make_captions","plan_silence_cuts","validate_project","clipforge_info","create_api_key","create_job","get_job","list_jobs","get_transcript","render_clip","share_short","restore_cuts","delete_job"],"resources":["clipforge://docs/overview","clipforge://presets","clipforge://schema/project"]},"browser_api":"In the editor, window.ClipForgeAPI has autoEdit, cleanupPlan, setCompare, analyzeVideo, generateShorts, createShortFromRange, removeSilences, addZoomPunches, updateCaptionStyle, getTimelineState, loadTimelineState, exportShort; events project:loaded, shorts:generated, timeline:updated, render:completed.","gpu":{"configured":false,"note":"Optional. Off unless GPU_WORKER_URL is set on the server and the user turns GPU mode on in Settings."},"openapi":"https://clipforge.thetempleofdoom.com/api/v1/openapi.json","llms":"https://clipforge.thetempleofdoom.com/llms.txt"}