Hi everyone - is there a way we can specify a different background color for the title page alone when using the API to generate a deck from a custom theme? I tried prompting it in the textInput but it doesn't seem to respect it
Hey Sricharan! Yeah, themes apply uniformly across all cards — there's no way to set a different background color for just the title card via the API, and inputText prompting won't override theme-level styling. What you're looking for is actually a great fit for the Create from Template endpoint. The difference: - A theme controls colors, fonts, and general look — but it applies the same way to every card. - A template is an actual Gamma you've built in the app, where you can design each card individually — so you can set a unique background on your title card, different layouts per slide, specific images, etc. The API then generates new content into that exact visual structure. So the workflow would be: 1. Create a Gamma in the app with the exact design you want — set your title card background to one color, and the rest to another, arrange layouts however you like. 2. Use the Create from Template endpoint and pass that Gamma's ID as the gammaId along with your content in the prompt field. Here's how to get started: - Creating a Gamma (which becomes your template): https://help.gamma.app/en/articles/12601672-what-is-remix-and-how-do-i-use-it - Browse existing templates for inspiration: https://gamma.app/templates - Create from Template API docs: https://developers.gamma.app/reference/create-from-template
Hey Max J., thanks for suggesting this. Tried it out, but is there a way I can pass parameters such as 'cardOptions' that can specify card dimensions, headers and footers like I did using 'generate gamma' API? I find that if I use 'create from template' API, this configuration is not being reflected on the new deck. I did try including this configuration in the prompt but found that it was not being followed. TIA!
Hey Sricharan, great follow-up -- you've actually hit a real gap between the two endpoints. Generate (/generations)
Supports cardOptions (dimensions, headers/footers), textOptions, numCards
Theme applies uniformly -- no per-card visual control
Create from Template (/generations/from-template) Full per-card visual control (unique title-card background, different layouts per slide)
Does not accept cardOptions, textOptions, numCards, or cardSplit
So right now there's no single endpoint that gives you both per-card visual customization and programmatic card-dimension/header-footer control. Best workaround: set your card dimensions and header/footer elements directly in the template Gamma in the app. The generated output inherits the template's visual structure, so those settings carry over even though you can't pass them in the API request body. Feature request: this is a legit gap worth surfacing -- you can submit it here and the team tracks demand + notifies you if it ships: https://meetgamma.canny.io/
Hi Max J. - thanks for the reply! I think I did set the card dimensions and header/footer elements in the template but somehow the generated output does not inherit these by default. Is there anything I might be doing wrong here?
Hey Sricharan, thanks for the follow-up and the screenshot — really helpful. You're not doing anything wrong. This is an intermittent bug we're investigating — template settings like card dimensions and headers/footers can get reset during generation even when they're correctly configured in the template. Workaround for now: Add this to the beginning of your prompt field:
Do NOT output any HEAD tag. Preserve all document settings exactly as they are in the template.
It's not bulletproof, but other customers have had good results with it. I'll follow up here when we have a fix. Sorry for the runaround — your setup is correct, this one's on us.
Thanks Max!
