media. render. card
Create social share images in multiple sizes for quotes, data, announcements, or covers.
0 credits. Free: part of a publish.
Example prompt
Send this to your AI app when Heelo is connected:
Make an announcement card for our launch
Input fields
| Field | Type | Description |
|---|---|---|
templateRequired | string | quote | stat | announce | cover |
text | string | Primary text (headline / quote / stat) |
subtext | string | Secondary text (attribution / label / eyebrow) |
brand | object | |
sizes | array of string | Any of: og_1200x630, ig_1080x1080, ig_story_1080x1920, x_1600x900 |
Output fields
The fields in data when status is success.
| Field | Type |
|---|---|
assets | array of object |
answer | string |
Code
The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.
import os
import requests
response = requests.post(
"https://toolsprimitives.uk/v1/tools/media.render.card/invoke",
headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
json={"input": {
"template": "quote",
}},
timeout=120,
)
response.raise_for_status()
print(response.json())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/media.render.card/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"template": "quote"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());