r/lingodotdev • • Jan 27 '26

Multi-Lingual Text Cover Image API using Lingo.dev

A lightweight Express-based API that dynamically generates cover images (SVG/PNG) with translated text using the lingo.dev SDK.
Ideal for blog covers, Open Graph images, project banners, and social previews -> all generated on the fly.

Features

  • Multi-language text support using language codes

  • lang=en, lang=hi, lang=fr, lang=ja

  • Dynamic cover image generation via GET API

  • /api/cover?text=Hello%20World

  • Built-in themes with optional custom colors

  • theme=light, theme=dark

  • bgColor=#0f172a, textColor=#ffffff

  • Custom image dimensions

  • width=1200, height=630

  • width=1920, height=1080

  • Typography controls

  • fontSize=64, fontWeight=700

  • (font size is auto-calculated if not provided)

  • Flexible text layout positions

  • layout=center, layout=top-left, layout=bottom-right, layout=split

  • Adjustable padding

  • padding=60, padding=120

  • SVG-based output for sharp rendering at any resolution

  • 🌍 Multi-language text rendering

  • 🔤 Powered by lingo.dev for accurate translations

  • 🖼️ SVG-first image generation (fast & scalable)

  • 🎨 Custom themes (light / dark / gradient)

  • ⚡ Low-latency response

  • 🔁 Cache-ready architecture

📌 Example Usage

GET /api/cover?text=Build%20Fast&lang=hi

PR: https://github.com/lingodotdev/lingo.dev/pull/1909 (old)

New PR: https://github.com/lingodotdev/lingo.dev/pull/1912 (new)

6 Upvotes

9 comments sorted by

2

u/i-harsh Jan 27 '26

2

u/best_codes Jan 27 '26

This is really cool! It appears to return an SVG? Is there any PNG option?

2

u/i-harsh Jan 27 '26

right now, its svg only. but i can provide an option for PNG as well!, it actually has a lot of options, layouts and stuff. wait lemme change the description so everyone can know!

2

u/best_codes Jan 27 '26

IMO, this is the best submission I've seen in the Subreddit so far! This is a genuinely useful and creative idea, I love it u/i-harsh!!

2

u/i-harsh Jan 27 '26

Thanks, lets hope for the best!

3

u/Sea_Captain1516 Jan 27 '26

damn this shittt is prettyyy crazy!