Edit a video
Cut a video the account already holds (an upload, a generated clip, a render) down to the moments that earn their place, by transcript beats or time ranges, and get a new media key back.
The same call reframes for vertical, cuts the speaker out over a background, burns in captions, lays a music bed, adds a logo and sets the look. Upload the source first with POST /api/studio/uploads; its mediaKey is the input.
Ask in plain words
- "cut my recording down to the best 30 seconds"
- "reframe this landscape video to 9:16 with captions"
- "video editing API for my agent"
- "add music and burned-in captions to this clip"
From an agent host (MCP)
Server: https://shapelessai.com/mcp (add it to your host).
tools_runwith{ "name": "edit_footage", "input": { ... } }: the input is the REST body below;tools_listprints its JSON Schema.
From code (REST)
Bearer API key with the scope each call names (auth, OpenAPI).
POST /api/videos/edit(write scope): Edit a video you uploaded (tool edit_footage): cut, reframe, cutout, captions, music, overlays. Schema on GET /api/tools.
From a terminal (CLI)
shapeless tools run edit_footage --input '<json>'(tools show edit_footageprints the schema)
Example
Refusals
| Status | Meaning |
|---|---|
| 400 | The input does not match the tool's schema; the message names the field. |
| 402 | Not enough credit to hold budgetUsd, or the call costs more than budgetUsd. |
| 404 | No such tool on this deployment. |
| 422 | The tool refused this input; nothing was charged. |
| 502 | The tool failed; nothing was charged. |
