Start a Clipping
POST /clipping — Infipost Public API
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 --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 · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Body
urlstringrequiredURL 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
clipsintegerMaximum number of clips
fitstringHow 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
{
"id": "0b6f1c1e-5f0a-4c55-9a53-2f1f6f7f7c11"
}idstringID of the clipping
Not a YouTube URL, or an integration was not found
{
"statusCode": 400,
"message": "Only YouTube videos can be clipped"
}No clipping minutes are left for this month (or the plan has none). Nothing is charged
{
"statusCode": 402,
"message": "You have used all the clipping minutes of your subscription for this month. Please upgrade your subscription to clip more videos.",
"url": "https://platform.postiz.com/billing"
}The organization is still in trial
{
"statusCode": 406,
"message": "Clipping is not available in trial mode"
}A clipping is already running, or the daily cap of 20 was reached
{
"statusCode": 429,
"message": "A clipping is already running, wait for it to finish"
}Clipping is not configured on this instance
{
"statusCode": 503,
"message": "Clipping is not available"
}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
402and 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
errorof 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.