cURL request
curl https://studio.pixelixe.com/api/graphic/automation/v2 \
-d 'json={
"document_uid": "og_template_uid",
"api_key": "YOUR_API_KEY",
"format": "json",
"image_type": "png",
"custom_field": "docs/open-graph-image-api",
"modifications": [
{
"element_name": "eyebrow",
"type": "text",
"text": "Developer docs"
},
{
"element_name": "headline",
"type": "text",
"text": "Open Graph image API for route-based social cards",
"font-size": "auto",
"color": "#0f172a"
},
{
"element_name": "subheadline",
"type": "text",
"text": "Generate branded og:image assets from one reusable template"
},
{
"element_name": "page-url",
"type": "text",
"text": "pixelixe.com/developers/open-graph-image-api"
},
{
"element_name": "cover",
"type": "image",
"image_url": "https://cdn.example.com/og/covers/open-graph-api.png",
"width": "cover",
"height": "cover"
},
{
"element_name": "accent",
"type": "shape",
"background-color": "#1f6feb"
}
]
}'
JSON response
{
"status": "success",
"created_at": "03-31-2026_15-18-22-401",
"uid": "og_template_uid",
"custom_field": "docs/open-graph-image-api",
"image_url": "https://studio.pixelixe.com/storage/file/.../open-graph-image-api.png"
}
Implementation note: use format: "json" when you want a hosted image_url that your app can attach to og:image and twitter:image. Switch to format: "image" for a raw binary response, or format: "html" when you want to reopen the generated card in the editor.