IMAGE
social-post
1080×1080px
Quote Card
Inspirational or testimonial quote card for social media, with author name and optional avatar.
Use Cases
- Inspirational quote series
- Podcast guest highlight clips
- Book or article quotes
- Motivational content marketing
Tags
quote
social-media
instagram
inspirational
author
1080x1080
Template Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| quote | string | Simplicity is the ultimate sophistication. | Quote text |
| author | string | Leonardo da Vinci | Quote author |
| author_title | string | Author title or role (leave blank to omit) | |
| avatar_url | url | https://picsum.photos/seed/sm-quote/120/120 | Author avatar URL |
| bg_color | color | #fef9c3 | Background colour |
| text_color | color | #1c1917 | Text colour |
| accent_color | color | #ca8a04 | Accent / quote mark colour |
API Example
POST to
https://image.toolkitapi.io/v1/image/from-template
with your template URL and variable values.
curl -X POST "https://image.toolkitapi.io/v1/image/from-template" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template_url": "https://toolkitapi.io/static/templates/image/sm-quote.html", "variables": {"quote": "Simplicity is the ultimate sophistication.", "author": "Leonardo da Vinci", "author_title": "", "avatar_url": "https://picsum.photos/seed/sm-quote/120/120", "bg_color": "#fef9c3", "text_color": "#1c1917", "accent_color": "#ca8a04"}, "width": 1080, "height": 1080, "format": "png"}'
import httpx, base64
resp = httpx.post(
"https://image.toolkitapi.io/v1/image/from-template",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"template_url": "https://toolkitapi.io/static/templates/image/sm-quote.html",
"variables": {
"quote": "Simplicity is the ultimate sophistication.",
"author": "Leonardo da Vinci",
"author_title": "",
"avatar_url": "https://picsum.photos/seed/sm-quote/120/120",
"bg_color": "#fef9c3",
"text_color": "#1c1917",
"accent_color": "#ca8a04"
},
"width": 1080,
"height": 1080,
"format": "png"
},
)
image_bytes = base64.b64decode(resp.json()["image"])
with open("result.png", "wb") as f:
f.write(image_bytes)
const response = await fetch("https://image.toolkitapi.io/v1/image/from-template", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"template_url": "https://toolkitapi.io/static/templates/image/sm-quote.html",
"variables": {
"quote": "Simplicity is the ultimate sophistication.",
"author": "Leonardo da Vinci",
"author_title": "",
"avatar_url": "https://picsum.photos/seed/sm-quote/120/120",
"bg_color": "#fef9c3",
"text_color": "#1c1917",
"accent_color": "#ca8a04"
},
"width": 1080,
"height": 1080,
"format": "png"
}),
});
const data = await response.json();
// data.image is a base64-encoded PNG
$body = @{
template_url = "https://toolkitapi.io/static/templates/image/sm-quote.html"
variables = {
"quote": "Simplicity is the ultimate sophistication.",
"author": "Leonardo da Vinci",
"author_title": "",
"avatar_url": "https://picsum.photos/seed/sm-quote/120/120",
"bg_color": "#fef9c3",
"text_color": "#1c1917",
"accent_color": "#ca8a04"
}
width = 1080
height = 1080
format = "png"
} | ConvertTo-Json -Depth 5
Invoke-RestMethod -Method POST `
-Uri "https://image.toolkitapi.io/v1/image/from-template" `
-Headers @{"X-API-Key" = "YOUR_API_KEY"} `
-ContentType "application/json" `
-Body $body