Skip to main content
Glama

pictify_create_canvas_image

Generate images from FabricJS canvas JSON data with variable substitution. Render canvas designs directly without saving as templates first.

Instructions

Generate an image from FabricJS canvas JSON data with optional variable substitution. Use this when you have a FabricJS canvas design (created in the Pictify visual editor or programmatically). Templates in Pictify are built using FabricJS — this endpoint lets you render canvas JSON directly without saving it as a template first. For rendering a saved template, use pictify_render_template instead. Returns the hosted image URL (CDN-backed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fabricJSDataYesFabricJS canvas JSON object. This is the serialized canvas data from FabricJS (canvas.toJSON()). Contains objects array with shapes, text, images, and their properties.
variablesNoVariables to substitute into the canvas elements that have variable bindings.
variableDefinitionsNoVariable definitions describing the types and defaults for each variable.
widthNoOutput image width in pixels. If omitted, uses the canvas width.
heightNoOutput image height in pixels. If omitted, uses the canvas height.
fileExtensionNoOutput image formatpng

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pictify-io/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server