| 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-3",
"response": {
"format": "png",
"type": "base64"
"scale": 1
},
"modifications": {
"logo": "https://pika.style/icons/pika-filled-squared-120.png",
"title": "<span style="font-weight: 400;">One step <i style="font-weight: 600;">closer to freedom!</i></span>",
"authorPhoto": "https://pika.style/templates/demo-images/tweet-author.jpg",
"authorName": "Rishi Mohan",
"textColor": "#111",
"backgroundColor": "#f5f5f5",
"backgroundImageUrl": ""
}
}),
});You can customize the template using following modifications
| Key | Description | Type |
|---|---|---|
| logo | Logo URL or Base64 | string |
| title | Title text | string |
| authorPhoto | Photo URL or Base64 | string |
| authorName | Name of the author | string |
| textColor | Hex or CSS color of text content | string |
| backgroundColor | Hex or CSS color of background | string |
| backgroundImageUrl | Link to background image | string |