Is there a plan to bring the infographic and diagram option directly to the API? Because trying to do it via prompts is not working for me well.
Hi Jason G. ๐ Yes, you can get charts, tables, timelines, and infographic-style content through the API today. There isn't a dedicated diagram or infographic parameter, but the prompt-driven approach is flexible and works well for this. Here's how it works: Put your structured data in inputText
Use additionalInstructions to specify the visual treatment you want
Use template generation if you need a repeatable layout
For example, instructions like "turn this into a 5-step process flow," "use a comparison table plus one summary chart," or "present this as an infographic-style timeline" all work well. ๐ก Tip: Since the AI generates layouts dynamically, results can vary between runs. If you need the same look every time, the best approach is to build the layout once in Gamma and use template generation to fill it with new data, rather than relying on the model to recreate the same treatment each time. Here are the relevant docs:
There's no dedicated API parameter for this today the way there is for textMode, format, or imageOptions.source, but it's something I'll flag internally. Let me know if you have questions on the prompt-driven approach or need help setting up a template!
