Skip to main content

settings

Settings will allow users to pass the preferences for the design generation request. Based on the mode of settings sivi will take the preferences and generate the design.

mode

Mode parameter helps to choose preferences for the design. In auto mode sivi will take the preferences and generate the design. In brand mode sivi will take the brand persona preferences and generate the design. In custom mode sivi will take the custom preferences and generate the design.

IDDisplay Name
autoAuto
brandBrand
customCustom
note

Only in mode custom, sivi will take preferences from the settings. Others modes will take preferences from the brand or auto based on the mode.

currentbId

currentbId parameter helps to identify the brand's preferences. It is required only in mode brand.

colors

Preferred color hex codes. It is required only in mode custom.

fontGroups

Preferred font groups for typography. It is required only in mode custom. Must contain exactly 3 font entries, one for each type: heading, subHeading, and body.

FieldTypeRequiredDescription
idStringYesFont ID from the get-fonts endpoint
nameStringYesDisplay name of the font
typeStringYesFont usage type. Must be one of: heading, subHeading, body
statusStringYesStatus of the font. Allowed values: enabled, disabled
addedByStringYesSource of the font. Allowed values: system, user
"fontGroups": [
{
"id": "cr9HpZiN7XA",
"name": "FiraSans Condensed Black",
"type": "heading",
"status": "enabled",
"addedBy": "system"
},
{
"id": "crOvkYkeiiE",
"name": "Raleway Bold",
"type": "subHeading",
"status": "enabled",
"addedBy": "system"
},
{
"id": "cJqSe7mFuRu",
"name": "Raleway Light",
"type": "body",
"status": "enabled",
"addedBy": "system"
}
]
note

All three font types (heading, subHeading, body) are mandatory. Maximum of 3 font entries allowed.

theme

Preferred theme. It is required only in mode custom.

IDDisplay Name
lightLight
darkDark
colorfulColorful

frameStyle

Preferred frame style. It is required only in mode custom.

IDDisplay Name
plainPlain
boxBox
bar-accentBar Accent

backdropStyle

Preferred backdrop style. It is required only in mode custom.

IDDisplay Name
minimalistMinimalist
imageryImagery
artisticArtistic

focus

Preferred focus. It is required only in mode custom.

IDDisplay Name
textText
imageImage
neutralNeutral

imageStyle

Preferred image style. It is required only in mode custom.

IDDisplay Name
coverCover
cover-with-linear-gradientCover With Linear Gradient
cover-with-overlayCover With Overlay
containerContainer
sectionSection
section-with-containerSection with Container
maskMask
cutoutCutout
cutout-with-vectorsCutout with vectors
content-free-formContent Free Form

Example Usage

Here's a comprehensive example showing how to use the brand persona parameters:

{
"mode": "custom",
"colors": ["#5662EC", "#EF9AB2"],
"theme": ["light"],
"frameStyle": ["plain"],
"backdropStyle": ["minimalist"],
"focus": ["text"],
"imageStyle": ["cover"]
}

Usage Notes

  • When using the API, you should specify at least mode.
  • Pass colors, theme, frameStyle, backdropStyle, focus, imageStyle only in mode custom.