Supported Modifications
The generate endpoint applies object-level modifications before rendering.| Modification | Text elements | Image elements | SVG / shape elements |
|---|---|---|---|
text | ✅ Yes | ❌ No | ❌ No |
fill | ✅ Yes | ❌ No | ✅ Yes |
stroke | ✅ Yes | ✅ Yes | ✅ Yes |
src | ❌ No | ✅ Yes | ❌ No |
See which element types support which modification fields.
| Modification | Text elements | Image elements | SVG / shape elements |
|---|---|---|---|
text | ✅ Yes | ❌ No | ❌ No |
fill | ✅ Yes | ❌ No | ✅ Yes |
stroke | ✅ Yes | ✅ Yes | ✅ Yes |
src | ❌ No | ✅ Yes | ❌ No |
{
"modifications": [
{
"id": "title-text",
"text": "Spring launch sale"
}
]
}
{
"modifications": [
{
"id": "hero-image",
"src": "https://images.example.com/product-shot.jpg"
}
]
}
{
"modifications": [
{
"id": "badge-shape",
"fill": "#ff4d6d"
}
]
}
{
"modifications": [
{
"id": "outline-shape",
"stroke": "#1c7ed6"
}
]
}
{
"modifications": [
{
"id": "title-text",
"text": "New season drop"
},
{
"id": "hero-image",
"src": "https://images.example.com/lookbook-cover.jpg",
"stroke": "#ffffff"
},
{
"id": "badge-shape",
"fill": "#111827"
}
]
}
Was this page helpful?