# How to vibe code your own video editor

> Give your coding agent (Claude Code, Cursor or Codex) cuttingfloor’s OpenAPI spec and an API key, and describe the editor you want. It builds the screens; the REST API does the editing: uploads, cuts, captions, music, previews and MP4 exports. You never write a video pipeline, because every edit it needs is already one call.

Canonical: https://cuttingfloor.ai/guides/vibe-code-a-video-editor · Updated: 2026-11-28 · Index: https://cuttingfloor.ai/llms.txt

## How

1. **Make an API key.** Sign up free, make a key on your account page and put it in your project’s .env as CUTTINGFLOOR_KEY. Tell your agent it belongs on the server only.
2. **Point your agent at the spec.** Paste the prompt below. The spec at https://api.cuttingfloor.ai/openapi.json describes every tool with its arguments and results, so your agent writes the calls without guessing.
3. **Say what the editor should do.** In your words: “a page that turns a long video into three Shorts with captions”, “a trim tool for my team’s clips”. Ask for one feature at a time and try each one.
4. **Try it on a real video.** Upload a clip in your app and export it. Review copies are free, so run it as often as you like while you build.

## What to type

```
Build a simple video editor web app on the cuttingfloor REST API. Read the OpenAPI spec at https://api.cuttingfloor.ai/openapi.json first. Keep the API key in CUTTINGFLOOR_KEY and call the API only from the server. The app should let me upload a video, cut out the pauses using the transcript, add captions, make it vertical, preview a frame, export an MP4 and show me the download link.
```

## Call it

### REST API in your app

Call cuttingfloor from your own product like any other web service: your backend sends POST https://api.cuttingfloor.ai/v1/<tool> with the arguments as JSON and gets the result back as JSON, with real HTTP status codes when a call is refused. Long work (imports, renders, exports) answers at once with a job_id that job.get waits on. The OpenAPI spec feeds code generators and API clients.

```
curl https://api.cuttingfloor.ai/v1/timeline.create \
  -H 'Authorization: Bearer cf_…' \
  -H 'Content-Type: application/json' \
  -d '{"name": "First edit", "sequence": {"width": 1080, "height": 1920, "fps": {"num": 30, "den": 1}}}'
```

### Code execution

An LLM writes code that calls the same API from a sandbox, and chains many edits in one run instead of spending a turn on each tool call. It reads only the tools it needs rather than loading every tool’s schema, and keeps big results in variables instead of its context. The sandbox only has to reach https://api.cuttingfloor.ai with your key.

```
import os, requests

API = "https://api.cuttingfloor.ai/v1"
KEY = os.environ["CUTTINGFLOOR_KEY"]

def cf(tool, **args):
    r = requests.post(f"{API}/{tool}", json=args,
        headers={"Authorization": f"Bearer {KEY}"})
    body = r.json()
    if not r.ok:
        raise RuntimeError(body.get("hint") or body["message"])
    return body

t = cf("timeline.create", name="First edit",
    sequence={"width": 1080, "height": 1920,
              "fps": {"num": 30, "den": 1}})
print(t["timeline_id"])
```

- [How to connect](https://cuttingfloor.ai/how-to-connect#builders)

## Do I need to know how video editing code works?

No. Decoding, effects, mixing and rendering run on cuttingfloor’s server. Your agent only writes the screens and the HTTP calls, one per edit.

## Which coding agents can do it?

Any that can read an OpenAPI spec and write HTTP calls: Claude Code, Cursor, Codex, Windsurf and others. The app it builds calls the REST API from its own backend.

## Can my coding agent try the edits while it builds?

Yes. Add cuttingfloor to Claude Code, Cursor or Codex as well (see Connect) and it can make an edit itself and look at the frames before it writes the code for it.

## Where does the API key go?

In your server’s environment, never in the web page or a phone app. The browser gets only upload and download links, which need no key.

## What does it cost?

Editing is free: every import, edit, preview and export, as many times as you like. Each export gives a free review copy with a cuttingfloor watermark and a clean copy that spends credits once, when it is first opened or released with export.release, priced by the video’s length. A new account gets 3 credits when you activate it; after that, credit packs that never expire, on the pricing page.

## Can I ship it to my customers?

Yes. It runs on your account and its credits, and your customers never need a cuttingfloor account. For your own servers, run the open-source Docker image (/self-host).
