Skip to content
UGC API

Slideshow API: one set of slides, every placement

Slideshows are the cheapest UGC format to produce and one of the most reposted. UGC API takes one ordered list of images and publishes it in the native slideshow format of each platform.

Updated

What one slideshow becomes

PlatformPublished asOptionsCredits per account
TikTokPhoto post, swipeable, with optional recommended musicauto_music, draft, ai_generated, title1
InstagramCarousel, cropped to 4:5grid is implied for carousels1
Instagram StoryOne Story frame per slide, or only the firststory: true, story_slides: 'all' | 'first'1 per frame
Facebook PageOne post with multiple photosstory1

The request

bash
curl https://ugcapi.dev/v1/posts \
  -H "Authorization: Bearer ugc_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "accounts": ["acc_tt_01", "acc_ig_01", "acc_fb_01"],
    "format": "slideshow",
    "media": [
      "https://cdn.example.com/deck-9/1.jpg",
      "https://cdn.example.com/deck-9/2.jpg",
      "https://cdn.example.com/deck-9/3.jpg",
      "https://cdn.example.com/deck-9/4.jpg"
    ],
    "caption": "4 apps that replaced my notebook #productivity",
    "options": {
      "tiktok": { "auto_music": true, "title": "4 apps that replaced my notebook" },
      "instagram": { "story": true, "story_slides": "first" }
    }
  }'

Credits: TikTok 1, Instagram carousel 1, Instagram Story 1 (first slide only), Facebook 1. Total 4. With story_slides: 'all' the Story would be 4 frames, so 7 credits.

Design your slides once

  • Export at 1080x1350 (4:5) or 1080x1920 (9:16). Instagram crops carousel slides to 4:5. TikTok and Stories show 9:16 full screen. If you design in 9:16, keep text in the middle 4:5 safe area so the Instagram crop doesn't cut it.
  • Use JPEG. Meta's publishing API takes JPEG images. TikTok accepts common image formats, so JPEG works everywhere.
  • Stay within slide limits. Instagram carousels allow up to 20 items. TikTok photo posts allow up to 35 images. Most UGC slideshows work best at 4 to 8 slides.
  • Put the hook on slide 1. It is the TikTok cover by default, the first carousel slide, and the Story frame when story_slides is first.

Music on TikTok photo posts

TikTok photo posts without sound perform like a muted video. Set auto_music: true and TikTok adds a recommended track, which the creator can change in the app. If you want the creator to pick a trending sound by hand, set draft: true instead and the slideshow goes to their TikTok inbox. More in posting a TikTok slideshow via API.

When to add Story frames

Stories reach followers who skip the feed. For a hook-plus-list slideshow, posting only the first slide as a Story with the carousel live is a cheap way to drive people to it. Posting all frames turns the Story into a full read, but costs one credit per frame. See Instagram Story API for the tradeoffs.

Running slideshows across many accounts? Use campaigns to spread them on a per-account cadence. Every option is listed in formats and options.

FAQ

How many slides can a slideshow have?

TikTok photo posts take up to 35 images and Instagram carousels up to 20. Stay at 20 or fewer if you post to both.

Why does my text get cut off on Instagram?

Instagram crops carousel slides to 4:5. If you design in 9:16, keep important text inside the center 4:5 area.

Does each slide cost a credit?

No. A carousel or a TikTok photo post is one credit per account. Only Instagram Story frames cost one credit each.

Can I turn a slideshow into a video instead?

Not through this format. Render it to MP4 yourself and send it with format 'video' if you want a Reel or Short.

Related