There's no dedicated "divider slide" parameter in the API, but you have a couple of options that can get you there:
Option 1: Use additionalInstructions
You can prompt for section dividers in your request:
json
{
"additionalInstructions": "Include a section divider card between each major topic with just the section title"
}Results can vary since it's AI-driven, but it generally works well for creating visual breaks between sections.
Option 2: Structure your inputText with card breaks
Use \n---\n in your inputText combined with "cardSplit": "inputTextBreaks" to manually control where cards split. You can make specific sections just a short title/heading, which effectively acts as a divider:
json
{
"inputText": "Introduction content here\n---\nSection 2: Deep Dive\n---\nDetailed content for section 2...",
"cardSplit": "inputTextBreaks"
}
As for theme-level enforcement of divider styles, that's not something configurable via the API. Themes control colors and fonts but not slide structure. You'd need to set up the theme's look in the Gamma web app, then reference it with themeId.
Docs for both parameters here: https://developers.gamma.app