Publish a carousel
publish_carouselPublish or schedule Instagram carousels of 2–20 images and videos, with per-slide alt text, user tags and fit control to fix cropping. Requires user confirmation.
Instructions
Publish (or schedule) a carousel of 2 to 20 images and/or videos (videos 3-60 s). Instagram crops every item to the first item's shape; use fit to control reframing. Alt text and user tags per image. Needs the user's confirmation; runs in the background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Reframing when converting: keep (only clamp into the allowed range), crop (fill the frame from the centre) or blur (whole frame over a blurred fill). Reels/stories target 9:16. | |
| items | Yes | The slides, in order. | |
| account | No | Which connected account: @username or Instagram user ID. Omit to use the default account. | |
| caption | No | Caption (max 2,200 characters, 30 hashtags, 20 @mentions). The first ~125 characters show before 'more'. Captions can't be edited through the API after publishing. | |
| prepare | No | Convert to Instagram's specs with ffmpeg first (JPEG, H.264/AAC MP4, allowed aspect ratio and length). Default true. | |
| template | No | Template from list_templates: adds header/footer, hashtags, first comment, collaborators. | |
| publish_at | No | Schedule: ISO 8601 date-time with timezone, at least 10 minutes and at most 75 days ahead. Instagram has no API scheduling, so this computer (or the background service) publishes it then; if the computer is off and the time passes by more than 2 hours, it is not published late (reschedule or resume_publish). | |
| location_id | No | Facebook Page ID of a place (see find_location). | |
| wait_seconds | No | Wait this long for publishing before returning; then follow get_publish_status. | |
| collaborators | No | Up to 3 usernames invited as collaborators (they must accept in the app). | |
| first_comment | No | Posted as the first comment right after publishing (hashtags, credits, links). | |
| is_ai_generated | No | Self-disclose that the content was made or edited with AI (shows an AI label). | |
| confirmation_token | No | Only after the user approved: the confirmation_token returned by the previous call with identical arguments. |