Warnings

In some cases, you may receive warnings in response to a generation request. Warnings are returned if there were conflicting or ignored parameters in your API call. For example, if you specified preservein textMode and at the same time used brief in textOptions.amount, Gamma would respect the instruction to preserve your text and would ignore the request for the generated text to be brief. For transparency, the API would return a warning informing you that we ignored the textOptions.amount parameter.

Some additional scenarios where warnings would be returned are illustrated below.

Conflicting format and dimensions

{
  "format": "presentation",
  "inputText": "Best hikes in the United States",
  "pageOptions": {
  	"dimensions": "1x1"
  }
}
{"generationId":"xxxxxxxxxx","warnings":"cardOptions.dimensions 1x1 is not valid for format presentation. Valid dimensions are: [ 16x9, 4x3, fluid ]. Using default: fluid."}

Conflicting image source and model

{
  "format": "presentation",
  "inputText": "Best hikes in the United States",
  "imageOptions": {
  	"source": "pictographic",
		"model": "flux-1-pro"
  }
}
{"generationId":"xxxxxxxxxx","warnings":"imageOptions.model and imageOptions.style are ignored when imageOptions.source is not aiGenerated."}