what is happening? everything was working untill now
Hi Everton! Can you please share your full request body so I can take a look into this with out engineering team?
{ "inputText": {{ JSON.stringify($json.output) }}, "textMode": "preserve", "format": "presentation", "exportAs": "pptx", "numCards": 10, "cardSplit": "auto", "themeName": "Fama", "additionalInstructions": "Gere slides profissionais para uma reunião de revisão interna. O conteúdo deve ser fiel ao texto fornecido, sem modificações criativas. Os slides devem ser concisos e focados nos pontos principais.", "textOptions": { "amount": "detailed", "tone": "professional, informative", "audience": "gestores, equipe interna", "language": "pt-br" }, "imageOptions": { "source": "aiGenerated", "style": "illustration, corporate, clean, modern" } } it was everything working since i started this project with this request, but then today this error from the first image happened
the error in the second image was when i trierd this request: "inputText": {{ JSON.stringify($json.output) }}, "textMode": "preserve", "format": "presentation", "exportAs": "pptx", "numCards": 10, "cardSplit": "auto", "themeName": "Fama", "additionalInstructions": "Gere slides profissionais para uma reunião de revisão interna. O conteúdo deve ser fiel ao texto fornecido, sem modificações criativas. Os slides devem ser concisos e focados nos pontos principais.", "textOptions": { "amount": "detailed", "tone": "professional, informative", "audience": "gestores, equipe interna", "language": "pt-br" }, "imageOptions": { "source": "aiGenerated", "style": "illustration, corporate, clean, modern" }, "imageModel": "dall-e-3" }
Hi Everton! I can see what's happening with both errors. First error (top screenshot): Your request is missing the imageOptions.model parameter entirely. When you use imageOptions.source: "aiGenerated", Gamma will auto-select an image model for you if you don't specify one, but based on the error, it looks like there might be a validation issue with your current request structure. Second error (bottom screenshot): You've added imageModel as a top-level parameter, but that's not correct. The model needs to be nested inside the imageOptions object as model, not as a separate top-level field. Here's your first request body corrected: json
{
"inputText": {{ JSON.stringify($json.output) }},
"textMode": "preserve",
"format": "presentation",
"exportAs": "pptx",
"numCards": 10,
"cardSplit": "auto",
"themeName": "Fama",
"additionalInstructions": "Gere slides profissionais para uma reunião de revisão interna. O conteúdo deve ser fiel ao texto fornecido, sem modificações criativas. Os slides devem ser concisos e focados nos pontos principais.",
"textOptions": {
"amount": "detailed",
"tone": "professional, informative",
"audience": "gestores, equipe interna",
"language": "pt-br"
},
"imageOptions": {
"source": "aiGenerated",
"style": "illustration, corporate, clean, modern"
}
}And here's your second request body corrected: json
{
"inputText": {{ JSON.stringify($json.output) }},
"textMode": "preserve",
"format": "presentation",
"exportAs": "pptx",
"numCards": 10,
"cardSplit": "auto",
"themeName": "Fama",
"additionalInstructions": "Gere slides profissionais para uma reunião de revisão interna. O conteúdo deve ser fiel ao texto fornecido, sem modificações criativas. Os slides devem ser concisos e focados nos pontos principais.",
"textOptions": {
"amount": "detailed",
"tone": "professional, informative",
"audience": "gestores, equipe interna",
"language": "pt-br"
},
"imageOptions": {
"source": "aiGenerated",
"model": "dall-e-3",
"style": "illustration, corporate, clean, modern"
}
}The key change: imageModel at the top level becomes model nested inside imageOptions. You can see the correct structure in our API docs here: https://developers.gamma.app/docs/how-does-the-generations-api-work If you want to let Gamma auto-select the image model, use the first corrected version. If you want to specify dall-e-3, use the second corrected version. Let me know if this fixes it!
Everton M. I am curious if you are using the Cloud or Self Hosted version of n8n?
Chowderr M. i'm using a cloud version!
