cURL request
curl https://studio.pixelixe.com/api/graphic/automation/v2 \
-d 'json={
"document_uid": "banner_template_uid",
"api_key": "YOUR_API_KEY",
"format": "json",
"image_type": "jpeg",
"custom_field": "campaign_2026_spring_fr",
"modifications": [
{
"element_name": "headline",
"type": "text",
"text": "Spring drops are live",
"font-size": "auto",
"color": "#0f172a"
},
{
"element_name": "subheadline",
"type": "text",
"text": "Free shipping over $60"
},
{
"element_name": "product-shot",
"type": "image",
"image_url": "https://cdn.example.com/products/shoe-42.png",
"width": "cover",
"height": "cover"
},
{
"element_name": "cta-shape",
"type": "shape",
"background-color": "#ff5f45"
},
{
"element_name": "background-color",
"background-color": "#f8fafc"
}
]
}'
JSON response
{
"status": "success",
"created_at": "03-11-2026_14-40-12-442",
"uid": "banner_template_uid",
"custom_field": "campaign_2026_spring_fr",
"image_url": "https://studio.pixelixe.com/storage/file/.../spring-banner.jpeg"
}
Implementation note: use format: "json" when you want a hosted image_url. Switch to format: "image" for a raw image response, or format: "html" when you want to reopen the generated variant in the editor.