infipostdocs
Clipping

Start a Clipping

POST /clipping — Infipost Public API

POST/public/v1/clipping

Turn a long YouTube video into short vertical clips with burned-in captions. The best parts are picked automatically, every clip is saved to the media library, and when integrations are passed a draft post is created for every clip on every integration. Nothing is scheduled or published. Clipping takes several minutes, so this only starts it and returns the clipping `id`. Poll [Get a clipping](/public-api/clipping/get) until the status is `completed` or `failed`.

cURL
curl --request POST \
  --url 'https://api.infipost.asia/public/v1/clipping' \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://www.youtube.com/watch?v=VIDEO_ID"
}'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Body

urlstringrequired

URL of the YouTube video (`youtube.com` or `youtu.be`)

integrationsarray[]

IDs of the integrations to create a draft post for, one draft per clip per integration. Without any, the clips only land in the media library

Show child attributes

string

clipsinteger

Maximum number of clips

fitstring

How the horizontal video fills the vertical clip. `blur` keeps the whole picture over a blurred copy of itself. `crop` fills the clip with the middle of the picture and cuts the sides away; there is no face tracking

"blur""crop"

Response

Clipping started

application/json
{
  "id": "0b6f1c1e-5f0a-4c55-9a53-2f1f6f7f7c11"
}
idstring

ID of the clipping

See Video clipping for what the feature does, the clipping minutes it uses and its limits.

Clipping minutes

On Infipost Cloud a clipping spends one clipping minute for every minute of the source video, from the same monthly allowance the agent and MCP use:

  • With no minutes left the request is refused with 402 and nothing is charged.
  • The minutes are charged once the real length of the video is known. A video longer than the minutes left fails the clipping (the error of Get a Clipping says so) and nothing is charged.
  • A clipping that fails without producing a single clip gives the minutes back.

Starting a clipping and polling its status do not count against the hourly rate limit, which applies to the create post endpoint only. Clipping has its own caps: one running clipping per organization and 20 starts a day, both answered with 429.