Raw schema
{
"type": "object",
"properties": {
"structure": {
"type": "string",
"description": "Structure name, e.g. \"wave\"."
},
"seed": {
"description": "Any string. Omit for a fresh random seed (returned in the result).",
"type": "string"
},
"width": {
"type": "integer",
"minimum": 1,
"maximum": 8192
},
"height": {
"type": "integer",
"minimum": 1,
"maximum": 8192
},
"palette": {
"type": "object",
"properties": {
"colors": {
"description": "Explicit hex colours to draw from (best for brand matching). Overrides palette/scheme.",
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"pattern": "^#?([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
}
},
"palette": {
"description": "Id of a built-in palette from list_palettes, e.g. \"underTheSea\".",
"type": "string"
},
"primaryColor": {
"type": "string",
"pattern": "^#?([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
"secondaryColor": {
"type": "string",
"pattern": "^#?([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
"backgroundColor": {
"type": "string",
"pattern": "^#?([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
"gradientColor": {
"description": "Gradient fills instead of flat colour.",
"type": "boolean"
},
"useMultiColor": {
"description": "false = everything in primaryColor.",
"type": "boolean"
},
"colorSchemeType": {
"description": "Derive a palette from primaryColor.",
"type": "string",
"enum": [
"Mono",
"Tetrade",
"Analogic"
]
},
"opaqueColors": {
"type": "boolean"
}
},
"additionalProperties": false
},
"shape": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"number",
"boolean",
"string"
]
},
"description": "Structure-specific options; call describe_background for the exact keys, ranges and what they do."
},
"format": {
"description": "png (default) returns a viewable image; svg returns the vector source.",
"type": "string",
"enum": [
"svg",
"png"
]
},
"pngWidth": {
"description": "Raster width for PNG output/preview. Defaults to the render width, capped for inline previews.",
"type": "integer",
"minimum": 16,
"maximum": 8192
},
"brand": {
"description": "Slug of a saved brand kit (see list_brand_kits); its colours become the palette baseline.",
"type": "string"
}
},
"required": [
"structure"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}