Launch / Announcement Post preview
IMAGE social-post 1080×1080px

Launch / Announcement Post

Bold social media announcement card for product launches, news, or milestones.

Use Cases

  • Product or feature launch posts
  • Company milestone announcements
  • New hire or partnership news
  • Event countdown posts

Tags

announcement launch social-media instagram product milestone 1080x1080

Template Variables

Variable Type Default Description
headline string We just launched! Main announcement headline
subtext string Check out what's new at our website. Supporting text
cta string Visit now Call-to-action button text
logo_url url Logo image URL (leave blank to omit)
bg_color color #4f46e5 Background colour
text_color color #ffffff Text colour
cta_bg_color color #ffffff CTA button background colour
cta_text_color color #4f46e5 CTA button text 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-announcement.html", "variables": {"headline": "We just launched!", "subtext": "Check out what's new at our website.", "cta": "Visit now", "logo_url": "", "bg_color": "#4f46e5", "text_color": "#ffffff", "cta_bg_color": "#ffffff", "cta_text_color": "#4f46e5"}, "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-announcement.html",
        "variables": {
            "headline": "We just launched!",
            "subtext": "Check out what's new at our website.",
            "cta": "Visit now",
            "logo_url": "",
            "bg_color": "#4f46e5",
            "text_color": "#ffffff",
            "cta_bg_color": "#ffffff",
            "cta_text_color": "#4f46e5"
        },
        "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-announcement.html",
    "variables": {
      "headline": "We just launched!",
      "subtext": "Check out what's new at our website.",
      "cta": "Visit now",
      "logo_url": "",
      "bg_color": "#4f46e5",
      "text_color": "#ffffff",
      "cta_bg_color": "#ffffff",
      "cta_text_color": "#4f46e5"
    },
    "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-announcement.html"
    variables    = {
      "headline": "We just launched!",
      "subtext": "Check out what's new at our website.",
      "cta": "Visit now",
      "logo_url": "",
      "bg_color": "#4f46e5",
      "text_color": "#ffffff",
      "cta_bg_color": "#ffffff",
      "cta_text_color": "#4f46e5"
    }
    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
Back to Template Library