| Type | Supported Formats | Supported Types | |
|---|---|---|---|
| Library Template | png jpg jpeg webp pdf | base64 url binary |
Automate this template using integrations
You can generate Word Definition To 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": "word-definition-image",
"response": {
"format": "png",
"type": "base64"
"scale": 1
},
"modifications": {
"word": "Opacarophile",
"meaning": "(n.) A person who loves sunsets",
"wordFontSize": "86",
"meaningFontSize": "30",
"fontFamily": "Lora",
"backgroundColor": "#F9FAFB",
"wordColor": "#111827",
"meaningColor": "#4B5563",
"width": "800",
"height": "800"
}
}),
});You can customize the template using following modifications
| Key | Description | Type |
|---|---|---|
| word | The word to display | string |
| meaning | The definition or meaning of the word | string |
| wordFontSize | Font size of the word in CSS pixels value | number |
| meaningFontSize | Font size of the meaning in CSS pixels value | number |
| fontFamily | Font family for the text | select |
| backgroundColor | Background color of the display | string |
| wordColor | Text color of the word | string |
| meaningColor | Text color of the meaning | string |
| width | Width of the display in pixels | number |
| height | Width of the display in pixels | number |