Skip to main content

Instagram carousel splitter API

Pick a wide image, choose how many slides and their shape, and download slices that line up edge to edge when people swipe. Your image never leaves your browser.

  • Endpoint: POST https://postboost.co/app/api/tools/instagram-carousel-splitter (operationId calculateCarouselSlices)
  • Web tool: postboost.co/tools/instagram-carousel-splitter
  • Token: optional (limits)
  • MCP: tool calculate-carousel-slices on https://postboost.co/mcp/tools

Request​

FieldTypeDefaultDescription
widthintegerSource image width in pixels.
heightintegerSource image height in pixels.
slidesintegerNumber of carousel slides, 2 to 10 (the most a carousel published through the Instagram API can hold).
ratiostring: 1:1, 4:5"4:5"Shape of each slide: 1:1 (1080 × 1080) or 4:5 (1080 × 1350).

Call it​

curl -X POST https://postboost.co/app/api/tools/instagram-carousel-splitter \
-H 'Content-Type: application/json' \
-d '{"width":3240,"height":1350,"slides":3,"ratio":"4:5"}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"slides": [
{
"x": 0,
"y": 0,
"width": 1080,
"height": 1350
},
{
"x": 1080,
"y": 0,
"width": 1080,
"height": 1350
},
{
"x": 2160,
"y": 0,
"width": 1080,
"height": 1350
}
],
"output": {
"width": 1080,
"height": 1350
},
"scale": 1,
"upscaled": false,
"warnings": []
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Split a wide image into seamless Instagram carousel slides with the PostBoost calculate-carousel-slices tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.