Input schema
{
"type": "object",
"properties": {
"width": {
"type": "integer",
"description": "Image width in pixels. Defaults to 300.",
"minimum": 1,
"maximum": 10000
},
"height": {
"type": "integer",
"description": "Image height in pixels. Defaults to 150.",
"minimum": 1,
"maximum": 10000
},
"text": {
"type": "string",
"description": "Text to draw on the image. Defaults to the image dimensions."
},
"fontFamily": {
"type": "string",
"description": "Unquoted CSS font stack, e.g. `Inter, sans-serif`. Defaults to `sans-serif`."
},
"fontWeight": {
"type": "integer",
"description": "Numeric font weight between 100 and 900. Keywords like `bold` are not accepted by the image API, use 700 instead. Defaults to bold.",
"minimum": 100,
"maximum": 900
},
"fontSize": {
"type": "integer",
"description": "Font size in pixels. Defaults to 20% of the shortest image dimension.",
"minimum": 1,
"maximum": 2000
},
"dy": {
"type": "number",
"description": "Vertical nudge applied to the text baseline in pixels. Defaults to 35% of the font size."
},
"bgColor": {
"type": "string",
"description": "CSS background color, e.g. `#313131` or `rgba(0,0,0,0.5)`. Defaults to `#ddd`."
},
"textColor": {
"type": "string",
"description": "CSS text color. Use an rgba or hsla value for transparency. Defaults to `rgba(0,0,0,0.5)`."
},
"darkBgColor": {
"type": "string",
"description": "CSS background color used when the viewer prefers a dark color scheme."
},
"darkTextColor": {
"type": "string",
"description": "CSS text color used when the viewer prefers a dark color scheme."
},
"textWrap": {
"type": "boolean",
"description": "Wrap long text onto multiple lines. Font size is not reduced, so very long strings can still overflow. Defaults to false."
}
}
}