| Type | Supported Formats | Supported Types | |
|---|---|---|---|
| Library Template | png jpg jpeg webp pdf | base64 url binary |
Automate this template using integrations
You can generate Open Graph Image renders using Rest API and Orshot SDKs
await fetch("https://api.orshot.com/v1/generate/images", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
body: JSON.stringify({
"templateId": "open-graph-image-1",
"response": {
"format": "png",
"type": "base64"
"scale": 1
},
"modifications": {
"title": "New Blog: Stunning photos with iPhone",
"description": "Simple tips, tricks and some magical iPhone settings to capture like a pro",
"textColor": "#111",
"backgroundColor": "#f1f1f1",
"backgroundImageUrl": ""
}
}),
});You can customize the template using following modifications
| Key | Description | Type |
|---|---|---|
| title | Title text | string |
| description | Excerpt text | string |
| textColor | Hex or CSS color of text content | string |
| backgroundColor | Hex or CSS color of background | string |
| backgroundImageUrl | Link to background image | string |